(compiler: &dyn Compiler)
| 29 | const TEXT_SECTION_NAME: &[u8] = b".text"; |
| 30 | |
| 31 | fn text_align(compiler: &dyn Compiler) -> u64 { |
| 32 | // text pages will not be made executable with pulley, so the section |
| 33 | // doesn't need to be padded out to page alignment boundaries. |
| 34 | if compiler.triple().is_pulley() { |
| 35 | 0x1 |
| 36 | } else { |
| 37 | compiler.page_size_align() |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /// A helper structure used to assemble the final text section of an executable, |
| 42 | /// plus unwinding information and other related details. |
no test coverage detected