HomePhabricator

[ELF] - Don't allow R_X86_64_TPOFF32 dynamic relocation when linking PIC

Description

[ELF] - Don't allow R_X86_64_TPOFF32 dynamic relocation when linking PIC

Both gold and bfd restrict that one:

ld.bfd: test.o: relocation R_X86_64_TPOFF32 against `var' can not be
used when making a shared object; recompile with -fPIC
ld.gold: error: test.o: unsupported reloc 23 against global symbol var

What looks reasonable because it is 32 bit one. Patch do the same.

Differential revision: https://reviews.llvm.org/D33100

Details

Committed
grimarMay 12 2017, 12:19 AM
Differential Revision
D33100: [ELF} - Don't allow R_X86_64_TPOFF32 dynamic relocation when linking PIC
Branches
Unknown
Tags
Unknown