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.
Paths
| Differential D43999
[ELF] - Support moving location counter when MEMORY is used. ClosedPublic Authored by grimar on Mar 2 2018, 2:05 AM.
Details Summary We do not expand memory region correctly for following scripts: .foo.1 : { *(.foo.1) . += 0x1000; } > ram Patch generalizes expanding of output sections and memory
Diff Detail
Event TimelineClosed by commit rLLD326688: [ELF] - Support moving location counter when MEMORY is used. (authored by grimar). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 136963 ELF/LinkerScript.h
ELF/LinkerScript.cpp
test/ELF/linkerscript/memory-loc-counter.test
|