GOT references to absolute symbols can't be relaxed to use ADRP/ADD in
position-independent code because these instructions produce a relative
address.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for catching this case. For absolute symbols we can choose not relaxing in -no-pie mode. Do you prefer relaxing?
lld/test/ELF/aarch64-adrp-ldr-got-symbols.s | ||
---|---|---|
42 | can be applied in -no-pie mode? |
Comment Actions
Thanks for the fix. I'll see about getting a condition added to the ABI to mention Absolute addresses in a PI context.
can be applied in -no-pie mode?