patches/gcc/4.3.5/140-netbsd-symbolic.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Fri Nov 09 19:42:32 2012 +0100 (2012-11-09)
changeset 3104 7da91f9ba328
parent 1461 35b30f8fb307
permissions -rw-r--r--
cc/gcc: fix patches for 4.6.{0,1}

Remove the sparc part, as it touches code that does not exist in
those versions of gcc (it was added at 4.6.2).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
CC: Florian Fainelli <f.fainelli@gmail.com>
thomas@1461
     1
Original patch from: ../4.3.2/140-netbsd-symbolic.patch
thomas@1461
     2
thomas@1461
     3
-= BEGIN original header =-
thomas@1461
     4
Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/gentoo/11_all_gcc-netbsd-symbolic.patch
thomas@1461
     5
http://bugs.gentoo.org/122698
thomas@1461
     6
thomas@1461
     7
-= END original header =-
thomas@1461
     8
thomas@1461
     9
diff -durN gcc-4.3.3.orig/gcc/config/netbsd-elf.h gcc-4.3.3/gcc/config/netbsd-elf.h
thomas@1461
    10
--- gcc-4.3.3.orig/gcc/config/netbsd-elf.h	2007-09-03 18:14:04.000000000 +0200
thomas@1461
    11
+++ gcc-4.3.3/gcc/config/netbsd-elf.h	2009-01-27 22:19:18.000000000 +0100
thomas@1461
    12
@@ -82,6 +82,7 @@
thomas@1461
    13
 #define NETBSD_LINK_SPEC_ELF \
thomas@1461
    14
   "%{assert*} %{R*} %{rpath*} \
thomas@1461
    15
    %{shared:-shared} \
thomas@1461
    16
+   %{symbolic:-Bsymbolic} \
thomas@1461
    17
    %{!shared: \
thomas@1461
    18
      -dc -dp \
thomas@1461
    19
      %{!nostdlib: \