[PATCH] D23352: [ELF] - Linkerscript: implemented simple heuristic for placing orphan sections.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 08:03:54 PDT 2016


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

Previously we put orphans to the end. Patch implements simple heuristic instead.
Each orphan is placed after the last section in sequence with the same access
attributes. 

Testcase is provided to show the behavior. 
Currently it looks the same or very close to what ld do.


https://reviews.llvm.org/D23352

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  test/ELF/linkerscript/linkerscript-orphans.s
  test/ELF/linkerscript/linkerscript-sections-constraint.s
  test/ELF/linkerscript/linkerscript-sections.s
  test/ELF/linkerscript/linkerscript-va.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23352.67522.patch
Type: text/x-patch
Size: 9633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160810/8db2afdc/attachment.bin>


More information about the llvm-commits mailing list