[rtems commit] bsps/powerpc: Fix C++ exception handling

Sebastian Huber sebh at rtems.org
Tue May 7 08:32:23 UTC 2019


Module:    rtems
Branch:    master
Commit:    f6895c6d552772cd16f36c20551bfa84190bb5b9
Changeset: http://git.rtems.org/rtems/commit/?id=f6895c6d552772cd16f36c20551bfa84190bb5b9

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue May  7 10:16:46 2019 +0200

bsps/powerpc: Fix C++ exception handling

Close #3736.

---

 bsps/powerpc/shared/start/linkcmds.share | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bsps/powerpc/shared/start/linkcmds.share b/bsps/powerpc/shared/start/linkcmds.share
index 7bf7279..365a849 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




More information about the vc mailing list