[binutils-gdb] testsuite/gas/i386/plt.d: Don't hard-code offset

"H.J. Lu via Binutils-cvs" <[email protected]> Wed, 29 Jul 2026 22:52:31 +0000 (GMT)
Newsgroups gmane.comp.gnu.binutils.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D7a40b4d63065=
87e19850afc65170634375c37c2c

commit 7a40b4d6306587e19850afc65170634375c37c2c
Author: H.J. Lu <[email protected]>
Date:   Thu Jul 30 06:43:39 2026 +0800

    testsuite/gas/i386/plt.d: Don't hard-code offset
   =20
            PR gas/34423
            * testsuite/gas/i386/plt.d: Replace "offset 0xd4" with
            "offset 0x[0-9a-f]+.".
   =20
    Signed-off-by: H.J. Lu <[email protected]>

Diff:
---
 gas/testsuite/gas/i386/plt.d | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/testsuite/gas/i386/plt.d b/gas/testsuite/gas/i386/plt.d
index e4af0d20c87..093da8730db 100644
--- a/gas/testsuite/gas/i386/plt.d
+++ b/gas/testsuite/gas/i386/plt.d
@@ -1,7 +1,7 @@
 #as:
 #readelf: -x .rodata -r
=20
-Relocation section '.rel.rodata' at offset 0xd4 contains 4 entries:
+Relocation section '.rel.rodata' at offset 0x[0-9a-f]+ contains 4 entries:
  Offset     Info    Type            Sym.Value  Sym. Name
 0+  00000104 R_386_PLT32       00000000   foo1
 0+4  00000204 R_386_PLT32       00000000   foo2