[PATCH] Indicate dependency on personality routines for ARM EHABI - take 2

Paul Brook paul@codesourcery.com
Mon Mar 7 16:08:00 GMT 2005


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

I still only get one R_ARM_NONE relocation for the example below.

Paul

$ cat test.s
        .text
        .fnstart
        .global foo
foo:
        bx lr
        .fnend
        .fnstart
        .global bar
bar:
        bx lr
        .fnend
        .section        .text.other,"ax",%progbits
        .fnstart
        .global other
other:
        bx lr
        .fnend

$ arm-unknown-eabi-as test.s -o test.o
$ arm-unknown-eabi-objdump -r test.o

test.o:     file format elf32-littlearm

RELOCATION RECORDS FOR [.ARM.exidx]:
OFFSET   TYPE              VALUE
00000000 R_ARM_PREL31      .text
00000000 R_ARM_NONE        __aeabi_unwind_cpp_pr0
00000008 R_ARM_PREL31      .text


RELOCATION RECORDS FOR [.ARM.exidx.text.other]:
OFFSET   TYPE              VALUE
00000000 R_ARM_PREL31      .text.other



More information about the Binutils mailing list