[PATCH] Indicate dependency on personality routines for ARM EHABI - take 2
Julian Brown
julian@codesourcery.com
Mon Mar 7 15:36:00 GMT 2005
Paul Brook wrote:
> On Thursday 03 March 2005 22:43, Julian Brown wrote:
>
>>Hi,
>>
>>This is a second attempt at a patch to make gas emit dependencies on
>>exception-handling personality routines (__aeabi_unwind_cpp_pr[012]) in
>>accordance with the ARM EHABI, using relocations of type R_ARM_NONE.
>>
>>The previous patch is here:
>>
>> http://sourceware.org/ml/binutils/2005-02/msg00172.html
>>
>>This version fixes some missing cases in the previous patch (eg, where
>>there is a .personalityindex directive in an assembly source file but
>>nothing is written to an .extab section), and outputs only one
>>relocation for each personality routine per-file to save unnecessary bloat.
>
>
> Is one per file sufficient? I'd expect one per section would be needed to
> prevent bad things happening with partial linking.
Yes, you are probably right. This version should fix that: it resets the
bitmap of relocations which have been output when the section is changed
to one of type SHT_ARM_EXIDX.
Tested with cross to arm-none-eabi, and natively with all targets on
i686-pc-unknown-none.
OK to apply?
ChangeLog:
* gas/config/tc-arm.c (marked_pr_dependency): New static global
(bitmask).
(arm_elf_change_section): Reset bitmap of dependencies which have
been output when a new EXIDX section is seen.
(create_unwind_entry): Don't output dependencies on PR routines
here.
(s_arm_unwind_fnend): Output dependency on unwinding routines, if it
hasn't been done already.
* gas/testsuite/arm/unwind.d: Update expected output.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-11
URL: <https://sourceware.org/pipermail/binutils/attachments/20050307/eaa79d90/attachment.ksh>
More information about the Binutils
mailing list