MIPS stubs in Gold
Aleksandar Simeonov
Aleksandar.Simeonov@RT-RK.com
Fri Jul 1 15:03:00 GMT 2011
That helps, thanks Ian.
Now I have another question: where would be the best place to do
relocation for stub code? I added code that looks something like in the
end of .text section, but I don't know how to add relocations:
lui $25,%hi(func)
j func
addiu $25,$25,%lo(func)
Any suggestion?
Thanks in advance,
Aleksandar
On 29/06/2011 16:39, Ian Lance Taylor wrote:
> Aleksandar Simeonov <Aleksandar.Simeonov@RT-RK.com> writes:
>
>> Now I have another question for you: how can I add symbols at the
>> beginning of every stub? Again I did similar as in .plt, but all symbols
>> are showing at the beginning of the first stub.
>
> I assume you are defining your symbols using
> Symbol_table::define_in_output_data. The fifth argument is the offset
> of the symbol within the Output_data. Don't pass 0, pass the offset you
> want.
>
> Ian
>
More information about the Binutils
mailing list