[PATCH] D23505: [ELF] - Linkrscript: shange the way of creating PT_LOADs segments when LS is used.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 05:34:50 PDT 2016


grimar created this revision.
grimar added a reviewer: ruiu.
grimar added subscribers: llvm-commits, grimar, davide, evgeny777.
Herald added a subscriber: emaste.

I noticed that logic of PT_LOADs creation when script is used in gnu linekrs is different from what we have now.
For example ld seems to create 2 PT_LOADs. In first one it puts all sections before first writable, it is text load,
and also it has data load where all sections after and including first writable are placed.

FreeBSD script seems to rely on this logic, and also it seems to be clear and simple, so patch implements the same.

https://reviews.llvm.org/D23505

Files:
  ELF/Writer.cpp
  test/ELF/arm-blx.s
  test/ELF/arm-branch.s
  test/ELF/arm-thumb-branch.s
  test/ELF/linkerscript/linkerscript-common.s
  test/ELF/linkerscript/linkerscript-excludefile.s
  test/ELF/linkerscript/linkerscript-filename-spec.s
  test/ELF/linkerscript/linkerscript-merge-sections.s
  test/ELF/linkerscript/linkerscript-ptloads.s
  test/ELF/linkerscript/linkerscript-repsection-va.s
  test/ELF/linkerscript/linkerscript-sections-constraint.s
  test/ELF/linkerscript/linkerscript-sections-keep.s
  test/ELF/linkerscript/linkerscript-sections-padding.s
  test/ELF/linkerscript/linkerscript-sizeof.s
  test/ELF/linkerscript/linkerscript-sizeofheaders.s
  test/ELF/linkerscript/linkerscript-sort-nested.s
  test/ELF/linkerscript/linkerscript-sort.s
  test/ELF/linkerscript/linkerscript-symbol-assignexpr.s
  test/ELF/linkerscript/linkerscript-symbol-conflict.s
  test/ELF/linkerscript/linkerscript-symbols-synthetic.s
  test/ELF/linkerscript/linkerscript-symbols.s
  test/ELF/linkerscript/linkerscript-va.s
  test/ELF/phdr-align.s
  test/ELF/wildcards.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23505.68022.patch
Type: text/x-patch
Size: 38772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160815/55668cf2/attachment.bin>


More information about the llvm-commits mailing list