This is the mail archive of the binutils@sources.redhat.com 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] Indicate dependency on personality routines for ARM EHABI - take 2


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


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