]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
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 f0b0a284aad33d807a0fa588a6ff126cd94a71ea..8f51ca73c3eacd68e1ba5c2605b8fb87e0aa1749 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 e1256db7c9ca9b1f08bec819eb3f3fdf95af6d12..d7bbb3ca0da29405da2d1cad7bc00b86c40b34a3 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