found 255191 binutils/2.22-1
quit

Philip Blundell wrote:

> Here's a small testcase.
>
> $ echo "f() { return g(); }" > t.c
> $ gcc -shared -o t.so t.c
> $ readelf -d t.so | grep TEXTREL
>
> If the linker is behaving correctly, the last command should output a
> line like:
>
>  0x00000016 (TEXTREL)                    0x0

Reproduced with upstream ld.bfd and ld.gold from Binutils 2.22, assuming
the testcase is valid.

 $ readelf -d t.so | grep REL
 0x00000002 (PLTRELSZ)                   24 (bytes)
 0x00000014 (PLTREL)                     REL
 0x00000017 (JMPREL)                     0x3b0
 0x00000011 (REL)                        0x380
 0x00000012 (RELSZ)                      48 (bytes)
 0x00000013 (RELENT)                     8 (bytes)
 0x6ffffffa (RELCOUNT)                   3

The R_ARM_CALL is converted to an R_ARM_JUMP_SLOT when t.o gets linked
into the DSO, as described at [1].

I'm not familiar enough with the relevant conventions to say if this is
a bug or not (my vague suspicion is "not a bug").

Hope that helps,
Jonathan

[1] http://sources.redhat.com/ml/binutils/2004-01/msg00092.html



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to