[PATCH] gold: add dynamic symbol support for ARM target.

Doug Kwan (關振德) dougkwan@google.com
Fri May 29 20:40:00 GMT 2009


Will do.  For the time being, I would like to have a semi-working
version so that people other than me can work on it.

-Doug

2009/5/29 Richard Earnshaw <rearnsha@arm.com>:
> On Thu, 2009-05-28 at 18:48 -0700, Doug Kwan (關振德) wrote:
>> +const uint32_t Output_data_plt_arm<big_endian>::first_plt_entry[5] =
>> +{
>> +  0xe52de004,  // str   lr, [sp, #-4]!
>> +  0xe59fe004,   // ldr   lr, [pc, #4]
>> +  0xe08fe00e,  // add   lr, pc, lr
>> +  0xe5bef008,  // ldr   pc, [lr, #8]!
>> +  0x00000000,  // &GOT[0] - .
>> +};
>> +
>
> Please take a look at the way this is now being done in the old linker.
> Hard-coding numbers like this means you'll have a number of problems to
> deal with when you come to adding thumb/thumb2, be8 and other features
> of the architecture.
>
> R.
>
>



More information about the Binutils mailing list