[all-commits] [llvm/llvm-project] 8b90c3: [lld][AArch64] Support R_AARCH64_TLSLE_ADD_TPREL_L...
dong jianqiang via All-commits
all-commits at lists.llvm.org
Tue Sep 29 18:26:20 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8b90c3edb7d025154f5228853fa38b97c54d17d5
https://github.com/llvm/llvm-project/commit/8b90c3edb7d025154f5228853fa38b97c54d17d5
Author: dong jianqiang <dongjianqiang2 at huawei.com>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M lld/ELF/Arch/AArch64.cpp
A lld/test/ELF/aarch64-tls-le-12.s
M lld/test/ELF/aarch64-tls-le.s
Log Message:
-----------
[lld][AArch64] Support R_AARCH64_TLSLE_ADD_TPREL_LO12 (#227173)
AArch64 local-exec TLS code sequences compiled with -mtls-size=12 use
the non-NC R_AARCH64_TLSLE_ADD_TPREL_LO12 relocation (emitted for 'add
xN, xN, :tprel_lo12:sym'), but lld only handles the _NC variant, so
linking such objects fails with 'unknown relocation'.
Add the relocation to the TLS LE group in scanSectionImpl (R_TPREL, same
group as the other TLSLE relocations, so it is also rejected for
-shared) and resolve it like the _NC variant, but with an unsigned
12-bit range check as the non-NC form requires the full offset to fit
into the imm12 field.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list