bug-binutils
[Top][All Lists]
Advanced

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

Re: MIPS version of LD not honoring -Ttext for .MIPS.abiflags section


From: Nick Clifton
Subject: Re: MIPS version of LD not honoring -Ttext for .MIPS.abiflags section
Date: Wed, 25 May 2016 15:21:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0

Hi Geoff,

> When compiling one of the u-boot demo applications using the 
> "-Ttext 0x80200000" option, the resulting elf file has a 
> .MIPS.abiflags section with a load address of "004000b8".

Have you tried adding:

  --start-address=.MIPS.abiflags=0x80300000

(or whatever address you want) ?


> The problem is the linker is not honouring the -Ttext flag 
> for the .MIPS.abiflags section like it does for the .got, 
> .rodata and .bss sections.

True.  I suspect that this is because it has a processor 
specific type, rather than a generic section type, although
I have not verified this.

The correct way to solve this would be to use your own linker
script.  Then you can the start address of the text section
and any other section you like, and make sure that the sections
are loaded where you want them to be loaded.

Cheers
  Nick




reply via email to

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