This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][GOLD] Add Cortex-A8 stub class.


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]