This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld static link problem


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
        


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]