mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 19:44:38 +08:00
Then two tests rely on .interp being the first section.
llvm-bolt would crash if lld places .interp after .got
(f639b57f79).
For best portability, when a linker scripts specifies a SECTIONS
command, the first section for each PT_LOAD segment should be specified
with a MAXPAGESIZE alignment. Otherwise, linkers have freedom to decide
how to place orphan sections, which might break intention.
11 lines
250 B
Plaintext
11 lines
250 B
Plaintext
SECTIONS {
|
|
.interp : { *(.interp) }
|
|
. = ALIGN(CONSTANT(MAXPAGESIZE));
|
|
.text : { *(.text*) }
|
|
. = ALIGN(CONSTANT(MAXPAGESIZE));
|
|
.gcc_except_table.main : { *(.gcc_except_table*) }
|
|
. = 0x20000;
|
|
.eh_frame : { *(.eh_frame) }
|
|
. = 0x80000;
|
|
}
|