Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Aug 2011 14:50:59 +0000
From:      gk@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r224842 - soc2011/gk/ino64-head/tools/tools/shlib-compat
Message-ID:  <20110802145059.8252C106564A@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gk
Date: Tue Aug  2 14:50:59 2011
New Revision: 224842
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=224842

Log:
  shlib-compat: Fix printing warning error

Modified:
  soc2011/gk/ino64-head/tools/tools/shlib-compat/shlib-compat

Modified: soc2011/gk/ino64-head/tools/tools/shlib-compat/shlib-compat
==============================================================================
--- soc2011/gk/ino64-head/tools/tools/shlib-compat/shlib-compat	Tue Aug  2 12:43:40 2011	(r224841)
+++ soc2011/gk/ino64-head/tools/tools/shlib-compat/shlib-compat	Tue Aug  2 14:50:59 2011	(r224842)
@@ -611,8 +611,13 @@
                         continue
                     alias = SymbolAlias(p['symbol'], prefix, p['offset'])
                     if self.alias_syms.has_key(alias.name):
-                        print >> sys.stderr, "WARN: Symbol alias is already defined: %s/%s" % \
-                                (self.name, self.alias)
+                        prevalias = self.alias_syms[alias.name]
+                        if alias.name != prevalias.name or \
+                                alias.offset != prevalias.offset:
+                            print >> sys.stderr, "WARN: Symbol alias is " \
+                                    "already defined: %s: %s at %08x -- %s at %08x" % \
+                                    (alias.alias, alias.name,  alias.offset,
+                                            prevalias.name, prevalias.offset)
                     self.alias_syms[alias.name] = alias
 
     def parse_dwarfdump(self):



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110802145059.8252C106564A>