[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: relocation information disappears
From: |
Nick Clifton |
Subject: |
Re: relocation information disappears |
Date: |
Fri, 7 Apr 2017 12:41:25 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Hi Katsuya,
> # ~/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-readelf
> -r w
I assume that you mean "readelf -D -r w" here, as you are looking for dynamic
relocs ?
> Relocation section '.rel.dyn' at offset 0x270 contains 1 entries:
> Offset Info Type Sym.Value Sym. Name
> 0002101c 00000315 R_ARM_GLOB_DAT 00000000 __gmon_start__
>
> There is no "debug_f" symbol.
> Why not?
I cannot reproduce this. As in, when I compile your test file there is a
reference
to the debug_f symbol in the dynamic relocations. I am using a different
version of
the compiler (7.0.1) and the binutils (2.28.51) however, so that might explain
it.
What happens when you run the compiled w.c test program ? Is there a seg-fault
for
accessing memory at address 0 ?
Cheers
Nick