This is the mail archive of the
mailing list for the binutils project.
Re: Binutils querry
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Shrikar <shrikar at poseidontech dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 15 Feb 2002 10:49:27 -0500
- Subject: Re: Binutils querry
- References: <firstname.lastname@example.org>
On Fri, Feb 15, 2002 at 02:55:00PM +0530, Shrikar wrote:
> 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