[PATCH] D44622: [ELF] - Fix for LLD crashes with --emit-relocs when trying to proccess .eh_frame
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 19 06:25:48 PDT 2018
grimar created this revision.
grimar added reviewers: ruiu, espindola.
Herald added subscribers: arichardson, emaste.
This fixes PR36367 which is about segfault when --emit-relocs is
used together with .eh_frame sections.
That happens because we reorder .eh_frame sections and corresponding
.rela.eh_frame sections when combining .eh_frames.
Usually, objects do not do that and we error out on such objects (I added the test case),
so the situation with .eh_frame is unique.
The patch fixes it.
https://reviews.llvm.org/D44622
Files:
ELF/Writer.cpp
test/ELF/emit-relocs-eh-frame.s
test/ELF/emit-relocs-shared.s
test/ELF/emit-relocs.s
test/ELF/invalid/emit-relocs-reordered.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44622.138903.patch
Type: text/x-patch
Size: 4325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180319/54b1741a/attachment.bin>
More information about the llvm-commits
mailing list