bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/26382] New: Inconsistent undefined versioned symbols


From: hjl.tools at gmail dot com
Subject: [Bug binutils/26382] New: Inconsistent undefined versioned symbols
Date: Thu, 13 Aug 2020 12:44:57 +0000

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

            Bug ID: 26382
           Summary: Inconsistent undefined versioned symbols
           Product: binutils
           Version: 2.36 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

nm -D is consistent with readelf -sW and nm on undefined versioned symbol:

[hjl@gnu-cfl-2 tmp]$ cat x.c
#include <stdio.h>

void
foo (void)
{
  printf ("foo\n");
}
[hjl@gnu-cfl-2 tmp]$ gcc -shared -fPIC x.c
[hjl@gnu-cfl-2 tmp]$ readelf -sW a.out | grep UND | grep @@
    47: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND puts@@GLIBC_2.2.5
    51: 0000000000000000     0 FUNC    WEAK   DEFAULT  UND
__cxa_finalize@@GLIBC_2.2.5
[hjl@gnu-cfl-2 tmp]$ nm a.out | grep " U "  | grep @@
                 U puts@@GLIBC_2.2.5
[hjl@gnu-cfl-2 tmp]$ nm -D a.out | grep " U "  | grep @@
                 U puts@@GLIBC_2.2.5
[hjl@gnu-cfl-2 tmp]$

But readelf --dyn-syms only displays a single @.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]