[PATCH] D43999: [ELF] - Support moving location counter when MEMORY is used.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 2 02:05:53 PST 2018


grimar created this revision.
grimar added reviewers: ruiu, rafael.
Herald added subscribers: arichardson, emaste.

We do not expand memory region correctly for following scripts:

  .foo.1 : 
   {
     *(.foo.1)
     . += 0x1000;
   } > ram

Patch generalizes expanding of output sections and memory
regions in one place and fixes the issue.


https://reviews.llvm.org/D43999

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  test/ELF/linkerscript/memory-loc-counter.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43999.136701.patch
Type: text/x-patch
Size: 5358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180302/14e42bd2/attachment.bin>


More information about the llvm-commits mailing list