]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libgot-1 testcases
authorAlan Modra <amodra@gmail.com>
Thu, 22 Jan 2026 02:37:51 +0000 (13:07 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 22 Jan 2026 10:23:10 +0000 (20:53 +1030)
commitdf865c395a62fed6b954bef6311f7ff2d8121e9d
treeaf60aaf166f1b4c947121d93da15e0a18ed49732
parentf163103c364f72be00f7580ac7500e10c18230a3
libgot-1 testcases

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

* testsuite/ld-i386/binutils.exp: Reduce number of tests.
* testsuite/ld-i386/libgot-1.rd: New.
* testsuite/ld-i386/libgot-1a.rd,
* testsuite/ld-i386/libgot-1b.rd,
* testsuite/ld-i386/libgot-1c.rd,
* testsuite/ld-i386/libgot-1d.rd: Delete.
* testsuite/ld-x86-64/binutils.exp: Reduce number of tests.
* testsuite/ld-x86-64/libgot-1.rd: New.
* testsuite/ld-x86-64/libgot-1a.rd,
* testsuite/ld-x86-64/libgot-1b.rd,
* testsuite/ld-x86-64/libgot-1c.rd,
* testsuite/ld-x86-64/libgot-1d.rd: Delete.
* testsuite/ld-x86-64/libgot-1-x32.rd: New.
* testsuite/ld-x86-64/libgot-1a-x32.rd,
* testsuite/ld-x86-64/libgot-1b-x32.rd,
* testsuite/ld-x86-64/libgot-1c-x32.rd,
* testsuite/ld-x86-64/libgot-1d-x32.rd: Delete.
17 files changed:
ld/testsuite/ld-i386/binutils.exp
ld/testsuite/ld-i386/libgot-1.rd [new file with mode: 0644]
ld/testsuite/ld-i386/libgot-1a.rd [deleted file]
ld/testsuite/ld-i386/libgot-1b.rd [deleted file]
ld/testsuite/ld-i386/libgot-1c.rd [deleted file]
ld/testsuite/ld-i386/libgot-1d.rd [deleted file]
ld/testsuite/ld-x86-64/binutils.exp
ld/testsuite/ld-x86-64/libgot-1-x32.rd [new file with mode: 0644]
ld/testsuite/ld-x86-64/libgot-1.rd [new file with mode: 0644]
ld/testsuite/ld-x86-64/libgot-1a-x32.rd [deleted file]
ld/testsuite/ld-x86-64/libgot-1a.rd [deleted file]
ld/testsuite/ld-x86-64/libgot-1b-x32.rd [deleted file]
ld/testsuite/ld-x86-64/libgot-1b.rd [deleted file]
ld/testsuite/ld-x86-64/libgot-1c-x32.rd [deleted file]
ld/testsuite/ld-x86-64/libgot-1c.rd [deleted file]
ld/testsuite/ld-x86-64/libgot-1d-x32.rd [deleted file]
ld/testsuite/ld-x86-64/libgot-1d.rd [deleted file]