[PATCH] D28761: [ELF] Bypass section type check.

Eugene Leviant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 16 01:42:07 PST 2017


evgeny777 created this revision.
evgeny777 added reviewers: ruiu, rafael.
evgeny777 added subscribers: grimar, ikudrin, llvm-commits.
evgeny777 set the repository for this revision to rL LLVM.
evgeny777 added a project: lld.

r291107 has broken things for me, because I have following in my linker script:

  .data : {
    *(.data*)
    /* .. other "aw" sections go here  ... */
    PROVIDE_HIDDEN(__init_array_start = .);
    *(.init_array*)
    PROVIDE_HIDDEN(__init_array_end = .);
  }

This patch bypasses type check when section comes from linker script (it might make sense to eliminate it completely, though).


Repository:
  rL LLVM

https://reviews.llvm.org/D28761

Files:
  ELF/LinkerScript.cpp
  ELF/OutputSections.cpp
  ELF/OutputSections.h
  ELF/Writer.cpp
  test/ELF/linkerscript/section-types.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28761.84524.patch
Type: text/x-patch
Size: 3910 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170116/2064e709/attachment.bin>


More information about the llvm-commits mailing list