[PATCH] D18190: [ELF] - Error out when R_X86_64_PC32/R_X86_64_32 are used against preemptible symbol when linking shared object.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 15 09:23:19 PDT 2016


grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.

gold errors out with something like "requires dynamic R_X86_64_32 reloc which
may overflow at runtime; recompile with -fPIC" when this relocations are
used against preemptible symbol and output is position independent.

Patch implements the same error.

http://reviews.llvm.org/D18190

Files:
  ELF/Target.cpp
  test/ELF/Inputs/allow-shlib-undefined.s
  test/ELF/Inputs/llvm33-rela-outside-group.o
  test/ELF/allow-shlib-undefined.s
  test/ELF/llvm33-rela-outside-group.s
  test/ELF/no-undefined.s
  test/ELF/x86-64-reloc-32-fpic.s
  test/ELF/x86-64-reloc-pc32-fpic.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18190.50746.patch
Type: text/x-patch
Size: 5977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160315/da6f1ffc/attachment.bin>


More information about the llvm-commits mailing list