Currently .eh_frame_hdr must be written after .eh_frame, because EhFrameHeader is filled in EhOutputSection::writeTo(). This patch fixes it in a cost of one extra disk seek.
Details
Details
Diff Detail
Diff Detail
- Repository
 - rL LLVM
 
Event Timeline
Comment Actions
LGTM
| ELF/Writer.cpp | ||
|---|---|---|
| 1312 ↗ | (On Diff #69718) | Add a comment saying that EhFrameHdr depends on EhFrame contents therefore it needs to be written after EhFrame is writtern.  |