The data reorder pass needs to create new data section in writable segment.
Also the golang support create 2 new data sections, one of them contains
relocations in PIC binaries so the section must have writable rights.
Currently BOLT creates only one new segment that contains new sections
with RX rights, also create RW segment if there any new writable
sections were allocated during BOLT binary processing.
Vladislav Khmelevsky,
Advanced Software Technology Lab, Huawei
Is .eh_frame_hdr part of this new writable segment? Shouldn't it go to the read-only segment? Why is eh_frame_hdr being mapped to the last segment?