bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: trouble compiling binutils


From: Nick Clifton
Subject: Re: trouble compiling binutils
Date: Fri, 20 Jun 2003 09:24:09 +0100
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux)

Hi Mike,

> First the version is binutils-2.13.1 and it complained
> about undefined reference to `libintl_gettext'
>
> so then I compiled and installed gettext-0.11.5
> but that did not help
>
> then I tried ./configure --with-included-gettext

Another way around this problem is to configure with --disable-nls


> and now it is croaking for 
> /usr/local/lib/gcc-lib/i586-pc-linux-gnu/3.3/../../../../i586-pc-linux-gnu/bin/ld:
> objdump: Not enough room for program headers
> (allocated 6, need 7)
> /usr/local/lib/gcc-lib/i586-pc-linux-gnu/3.3/../../../../i586-pc-linux-gnu/bin/ld:
> final link failed: Bad value
>
> which is the reason I started reinstalling binutils
> in the first place because I had this same error
> when trying to compile the big lizard mozilla

This is most likely not really a binutils bug per se, but rather a
problem with the linker script you are using.  From the ld.texinfo
manual:

   "not enough room for program headers"
   
   When producing an ELF output file, if the linker script uses
   the SIZEOF_HEADERS builtin function, the linker must compute
   the number of program headers before it has determined all
   the section addresses and sizes.  If the linker later
   discovers that it needs additional program headers, it will
   report an error "not enough room for program headers".  To
   avoid this error, you must avoid using the SIZEOF_HEADERS
   function, or you must rework your linker script to avoid
   forcing the linker to use additional program headers, or you
   must define the program headers yourself using the PHDRS
   command

Cheers
        Nick
          





reply via email to

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