* [PATCH] HOSTING_* definitions for sparc*-*linux-gnu*
@ 1999-08-08 4:28 Jakub Jelinek
1999-08-08 9:05 ` H.J. Lu
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 1999-08-08 4:28 UTC (permalink / raw)
To: binutils; +Cc: Richard Henderson, David S. Miller
Hi!
When trying to check ld testsuite I found out sparc*linux does not have any
entries in configure.host, so bootstrap checks all failed.
But after applying this patch, the testsuite passed completely, so I will
have to dig more deeply into the shared libs on Solaris problem.
I recall davem's patch was written exactly because SparcLinux had major
problems with running non-PIC code linked into shared libraries.
1999-08-08 Jakub Jelinek <jj@ultra.linux.cz>
* configure.host: Set up HOSTING_CRT0 and HOSTING_LIBS for
sparc*-*linux-gnu*.
--- ./configure.host.jj Fri Jul 23 15:31:49 1999
+++ ./configure.host Sun Aug 8 10:41:53 1999
@@ -173,4 +173,14 @@ sparc*-*-solaris2*)
NATIVE_LIB_DIRS=/usr/ccs/lib
;;
+sparc-*-linux-gnu*)
+ HOSTING_CRT0='-dynamic-linker /lib/ld-linux.so.2 `gcc --print-file-name=crt1.o` `gcc --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc --print-file-name=crtbegin.o; fi`'
+ HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -L`dirname \`gcc --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc --print-file-name=crtend.o; fi` `gcc --print-file-name=crtn.o`'
+ ;;
+
+sparc64-*-linux-gnu*)
+ HOSTING_CRT0='-dynamic-linker /lib64/ld-linux.so.2 `gcc --print-file-name=crt1.o` `gcc --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else gcc --print-file-name=crtbegin.o; fi`'
+ HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -L`dirname \`gcc --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else gcc --print-file-name=crtend.o; fi` `gcc --print-file-name=crtn.o`'
+ ;;
+
esac
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
UltraLinux | http://ultra.linux.cz/ | http://ultra.penguin.cz/
Linux version 2.3.13 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] HOSTING_* definitions for sparc*-*linux-gnu*
1999-08-08 4:28 [PATCH] HOSTING_* definitions for sparc*-*linux-gnu* Jakub Jelinek
@ 1999-08-08 9:05 ` H.J. Lu
0 siblings, 0 replies; 2+ messages in thread
From: H.J. Lu @ 1999-08-08 9:05 UTC (permalink / raw)
To: Jakub Jelinek; +Cc: binutils, Richard Henderson, David S. Miller
>
> Hi!
>
> When trying to check ld testsuite I found out sparc*linux does not have any
> entries in configure.host, so bootstrap checks all failed.
> But after applying this patch, the testsuite passed completely, so I will
> have to dig more deeply into the shared libs on Solaris problem.
> I recall davem's patch was written exactly because SparcLinux had major
> problems with running non-PIC code linked into shared libraries.
>
>
Since Solaris is fine with it, may it be a glibc bug?
--
H.J. Lu (hjl@gnu.org)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-08-08 9:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-08 4:28 [PATCH] HOSTING_* definitions for sparc*-*linux-gnu* Jakub Jelinek
1999-08-08 9:05 ` H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).