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]

[PATCH][ARM] Fix ARM stub misalignment problem caused by cortex-a8 erratum stubs.


Hi,

    This fixes a problem where cortex-a8 erratum stubs cause some ARM
stubs to be not 32-bit aligned.  This is tested for arm-eabi on an
x86_64 hosts by running the linker tests.

-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.

Attachment: patch.txt
Description: Text document


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