Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/shark/conf also need to strip out GCC 4.5's new .de...



details:   https://anonhg.NetBSD.org/src/rev/609f7706dd42
branches:  trunk
changeset: 766815:609f7706dd42
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jul 02 14:17:40 2011 +0000

description:
also need to strip out GCC 4.5's new .debug_pubtypes section.
while here, minor cleanup.

diffstat:

 sys/arch/shark/conf/Makefile.shark.inc |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (37 lines):

diff -r 339a5882c981 -r 609f7706dd42 sys/arch/shark/conf/Makefile.shark.inc
--- a/sys/arch/shark/conf/Makefile.shark.inc    Sat Jul 02 14:13:50 2011 +0000
+++ b/sys/arch/shark/conf/Makefile.shark.inc    Sat Jul 02 14:17:40 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.shark.inc,v 1.13 2010/07/06 06:00:00 mrg Exp $
+#      $NetBSD: Makefile.shark.inc,v 1.14 2011/07/02 14:17:40 mrg Exp $
 
 MACHINE_ARCH=          arm
 CPPFLAGS+=             -D${MACHINE}
@@ -15,19 +15,19 @@
                ${SYSTEM_OBJ} ; \
          cat ${ARM}/conf/kern.ldscript.tail ) > ldscript
 
+REMOVE_SECTIONS= \
+       -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
+       -R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
+       -R .debug_frame -R .debug_loc -R .debug_pubnames \
+       -R .debug_aranges -R .debug_pubtypes -R .ARM.attributes \
+
 SYSTEM_LD_TAIL_EXTRA+=; \
        echo \
         "${OBJCOPY} -O a.out-arm-netbsd \
-               -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
-               -R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
-               -R .debug_frame -R .debug_loc -R .debug_pubnames \
-               -R .debug_aranges -R .ARM.attributes \
+               ${REMOVE_SECTIONS} \
                $@ $@.aout"; \
        ${OBJCOPY} -O a.out-arm-netbsd \
-               -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
-               -R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
-               -R .debug_frame -R .debug_loc -R .debug_pubnames \
-               -R .debug_aranges -R .ARM.attributes \
+               ${REMOVE_SECTIONS} \
                $@ $@.aout
 
 KERNIMAGES=    netbsd netbsd.aout



Home | Main Index | Thread Index | Old Index