Binutils querry

Daniel Jacobowitz drow@mvista.com
Fri Feb 15 08:04:00 GMT 2002


On Fri, Feb 15, 2002 at 02:55:00PM +0530, Shrikar wrote:
> 
> Hi,
> I am trying to port the Gnu binutilities for MIPS. I am facing a problem for
> the linker installation.
> Along with other binutilities, ld also was configured successfully for MIPS
> and was installed successfully. While running the linker I am trying to give
> the text space address and the entry point  as 0x0. I am giving the command
> as -
> 
> ld-new -o hello hello.o -static -e 0x0 -Ttext 0x0
> 
> But it is not allowing me to give the start address of .text section as 0x0.
> The error messages I am geting are as follows --
> 
> ./ld-new: hello : Not enough room for program headers (allocated 3, need 4)
> ./ld-new: final link failed: Bad value
> 
> Am I missing something..? Is anything wrong with the installation..?
> How can I do to align the text space at address 0x0 ?

You need to change the address in a linker script and use plain -T. 
-Ttext is not supported under ELF.  Look for the assignment to _ftext.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list