[PATCH] D40070: [ELF] - Don't emit broken relocations for SHF_MERGE sections when --emit-relocs is used.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 03:05:28 PST 2017


grimar created this revision.
Herald added subscribers: arichardson, emaste.

Previously our relocations we rewrote were broken for that case.
We emited incorrect addend and broken relocation info field
because did not produce section symbol for mergeable synthetic sections.


https://reviews.llvm.org/D40070

Files:
  ELF/InputSection.cpp
  ELF/Writer.cpp
  test/ELF/emit-relocs-mergeable-i386.s
  test/ELF/emit-relocs-mergeable.s
  test/ELF/emit-relocs.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40070.122994.patch
Type: text/x-patch
Size: 5846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171115/c3b8809d/attachment.bin>


More information about the llvm-commits mailing list