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


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to