[PATCH] D24041: [ELF] Linkerscript: allow .eh_frame_hdr to go before .eh_frame
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 30 12:42:18 PDT 2016
ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: ELF/Writer.cpp:1312
@@ +1311,3 @@
+
+ if (!Out<ELFT>::EhFrame->empty() && Out<ELFT>::EhFrameHdr)
+ Out<ELFT>::EhFrameHdr->writeTo(Buf + Out<ELFT>::EhFrameHdr->getFileOff());
----------------
Add a comment saying that EhFrameHdr depends on EhFrame contents therefore it needs to be written after EhFrame is writtern.
Repository:
rL LLVM
https://reviews.llvm.org/D24041
More information about the llvm-commits
mailing list