[PATCH] D44679: [ELF] - Another 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
Tue Mar 20 04:48:29 PDT 2018
grimar created this revision.
grimar added reviewers: ruiu, espindola.
Herald added subscribers: arichardson, javed.absar, emaste.
This is alternative to https://reviews.llvm.org/D44622 and https://reviews.llvm.org/D44601.
This fixes PR36367 which is about segfault when --emit-relocs is
used together with .eh_frame sections which happens because
of reordering of regular and .rel[a] sections.
In this patch, 2 iterations over input sections are done, first for
regular section and second for .rel[a] sections.
https://reviews.llvm.org/D44679
Files:
ELF/LinkerScript.cpp
test/ELF/arm-exidx-relocatable.s
test/ELF/emit-relocs-eh-frame.s
test/ELF/emit-relocs-shared.s
test/ELF/emit-relocs.s
test/ELF/linkerscript/eh-frame-emit-relocs.s
test/ELF/relocatable-sections.s
test/ELF/relocatable.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44679.139104.patch
Type: text/x-patch
Size: 6496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180320/28e45089/attachment.bin>
More information about the llvm-commits
mailing list