This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [hppa] binutils will not build shared libraries with external deps?
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Randolph Chung <tausq at debian dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 27 May 2003 07:12:39 -0700
- Subject: Re: [hppa] binutils will not build shared libraries with external deps?
- References: <20030527052251.GC24873@tausq.org>
May I suggest you submit a ld testcase patch for ld-hppa? Please make
sure it uses .s file and a cross compiler is not required.
H.J.
---
On Mon, May 26, 2003 at 10:22:51PM -0700, Randolph Chung wrote:
> Looks like latest binutils CVS (also as of 2.14.90.0.1) cannot build
> shared libraries that have external symbols on at least hppa-linux:
>
> tausq@ios:~$ cat blah.c
> extern int foo();
> int call_foo() { return foo(); }
>
> tausq@ios:~$ gcc -shared -fPIC -o blah.so blah.c
> /tmp/ccC3fZeH.o(.text+0x1c): In function `call_foo':
> : undefined reference to `foo'
>
> this worked fine on older binutils (e.g. 2.13.90.0.16 worked).
>
> does anyone know what might be broken? this is causing a lot of failures
> in the binutils test suite....
>
> thanks,
> randolph
> --
> Randolph Chung
> Debian GNU/Linux Developer, hppa/ia64 ports
> http://www.tausq.org/
>