This is the mail archive of the binutils@sourceware.org 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: MIPS stubs in Gold


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
> 


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