[all-commits] [llvm/llvm-project] d21fb0: [lld][ELF] Allow Arm PC-relative relocations in PI...
Eleanor Bonnici via All-commits
all-commits at lists.llvm.org
Thu Jan 11 08:49:27 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d21fb06a6e36048e6729c51c351ff8c4055e8381
https://github.com/llvm/llvm-project/commit/d21fb06a6e36048e6729c51c351ff8c4055e8381
Author: Eleanor Bonnici <eleanor.bonnici at arm.com>
Date: 2024-01-11 (Thu, 11 Jan 2024)
Changed paths:
M lld/ELF/Relocations.cpp
M lld/test/ELF/arm-adr.s
Log Message:
-----------
[lld][ELF] Allow Arm PC-relative relocations in PIC links (#77304)
The relocations that map to R_ARM_PCA are equivalent to R_PC. They are
PC-relative and safe to use in shared libraries, but have a different
relocation code as they are evaluated differently. Now that LLVM may
generate these relocations in object files, they may occur in
shared libraries or position-independent executables.
More information about the All-commits
mailing list