Unverified Commit ce5b3716 authored by Fangrui Song's avatar Fangrui Song Committed by GitHub
Browse files

[BOLT,test] Make linker scripts less sensitive to lld's orphan placement (#93763)

Then two tests rely on .interp being the first section.
llvm-bolt would crash if lld places .interp after .got
(f639b57f).

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.
parent 435114f9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment