[PATCH] [lld][LinkerScript] Add matching of output sections to segments

Denis Protivensky dprotivensky at accesssoftek.com
Wed Jun 10 06:25:10 PDT 2015


Hi Bigcheese,

Add method to query segments for specified output section name. Return error if the section is assigned to unknown segment.
Check matching of sections to segments during layout on the subject of correctness.
NOTE: no actual functionality of using custom segments is implemented.

http://reviews.llvm.org/D10359

Files:
  include/lld/Core/Error.h
  include/lld/ReaderWriter/LinkerScript.h
  lib/Core/Error.cpp
  lib/ReaderWriter/ELF/TargetLayout.cpp
  lib/ReaderWriter/ELF/TargetLayout.h
  lib/ReaderWriter/LinkerScript.cpp
  test/elf/linkerscript/phdrs-default.test
  test/elf/linkerscript/phdrs-invalid.test
  test/elf/linkerscript/phdrs/sections-empty-phdrs.script
  test/elf/linkerscript/phdrs/sections-no-phdrs.script
  test/elf/linkerscript/phdrs/sections-none-phdrs.script
  test/elf/linkerscript/phdrs/undef-empty-phdrs.script
  test/elf/linkerscript/phdrs/undef-id-phdrs.script
  test/elf/linkerscript/phdrs/undef-no-phdrs.script

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10359.27438.patch
Type: text/x-patch
Size: 14852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150610/75f77577/attachment.bin>


More information about the llvm-commits mailing list