[ARM] fix cortex-a8-fix bug

Nitin Garg nitingarg98@gmail.com
Thu Aug 6 21:50:00 GMT 2009


Is this relevant to Cortex-A9 as well?

Regards,
Nitin

On Thu, Aug 6, 2009 at 8:03 AM, Nathan Sidwell<nathan@codesourcery.com> wrote:
> I've applied this obvious patch to fix a cortex-a8-fix bug.  The nature of
> the erratum means that section alignments must be preserved modulo the page
> size, and rather than force the section alignment to be the page size (and
> introduce padding), we must ensure they don't move after we've applied the
> fix.
>
> Unfortunately, we only call layout_sections_again if we find at least one
> stub to insert, so when there are none to insert (on the initial pass), we
> leave it to a later linker stage to do the layout.  That subsequent layout
> can move sections around, if ELF headers are to be placed in the first
> segment.
>
> Fixed thusly, tested on arm-eabi and arm-linux-gnueabi.
>
> nathan
> --
> Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
>
>



More information about the Binutils mailing list