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

Bug#319620: mklibs fails to ignore a LOCAL UND symbol



Package: mklibs
Version: 0.1.15
Severity: important
Tags: patch

Recent libnewt has on mips/mipsel the following symbol:

readelf -s -W /lib/libnewt.so.0.51

Symbol table '.dynsym' contains 189 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
    ...
    38: 11000000    20 NOTYPE  LOCAL  DEFAULT  UND indow
    ...

While its mere existence is admittedly suspicious, it shouldn't be
taken as a symbol which needs to be externally resolved by mklibs.
The attempt to resolve this symbol breaks the debian-installer
build for mips/mipsel.

The appended patch excludes LOCAL UND symbols from the list of
undefined symbols mklibs tries to resolve.


Thiemo


--- mklibs~	2004-02-07 09:40:39.000000000 +0100
+++ mklibs	2005-07-21 13:41:23.000000000 +0200
@@ -156,7 +156,7 @@ def undefined_symbols(obj):
         match = symline_regexp.match(line)
         if match:
             bind, ndx, name = match.groups()
-            if ndx == "UND":
+            if bind != "LOCAL" and ndx == "UND":
                 result.add((name, bind == "WEAK"))
     return result
 



Reply to: