[PATCH] Fix benign ld testsuite failures on arm-elf

Daniel Jacobowitz drow@false.org
Mon Aug 8 16:35:00 GMT 2005


On Mon, Aug 08, 2005 at 05:18:06PM +0100, Richard Earnshaw wrote:
> If you want to test that then I'd suggest changing the way we dump the
> file so that we use 'objdump -RwDz --section .got'  That gives the
> following dump output
> 
> tls-lib.so:     file format elf32-littlearm
> 
> Disassembly of section .got:
> 
> 00008390 <.got>:
>     8390:       00008320        andeq   r8, r0, r0, lsr #6
>     8394:       00000000        andeq   r0, r0, r0
>     8398:       00000000        andeq   r0, r0, r0
>     839c:       00000000        andeq   r0, r0, r0      839c: R_ARM_TLS_DTPMOD32*ABS*
>     83a0:       00000000        andeq   r0, r0, r0
>     83a4:       00000000        andeq   r0, r0, r0      83a4: R_ARM_TLS_DTPMOD32lib_gd
>     83a8:       00000000        andeq   r0, r0, r0      83a8: R_ARM_TLS_DTPOFF32lib_gd
> 
> and we can safely remove the addresses (and the mnemonics, since they
> aren't interesting).  We can then use '<.got>' as the main key and we
> eliminate the address dependency while still guaranteeing the correct
> relative placement.

Cute!  Very cute!  I'll keep this in mind for the future, but for now
let's let it be.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



More information about the Binutils mailing list