libgot-1 testcases

Jens Remus jremus@linux.ibm.com
Thu Jan 22 16:41:23 GMT 2026


On 1/22/2026 4:14 PM, Rainer Orth wrote:

>> There is no need for multiple tests of readelf --got-contents,
>> nor should the matching be so strict that changes in section layout
>> force editing of the testsuite.
>>
>> It also looks to me that the i386 --got-contents output is wrong,
>> at least it is confusing to have .rel.plt show
>> 0020020c  00000307 R_386_JUMP_SLOT   00000000   bar
>> while the corresponding got-contents dump shows "bar + 156".
>>      3: 0020020c R_386_JUMP_SLOT   bar + 156
> 
> thanks.  Btw., ld-s390/libgot_64-1b.rd has the same issue, probably
> inspired by HJs tests.

Alan, will you take care to reduce the s390 tests as well, or shall I?

Rainer, I can't follow where this disconnect is in ld-s390/libgot_64-1b.rd:

.rela.plt test is:
0+2003b0  000000040000000b R_390_JMP_SLOT         0000000000000000 bar \+ 0

and the .got dump rest is:
  +[0-9]+: 00000000002003b0 R_390_JMP_SLOT         bar \+ 0

Thnaks and regards,
Jens
-- 
Jens Remus
Linux on Z Development (D3303)
jremus@de.ibm.com / jremus@linux.ibm.com

IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Ehningen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/



More information about the Binutils mailing list