This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld static link problem
- From: Nick Clifton <nickc at redhat dot com>
- To: Araos Carvacho Rene Antonio <raraos at entel dot cl>
- Cc: binutils at sources dot redhat dot com, bug-binutils at gnu dot org, binutils at sources dot redhat dot com;bug-binutils at gnu dot org;;;
- Date: Tue, 16 Dec 2003 14:49:08 +0000
- Subject: Re: ld static link problem
- References: <ABA2E1ADB63F0D48A9B5A8868EBA8F5E7AAE@epmarexc01.Entelpcs.Entelcorp.com>
Hi Araos,
> This is the output with gcc -v
> /sw/gnu64b/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/collect2 -E -u main -a
> archive /usr/ccs/lib/pa20_64/crt0.o
> /sw/gnu64b/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/crtbeginT.o
> -L/sw/gnu64b/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2
> -L/sw/gnu64b/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/../../../../hppa64-hp-hpux11.11/lib
> -L/usr/ccs/bin -L/usr/ccs/lib/pa20_64
> -L/opt/langtools/lib/pa20_64
> -L/sw/gnu64b/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/../../..
> /var/tmp//ccq0eWgw.o -lgcc -lc -a shared -ldld -a archive -lc
> /usr/lib/pa20_64/milli.a -lgcc
> /sw/gnu64b/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/crtend.o
Hmm - interesting. Do you get the same error if you run this command
by hand ? (Replacing "collect2" with the linker and "/var/tmp//ccq0eWgw.o"
with "aa.o")
Also - what is the output of running the linker with
just the "--verbose" switch ? This should cause it to display the
linker's default linker-map which is at the root of the problem. (See
the section on SIZEOF_HEADERS in the linker manual for more
information).
Cheers
Nick