[ELF][ARM] Represent R_ARM_LDO32 as R_DTPREL instead of R_ABS
authorFangrui Song <maskray@google.com>
Mon, 6 Jul 2020 16:47:53 +0000 (09:47 -0700)
committerFangrui Song <maskray@google.com>
Mon, 6 Jul 2020 16:47:53 +0000 (09:47 -0700)
commitc1a5f73a4ae70d8f808c1bac091c3f4b683815b4
tree0cee70c7b49762202af99364863feb3b635096ab
parent61c2a0bb823677ce0e604b92e5dae65d9bd32b6e
[ELF][ARM] Represent R_ARM_LDO32 as R_DTPREL instead of R_ABS

Follow-up to D82899. Note, we need to disable R_DTPREL relaxation
because ARM psABI does not define TLS relaxation.

Reviewed By: grimar, psmith

Differential Revision: https://reviews.llvm.org/D83138
lld/ELF/Arch/ARM.cpp
lld/ELF/Relocations.cpp
lld/test/ELF/debug-dead-reloc-tls-arm.s