[PATCH] D21133: [ELF] - Inform user that we do not support relocations against text segment.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 06:54:53 PDT 2016


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

It was reported in PR28020, that lld does not link code which
gold do. But in fact that is expected behavior as we do not
support DT_TEXTREL.

This patch expands the error message and also fixes part
where it was saying "cannot be used when making a shared object",
because it also could be PIE object, so i switched it to
"cannot be used when making a PIC object"

http://reviews.llvm.org/D21133

Files:
  ELF/Relocations.cpp
  test/ELF/aarch64-fpic-add_abs_lo12_nc.s
  test/ELF/aarch64-fpic-adr_prel_lo21.s
  test/ELF/aarch64-fpic-adr_prel_pg_hi21.s
  test/ELF/aarch64-fpic-ldst32_abs_lo12_nc.s
  test/ELF/aarch64-fpic-ldst64_abs_lo12_nc.s
  test/ELF/aarch64-fpic-ldst8_abs_lo12_nc.s
  test/ELF/copy-in-shared.s
  test/ELF/copy-rel-pie-error.s
  test/ELF/dynamic-reloc-in-ro.s
  test/ELF/eh-frame-dyn-rel.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: D21133.60026.patch
Type: text/x-patch
Size: 8323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160608/e85ae780/attachment.bin>


More information about the llvm-commits mailing list