https://sourceware.org/bugzilla/show_bug.cgi?id=30905

            Bug ID: 30905
           Summary: ld: Test case pr28158 fails on x86_64-linux-musl when
                    index is > 19
           Product: binutils
           Version: 2.41
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: awilfox at adelielinux dot org
  Target Milestone: ---

Created attachment 15138
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15138&action=edit
elf: Adjust PR ld/28158 tests

awilcox on lab-x86_64-lin-1
~/Code/binutils-next/system/binutils/src/binutils-2.41/ld % ../binutils/readelf
--dyn-syms -W tmpdir/pr28158

Symbol table '.dynsym' contains 5 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
     2: 0000000000402020     4 OBJECT  GLOBAL DEFAULT   20 foo@VERS_2.0 (2)
     3: 0000000000400378     1 FUNC    GLOBAL DEFAULT    9 _init
     4: 0000000000400571     1 FUNC    GLOBAL DEFAULT   12 _fini


The regex in pr28158.rd is:

 +[0-9]+: +[0-9a-f]+ +[0-9]+ +OBJECT +GLOBAL +DEFAULT +[1-9]+ foo@VERS_2.0
\([0-9]+\)

This doesn't match because the index column has value '20', while the regex
only matches numbers 1-9 (not 0-9).  The test passes if the regex is changed to
0-9.  Attached patch does that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to