ld static link problem
Nick Clifton
nickc@redhat.com
Tue Dec 16 15:23:00 GMT 2003
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
More information about the Binutils
mailing list