Subject: Re: sparc64 toolchain JMP_SLOT reloc/PLT lossage (aka tcl vs. XFree 4.3)
To: Rafal Boni <rafal@attbi.com>
From: Martin Husemann <martin@duskware.de>
List: tech-toolchain
Date: 04/07/2003 23:22:02
On Fri, Mar 28, 2003 at 06:28:09PM -0500, Rafal Boni wrote:

Sorry, took some more time to check this...

I have slightly newer libs, since I did a complete rebuild again after the
snapshot. Anyway, most of it looks exactly like your stuff, but:

> 0000000000120900 <.plt+0xb00>:
>         ...
>   120908:       01 00 00 00     nop 
>   12090c:       01 00 00 00     nop 
>   120910:       01 00 00 00     nop 
>   120914:       01 00 00 00     nop 
>   120918:       01 00 00 00     nop 
>   12091c:       01 00 00 00     nop 
>   120920:       03 00 0b 20     sethi  %hi(0x2c8000), %g1
>   120924:       30 6f fd 3f     b,a   %xcc, 11fe20 <_PROCEDURE_LINKAGE_TABLE_+0x20>
>   120928:       00 00 00 00     illtrap  0
>         ...
> Disassembly of section .got:
> 
> So the PLT entry we were looking for, at 0x120980, is indeed all zeroes,

Ummm, that address is not listed in above table - and for me the PLT entry
looks ok:

  120980:       03 00 0b 80     sethi  %hi(0x2e0000), %g1
  120984:       30 6f fd 27     b,a   %xcc, 11fe20 <_PROCEDURE_LINKAGE_TABLE_+0x20>
  120988:       01 00 00 00     nop 
  12098c:       01 00 00 00     nop 
  120990:       01 00 00 00     nop 
  120994:       01 00 00 00     nop 
  120998:       01 00 00 00     nop 
  12099c:       01 00 00 00     nop 

while it gives the same results for the section you showed us:

  120908:       01 00 00 00     nop 
  12090c:       01 00 00 00     nop 
  120910:       01 00 00 00     nop 
  120914:       01 00 00 00     nop 
  120918:       01 00 00 00     nop 
  12091c:       01 00 00 00     nop 
  120920:       03 00 0b 20     sethi  %hi(0x2c8000), %g1

... but that is because 120908 is an unused (not yet fixed up) part of 
the PLT at 0x120900.

Am I missing something?

Martin