patches/gcc/3.3/sh-spec.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
yann@1
     1
Message-Id: <200308020452.h724q0n01509@r-rr.iij4u.or.jp>
yann@1
     2
To: dank@kegel.com
yann@1
     3
Cc: kkojima@rr.iij4u.or.jp
yann@1
     4
Subject: Re: Writing PIC version of __udivsi3_i4?
yann@1
     5
In-Reply-To: Your message of "Fri, 01 Aug 2003 21:15:27 -0700"
yann@1
     6
	<3F2B3ADF.6030206@kegel.com>
yann@1
     7
References: <3F2B3ADF.6030206@kegel.com>
yann@1
     8
Date: Sat, 02 Aug 2003 13:58:05 +0900
yann@1
     9
From: kaz Kojima <kkojima@rr.iij4u.or.jp>
yann@1
    10
yann@1
    11
Dan Kegel <dank@kegel.com> wrote:
yann@1
    12
> It seems it might be from gcc's spec file:
yann@1
    13
> 
yann@1
    14
> *subtarget_link_spec:
yann@1
    15
> %{shared:-shared}    %{!static:      %{rdynamic:-export-dynamic}      %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}      %{!rpath:-rpath /lib}}    %{static:-static}
yann@1
    16
> 
yann@1
    17
> as the only place -rpath showed up was in the output of gcc -v as it
yann@1
    18
> was linking libc.so.
yann@1
    19
> 
yann@1
    20
> Well, that's a clue, anyway!  Guess I'll dig through the spec files
yann@1
    21
> tomorrow to see if I can figure it out some more.
yann@1
    22
yann@1
    23
I've grepped gcc/config/*/*.h and found only SH and old libc1 stuffs
yann@1
    24
of i386/alpha include %{!rpath:-rpath ... in 3.3 release and the
yann@1
    25
current CVS. And my sh-gcc's specs doesn't have this :-(
yann@1
    26
It would be the Right Thing to remove this stuff simply. How about
yann@1
    27
the gcc patch below?
yann@1
    28
yann@1
    29
Regards,
yann@1
    30
	kaz
yann@1
    31
--
yann@1
    32
--- gcc-3.3/gcc/config/sh/linux.h.orig	Sat Aug  2 13:20:57 2003
yann@1
    33
+++ gcc-3.3/gcc/config/sh/linux.h	Sat Aug  2 13:22:42 2003
yann@1
    34
@@ -48,8 +48,7 @@ do { \
yann@1
    35
   "%{shared:-shared} \
yann@1
    36
    %{!static: \
yann@1
    37
      %{rdynamic:-export-dynamic} \
yann@1
    38
-     %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
yann@1
    39
-     %{!rpath:-rpath /lib}} \
yann@1
    40
+     %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
yann@1
    41
    %{static:-static}"
yann@1
    42
 
yann@1
    43
 /* The GNU C++ standard library requires that these macros be defined.  */
yann@1
    44
yann@1
    45