This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gold: add dynamic symbol support for ARM target.
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Doug Kwan (éæå) <dougkwan at google dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 29 May 2009 11:12:22 +0100
- Subject: Re: [PATCH] gold: add dynamic symbol support for ARM target.
- References: <498552560905281848o1ff18919x18db235edcf6ac1a@mail.gmail.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.