bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/23409] New: Shared libraries created with duplicate _end, _eda


From: amodra at gmail dot com
Subject: [Bug gold/23409] New: Shared libraries created with duplicate _end, _edata and __bss_start symbols
Date: Fri, 13 Jul 2018 02:34:11 +0000

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

            Bug ID: 23409
           Summary: Shared libraries created with duplicate _end, _edata
                    and __bss_start symbols
           Product: binutils
           Version: 2.30
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: amodra at gmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

cat > end1.ver << EOF
VER1 {
  global: *;
};
EOF
cat > end2.ver << EOF
VER2 {
  global: *;
};
EOF
as -o dummy.o < /dev/null
ld.gold -shared -o lib2.so dummy.o --version-script end2.ver
ld.gold -shared -o lib1.so dummy.o lib2.so --version-script end1.ver

readelf --dyn-syms lib2.so 

Symbol table '.dynsym' contains 5 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000002000     0 NOTYPE  GLOBAL DEFAULT    8 _end@@VER2
     2: 0000000000002000     0 NOTYPE  GLOBAL DEFAULT    8 _edata@@VER2
     3: 0000000000002000     0 NOTYPE  GLOBAL DEFAULT    8 __bss_start@@VER2
     4: 0000000000000000     0 OBJECT  GLOBAL DEFAULT  ABS VER2

readelf --dyn-syms lib1.so

Symbol table '.dynsym' contains 8 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000002000     0 NOTYPE  GLOBAL DEFAULT    8 address@hidden
     2: 0000000000002000     0 NOTYPE  GLOBAL DEFAULT    8 address@hidden
     3: 0000000000002000     0 NOTYPE  GLOBAL DEFAULT    8 _edata@@VER1
     4: 0000000000002000     0 NOTYPE  GLOBAL DEFAULT    8 _end@@VER1
     5: 0000000000000000     0 OBJECT  GLOBAL DEFAULT  ABS VER1
     6: 0000000000002000     0 NOTYPE  GLOBAL DEFAULT    8 address@hidden
     7: 0000000000002000     0 NOTYPE  GLOBAL DEFAULT    8 __bss_start@@VER1

Why are both address@hidden and _end@@VER1 present in lib1.so?

See https://bugzilla.redhat.com/show_bug.cgi?id=1600035

-- 
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]