[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ld static link problem
From: |
Araos Carvacho Rene Antonio |
Subject: |
ld static link problem |
Date: |
Fri, 12 Dec 2003 16:38:16 -0300 |
Helo
Can you help my?
I have a problem compiling static program, for example
# > 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
collect2: ld returned 1 exit status
this is gcc and binutils info
# > gcc -v
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
# > ld --version
GNU ld version 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
this is gcc configure
CC="cc -Wp,-H256000 -g +DA2.0W" ./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
this is binutils configure
CC="cc -Wp,-H256000 -g +DA2.0W" ./configure --prefix=/sw/gnu64b
--enable-64-bit-bfd
this is my machine info
# > uname -a
HP-UX mercurio B.11.11 U 9000/800 3862108421 unlimited-user license
- ld static link problem,
Araos Carvacho Rene Antonio <=