[PATCH][GOLD] Add Cortex-A8 stub class.
Ian Lance Taylor
Thu Jan 7 04:36:00 GMT 2010
"Doug Kwan (關振德)" <email@example.com> writes:
> enum Type
> THUMB16_TYPE = 1,
> + THUMB16_SPECIAL_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.
> +// To do the fix up, we need to store address of the branch instruction
> + // Retun the section index of the code section containing the branch being
> + // fixed up.
This is OK with those changes.
More information about the Binutils