[PATCH] D40652: [ELF] - Produce relocation section name consistent with output section name when --emit-reloc used with linker script.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 07:28:54 PST 2017


grimar created this revision.
Herald added a subscriber: emaste.

This is for "Bug 35474 - --emit-relocs produces wrongly-named reloc sections".

LLD currently for scripts like:

  .text.boot : { *(.text.boot) }

emits relocation section with name `.rela.text` because does not take
redefined name of output section into account and builds section name
using rules for non-scripted case. Patch fixes this oddness.


https://reviews.llvm.org/D40652

Files:
  ELF/LinkerScript.cpp
  ELF/SyntheticSections.cpp
  ELF/Writer.cpp
  ELF/Writer.h
  test/ELF/linkerscript/emit-reloc-section-names.s
  test/ELF/linkerscript/emit-relocs-multiple.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40652.124935.patch
Type: text/x-patch
Size: 4304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171130/5ce6a244/attachment.bin>


More information about the llvm-commits mailing list