Avoid symbol versioning unless building code for DSO.
authorUlrich Drepper <drepper@myware66.akkadia.org>
Thu, 23 Apr 2009 14:54:53 +0000 (07:54 -0700)
committerUlrich Drepper <drepper@myware66.akkadia.org>
Thu, 23 Apr 2009 14:54:53 +0000 (07:54 -0700)
libdwfl/ChangeLog
libdwfl/dwfl_module_build_id.c

index f0b0a28..8f51ca7 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-23  Ulrich Drepper  <drepper@redhat.com>
+
+       * dwfl_module_build_id.c: Define versioned symbols only if SHARED is
+       defined.  Otherwise just define the latest version.
+
 2009-04-22  Roland McGrath  <roland@redhat.com>
 
        * relocate.c (resolve_symbol): Apply correct bias to st_value found in
index e1256db..d7bbb3c 100644 (file)
@@ -174,6 +174,7 @@ __dwfl_module_build_id (Dwfl_Module *mod,
   *vaddr = mod->build_id_vaddr;
   return mod->build_id_len;
 }
+#ifdef SHARED
 extern __typeof__ (dwfl_module_build_id) INTUSE(dwfl_module_build_id)
      __attribute__ ((alias ("__dwfl_module_build_id")));
 asm (".symver "
@@ -190,3 +191,7 @@ _BUG_COMPAT_dwfl_module_build_id (Dwfl_Module *mod,
 }
 asm (".symver "
      "_BUG_COMPAT_dwfl_module_build_id, dwfl_module_build_id@ELFUTILS_0.130");
+#else
+extern __typeof__ (dwfl_module_build_id) dwfl_module_build_id
+     __attribute__ ((alias ("__dwfl_module_build_id")));
+#endif