[PATCH] D76995: [ELF] Propagate LMA offset to sections with neither AT() nor AT>
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 28 14:00:03 PDT 2020
MaskRay created this revision.
MaskRay added reviewers: andrewng, grimar, psmith, ruiu.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
MaskRay updated this revision to Diff 253377.
MaskRay added a comment.
Improve docs/ELF/linker_script.rst
Fixes https://bugs.llvm.org/show_bug.cgi?id=45313
Also fixes linkerscript/{at4.s,overlay.test} LMA address issues exposed by
011b785505b1f6d315a93fd0a0409576ad8d1805 <https://reviews.llvm.org/rG011b785505b1f6d315a93fd0a0409576ad8d1805>.
Related: D74297 <https://reviews.llvm.org/D74297>
This patch improves emulation of GNU ld's heuristics on the difference
between the LMA and the VMA:
https://sourceware.org/binutils/docs/ld/Output-Section-LMA.html#Output-Section-LMA
New test linkerscript/lma-difference.s (based on at4.s) demonstrates some
behaviors.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76995
Files:
lld/ELF/LinkerScript.cpp
lld/docs/ELF/linker_script.rst
lld/test/ELF/linkerscript/at4.s
lld/test/ELF/linkerscript/lma-difference.s
lld/test/ELF/linkerscript/loadaddr.s
lld/test/ELF/linkerscript/map-file2.test
lld/test/ELF/linkerscript/overlay.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76995.253377.patch
Type: text/x-patch
Size: 8598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200328/bedca9b9/attachment-0001.bin>
More information about the llvm-commits
mailing list