MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / text_align

Function text_align

crates/cranelift/src/obj.rs:31–39  ·  view source on GitHub ↗
(compiler: &dyn Compiler)

Source from the content-addressed store, hash-verified

29const TEXT_SECTION_NAME: &[u8] = b".text";
30
31fn 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.

Callers 2

finishMethod · 0.85
append_sectionMethod · 0.85

Calls 3

page_size_alignMethod · 0.80
is_pulleyMethod · 0.45
tripleMethod · 0.45

Tested by

no test coverage detected