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

Richard Earnshaw rearnsha@arm.com
Fri May 29 10:12:00 GMT 2009
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