Skip to content
Commit 674dbcc0 authored by Bill Nell's avatar Bill Nell Committed by Maksim Panchenko
Browse files

Fix crash in patchELFPHDRTable when no functions are modified.

Summary:
patchELFPHDRTable was asserting that it could not find an entry
for .eh_frame_hdr in SectionMapInfo when no functions were modified
by BOLT.

This just changes code to skip modifying GNU_EH_FRAME program headers
hen SectionMapInfo is empty.  The existing header is copied and written
instead.

(cherry picked from FBD3557481)
parent 84b5b9e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment