This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH][GOLD] Add Cortex-A8 stub class.
- From: Ian Lance Taylor <iant at google dot com>
- To: Doug Kwan (éæå) <dougkwan at google dot com>
- Cc: binutils <binutils at sourceware dot org>
- Date: Wed, 06 Jan 2010 20:35:49 -0800
- Subject: Re: [PATCH][GOLD] Add Cortex-A8 stub class.
- References: <498552561001061738ge5cedb4m97919fef8ad4ebde@mail.gmail.com>
"Doug Kwan (éæå)" <dougkwan@google.com> writes:
> enum Type
> {
> THUMB16_TYPE = 1,
> + THUMB16_SPECIAL_TYPE,
> THUMB32_TYPE,
> ARM_TYPE,
> DATA_TYPE
> };
The other values are pretty obvious from the name, but I think this
new one needs a comment.
> +// Cortex-A8 stub class. We need a Cortex-A8 stub to redirect any 32-bit
> +// THUMB branch that meets the following conditions:
> +//
> +// 1. The branch straddles across a page boundary. i.e. lower 12-bit of
> +// branch address is 0xffe.
> +// 2. The branch target address in the same page as the first word of the
> +// branch.
s/in/is in/ ?
> +// 3. The branc is follows a 32-bit instruction which is not a branch.
s/branc is/branch/
> +// To do the fix up, we need to store address of the branch instruction
s/store/store the/
> + // Retun the section index of the code section containing the branch being
> + // fixed up.
s/Retun/Return/
This is OK with those changes.
Thanks.
Ian