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]

ld static link problem


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


	







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