waterbox: fix linker script putting __eh_frame_hdr_start in the wrong place

This was benign, because libunwind will ignore a frame header it doesn't understand (__eh_frame was still fine).  But now there's no spew in the console.  And over the next 50 years it will save a combined 0.3 seconds of cpu time
This commit is contained in:
nattthebear 2020-05-25 21:02:01 -04:00
parent 7778fccd77
commit 6da864f4f7
3 changed files with 5 additions and 2 deletions

Binary file not shown.

BIN
output/dll/pce.wbx.gz Normal file

Binary file not shown.

View File

@ -77,8 +77,11 @@ SECTIONS
. = SEGMENT_START("rodata-segment", ALIGN(CONSTANT (MAXPAGESIZE)) + (. & (CONSTANT (MAXPAGESIZE) - 1)));
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
__eh_frame_hdr_start = .;
.eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) }
.eh_frame_hdr :
{
__eh_frame_hdr_start = .;
*(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*)
}
__eh_frame_hdr_end = .;
__eh_frame_start = .;
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) *(.eh_frame.*) }