bsps/powerpc: Fix C++ exception handling

Close #3736.
This commit is contained in:
Sebastian Huber
2019-05-07 10:16:46 +02:00
parent f4db49a1ab
commit f6895c6d55

View File

@@ -134,7 +134,8 @@ SECTIONS
. += 1; . += 1;
PROVIDE (__SBSS2_END__ = .); PROVIDE (__SBSS2_END__ = .);
} >CODE } >CODE
.eh_frame : { *(.eh_frame) } >CODE .eh_frame_hdr : { *(.eh_frame_hdr) } >CODE
.eh_frame : { KEEP (*(.eh_frame)) } >CODE
/* NOTE: if the BSP uses page tables, the correctness of /* NOTE: if the BSP uses page tables, the correctness of
* '_etext' (and __DATA_START__) is CRUCIAL - otherwise, * '_etext' (and __DATA_START__) is CRUCIAL - otherwise,
@@ -171,7 +172,7 @@ SECTIONS
} > CODE } > CODE
.data1 : { *(.data1) } > CODE .data1 : { *(.data1) } > CODE
PROVIDE (__EXCEPT_START__ = .); PROVIDE (__EXCEPT_START__ = .);
.gcc_except_table : { *(.gcc_except_table*) } > CODE .gcc_except_table : { *(.gcc_except_table .gcc_except_table.*) } > CODE
PROVIDE (__EXCEPT_END__ = .); PROVIDE (__EXCEPT_END__ = .);
.got1 : { *(.got1) } > CODE .got1 : { *(.got1) } > CODE
/* Put .ctors and .dtors next to the .got2 section, so that the pointers /* Put .ctors and .dtors next to the .got2 section, so that the pointers