changeset 2680:b0d201ac6a5b

* src/mips_mips32.ld: gcc_except_table subsections don't need to be kept. * src/mips_mip32.ld (SECTION_gcc_except_table): Mark gcc_except_table as KEEP
author jld
date Fri, 05 Dec 2008 08:22:15 +0000
parents 47922fab416e
children c3df4176e897
files packages/hal/mips/mips32/current/ChangeLog packages/hal/mips/mips32/current/src/mips_mips32.ld
diffstat 2 files changed, 16 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/mips/mips32/current/ChangeLog
+++ b/packages/hal/mips/mips32/current/ChangeLog
@@ -1,3 +1,13 @@
+2005-06-10  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* src/mips_mips32.ld: gcc_except_table subsections don't need to be
+	kept.
+
+2005-06-06  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* src/mips_mip32.ld (SECTION_gcc_except_table): Mark gcc_except_table
+	as KEEP.
+
 2004-04-22  Jani Monoses <jani@iv.ro>
 
 	 * cdl/hal_mips_mips32.cdl :
--- a/packages/hal/mips/mips32/current/src/mips_mips32.ld
+++ b/packages/hal/mips/mips32/current/src/mips_mips32.ld
@@ -7,6 +7,7 @@
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+// Copyright (C) 2005 eCosCentric Limited
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
@@ -224,10 +225,11 @@ GROUP(libtarget.a libgcc.a)
        FORCE_OUTPUT; *(.eh_frame)                     \
     } > _region_
 
-#define SECTION_gcc_except_table(_region_, _vma_, _lma_) \
-  .gcc_except_table _vma_ : _lma_                        \
-    {                                                    \
-      FORCE_OUTPUT; *(.gcc_except_table)                 \
+#define SECTION_gcc_except_table(_region_, _vma_, _lma_)      \
+  .gcc_except_table _vma_ : _lma_                             \
+    { FORCE_OUTPUT;                                           \
+      KEEP(*(.gcc_except_table))                              \
+      *(.gcc_except_table.*)                                  \
     } > _region_