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][ARM] Fix ARM stub misalignment problem caused by cortex-a8 erratum stubs.


Hi Doug,

2009-07-30  Doug Kwan  <dougkwan@google.com>
bfd/ChangeLog

        * elf32-arm.c (arm_build_one_stub): Align section size increment by
        8 byte.
        (elf32_arm_size_stubs): Align cortex-a8 erratum stubs by 8 byte.
        boundary.

ld/testsuite/ChangeLog

        * ld-arm/arm-elf.exp: Add new test cortex-a8-fix-alignment
        * ld-arm/cortex-a8-fix-alignment.d: New file
        * ld-arm/cortex-a8-fix-alignment.s: New file
        * ld-arm/cortex-a8-fix-alignment2.s: New file
        * ld-arm/cortex-a8-fix-b-rel-thumb.d: Adjust test for new stub
        alignment.
        * ld-arm/cortex-a8-fix-b.d: Same.
        * ld-arm/cortex-a8-fix-bcc-rel-thumb.d: Same.
        * ld-arm/cortex-a8-fix-bcc.d: Same.
        * ld-arm/cortex-a8-fix-bl-rel-arm.d: Same.
        * ld-arm/cortex-a8-fix-bl-rel-thumb.d: Same.
        * ld-arm/cortex-a8-fix-bl.d: Same.
        * ld-arm/cortex-a8-fix-blx-rel-arm.d: Same.
        * ld-arm/cortex-a8-fix-blx-rel-thumb.d: Same.
        * ld-arm/cortex-a8-fix-blx.d: Same.
        * ld-arm/farcall-group-size2.d: Same.
        * ld-arm/farcall-group.d: Same.
        * ld-arm/farcall-mix.d: Same.
        * ld-arm/farcall-mix2.d: Same.
        * ld-arm/farcall-mixed-lib.d: Same.

Approved - please apply.


Note - you might find that using the align_power() macro that is defined in bfd-in.h will make the code slightly simpler.

Cheers
  Nick



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