[binutils-gdb] ld: Adjust pr28158.rd for glibc 2.34

H.J. Lu hjl@sourceware.org
Sat Oct 16 15:34:26 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0a9ea024e7c4314dc4e5554e3d1b85167c41573e

commit 0a9ea024e7c4314dc4e5554e3d1b85167c41573e
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sat Oct 16 08:12:25 2021 -0700

    ld: Adjust pr28158.rd for glibc 2.34
    
    Adjust pr28158.rd for glibc 2.34:
    
    $ readelf -W --dyn-syms tmpdir/pr28158
    
    Symbol table '.dynsym' contains 4 entries:
       Num:    Value          Size Type    Bind   Vis      Ndx Name
         0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND
         1: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __libc_start_main@GLIBC_2.34 (2)
         2: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__
         3: 000000000040401c     4 OBJECT  GLOBAL DEFAULT   23 foo@VERS_2.0 (3)
    $
    
    vs older glibc:
    
    $ readelf -W --dyn-syms tmpdir/pr28158
    
    Symbol table '.dynsym' contains 4 entries:
       Num:    Value          Size Type    Bind   Vis      Ndx Name
         0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND
         1: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND __libc_start_main@GLIBC_2.2.5 (3)
         2: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__
         3: 000000000040401c     4 OBJECT  GLOBAL DEFAULT   23 foo@VERS_2.0 (2)
    
    $
    
            * testsuite/ld-elf/pr28158.rd: Adjusted for glibc 2.34.

Diff:
---
 ld/testsuite/ld-elf/pr28158.rd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ld/testsuite/ld-elf/pr28158.rd b/ld/testsuite/ld-elf/pr28158.rd
index 74884107e8b..b3cfe8915cb 100644
--- a/ld/testsuite/ld-elf/pr28158.rd
+++ b/ld/testsuite/ld-elf/pr28158.rd
@@ -3,5 +3,5 @@
 #target: x86_64-*-linux* i?86-*-linux-gnu
 
 #...
- +[0-9]+: +[0-9a-f]+ +[0-9]+ +OBJECT +GLOBAL +DEFAULT +[1-9]+ foo@VERS_2.0 \(2\)
+ +[0-9]+: +[0-9a-f]+ +[0-9]+ +OBJECT +GLOBAL +DEFAULT +[1-9]+ foo@VERS_2.0 \([0-9]+\)
 #pass


More information about the Binutils-cvs mailing list