[PATCH] D24576: Change how we compute offsets with linker scripts

Rafael Ávila de Espíndola via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 11:26:19 PDT 2016


rafael created this revision.
rafael added reviewers: evgeny777, ruiu, grimar.
rafael added a subscriber: llvm-commits.

This fixes pr30367, but more importantly, it changes how we compute offsets.

Now offset computation in a walk over linker script commands, like the rest of assignAddresses. IMHO this is simpler to understand and if we ever have to create mulitple outputsections or chunks to change how we handle test/ELF/linkerscript/alternate-sections.s it should be easier to do it.


https://reviews.llvm.org/D24576

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  test/ELF/linkerscript/merge-sections.s
  test/ELF/linkerscript/symbols-synthetic.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24576.71400.patch
Type: text/x-patch
Size: 16142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160914/72ee537c/attachment.bin>


More information about the llvm-commits mailing list