[PATCH] D58795: ELF: Write .eh_frame_hdr explicitly after writing .eh_frame.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 28 14:13:17 PST 2019
pcc created this revision.
pcc added a reviewer: ruiu.
Herald added subscribers: MaskRay, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
This lets us remove the special case from Writer::writeSections(), and also
fixes a bug where .eh_frame_hdr isn't necessarily written in the correct
order if a linker script moves .eh_frame and .eh_frame_hdr into the same
output section.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D58795
Files:
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h
lld/ELF/Target.cpp
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/eh-frame-merge.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58795.188788.patch
Type: text/x-patch
Size: 9448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190228/f1a277b4/attachment.bin>
More information about the llvm-commits
mailing list