[PATCH] D42542: Improve LMARegion handling
Rafael Avila de Espindola via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 08:34:10 PST 2018
espindola created this revision.
espindola added reviewers: grimar, ruiu.
Herald added a subscriber: emaste.
This fixes the crash reported at PR36083.
The issue is that we were trying to put all the sections in the same PT_LOAD and crashing trying to write past the end of the file.
This also adds accounting for used space in LMARegion, without it all 3 PT_LOADs would have the same physical address.
https://reviews.llvm.org/D42542
Files:
ELF/LinkerScript.cpp
ELF/LinkerScript.h
ELF/Writer.cpp
test/ELF/linkerscript/at3.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42542.131461.patch
Type: text/x-patch
Size: 3660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180125/a7a4f364/attachment.bin>
More information about the llvm-commits
mailing list