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: Geoff Mottram
Subject: Re: MIPS version of LD not honoring -Ttext for .MIPS.abiflags section
Date: Thu, 26 May 2016 10:05:25 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0

Hi Nick,

Your work-around is very clever. I will try it out.

Thanks.

Geoff

On 05/26/2016 06:34 AM, Nick Clifton wrote:
Hi Geoff,

The problem with the first approach is I would like the linker
to just pack the MIPS abiflags section with the .text, .got and
.rodata sections so I don't have to calculate the size of the
other sections ahead of time.
Is the .MIPS.abiflags section a fixed size ?  I suspect that it is.
If I am right then you could try something like this:

   --start-address=.MIPS.abiflags=0x80200000 -Ttext=0x80200012

(If the section is 0x12 bytes long...)

If you cannot find a workaround for the problem, please feel free
to file a bug report here:

   https://sourceware.org/bugzilla/

Not that I am guaranteeing that we will be able to find a solution
ourselves, but it is worth a try.

Cheers
   Nick




reply via email to

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