bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: ld static link problem


From: Araos Carvacho Rene Antonio
Subject: RE: ld static link problem
Date: Mon, 15 Dec 2003 16:41:20 -0300

Hi Nick

        This is the output whith gcc -v

# > gcc -v --static aa.c
Reading specs from /sw/gnu64b/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/specs
Configured with: ./configure --prefix=/sw/gnu64b --with-gnu-as
--with-as=/sw/gnu64b/bin/gas --with-ld=/sw/gnu64b/bin/ld --with-gnu-ld
--enable-threads=posix
Thread model: posix
gcc version 3.3.2
 /sw/gnu64b/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/cc1 -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 aa.c -quiet -dumpbase aa.c
-auxbase aa -version -o /var/tmp//cc8Ibypk.s
GNU C version 3.3.2 (hppa64-hp-hpux11.11)
        compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/sw/gnu64b/hppa64-hp-hpux11.11/include"
#include "..." search starts here:
#include <...> search starts here:
 /sw/gnu64b/include
 /sw/gnu64b/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/include
 /usr/include
End of search list.
 /sw/gnu64b/bin/gas -o /var/tmp//ccq0eWgw.o /var/tmp//cc8Ibypk.s
 /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-hpu
x11.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
/sw/gnu64b/bin/ld: a.out: Not enough room for program headers (allocated 5,
need 6)
/sw/gnu64b/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status


ld is in /sw/gnu64b/bin

# > which ld
/sw/gnu64b/bin/ld



René Araos



-----Mensaje original-----
De: Nick Clifton [mailto:address@hidden
Enviado el: Lunes, 15 de Diciembre de 2003 12:56
Para: Araos Carvacho Rene Antonio
CC: address@hidden; address@hidden
Asunto: Re: ld static link problem


Hi Araos,

> # > cat aa.c
> main ()
> { }
>
> # > gcc --static aa.c
> /sw/gnu64b/bin/ld: a.out: Not enough room for program headers (allocated
5,
> need 6)
> /sw/gnu64b/bin/ld: final link failed: Bad value

Could you provide us with the output of running this command with the
"-v" switch added to the command line ?

> # > ld --version
> GNU ld version 2.14 20030612

Just being paranoid here - I assume that the "ld" on the command there
is the one in /sw/gnu64b/bin and not one from somewhere else ?

Cheers
        Nick
        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]