You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[lld][AArch64][ELF][PAC] Support .relr.auth.dyn section
This re-applies #87635 with fix of issue described in
#87635 (comment).
We need to discard `rel(a).dyn` section when output is a relocatable object
file. The section is always empty in such a case (as well as both auth and
regular relr sections), and emitting that resulted in its `sh_info` equal to 0.
Section with zero index is always a NULL section according to ELF spec,
and lld is unable to run `ObjFile<ELFT>::getRelocTarget` against
relocation section with `sh_info` equal to zero (the ELF spec does not
seem to define behavior for such a corner case). This is only an issue
with relocatable object file output - having `sh_info` equal to zero for
shared objects is OK.
Original commit description below.
Support `R_AARCH64_AUTH_RELATIVE` relocation compression as described in
https://github.com/ARM-software/abi-aa/blob/main/pauthabielf64/pauthabielf64.rst#relocation-compression.
0 commit comments