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


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to