diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-05-07 10:16:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-05-07 10:31:51 +0200 |
commit | f6895c6d552772cd16f36c20551bfa84190bb5b9 (patch) | |
tree | 8a1ef2963bbe76ba7409445d6b224433e960dde6 /bsps/powerpc | |
parent | f4db49a1ab2f0dc53b2cb0d12ce539395befb33f (diff) |
bsps/powerpc: Fix C++ exception handling
Close #3736.
Diffstat (limited to 'bsps/powerpc')
-rw-r--r-- | bsps/powerpc/shared/start/linkcmds.share | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bsps/powerpc/shared/start/linkcmds.share b/bsps/powerpc/shared/start/linkcmds.share index 7bf7279a02..365a84953f 100644 --- a/bsps/powerpc/shared/start/linkcmds.share +++ b/bsps/powerpc/shared/start/linkcmds.share @@ -134,7 +134,8 @@ SECTIONS . += 1; PROVIDE (__SBSS2_END__ = .); } >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 * '_etext' (and __DATA_START__) is CRUCIAL - otherwise, @@ -171,7 +172,7 @@ SECTIONS } > CODE .data1 : { *(.data1) } > CODE PROVIDE (__EXCEPT_START__ = .); - .gcc_except_table : { *(.gcc_except_table*) } > CODE + .gcc_except_table : { *(.gcc_except_table .gcc_except_table.*) } > CODE PROVIDE (__EXCEPT_END__ = .); .got1 : { *(.got1) } > CODE /* Put .ctors and .dtors next to the .got2 section, so that the pointers |