This is the mail archive of the 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]

Re: Binutils querry

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

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