This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by grimar on May 11 2017, 6:23 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.May 11 2017, 6:23 AM
grimar retitled this revision from [ELF} - Don't allow R_X86_64_TPOFF32 relocation when linking PIC to [ELF} - Don't allow R_X86_64_TPOFF32 dynamic relocation when linking PIC.
ruiu accepted this revision.May 11 2017, 11:35 AM

LGTM

This revision is now accepted and ready to land.May 11 2017, 11:35 AM
This revision was automatically updated to reflect the committed changes.