]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
New macro COMPAT_VERSION_NEWPROTO.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 28 Apr 2013 18:10:33 +0000 (20:10 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 30 Apr 2013 12:25:18 +0000 (14:25 +0200)
lib/
* eu-config.h (COMPAT_VERSION_NEWPROTO): New.  Twice.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
lib/ChangeLog
lib/eu-config.h

index 1fa42491d867e65ec2af20605fa44ccde462bec1..6ce3168f0ae6628206f873d31599a96afee7972e 100644 (file)
@@ -1,3 +1,7 @@
+2013-04-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * eu-config.h (COMPAT_VERSION_NEWPROTO): New.  Twice.
+
 2013-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * system.h (LE64, BE64): Move here the definitions from
index 68efb82b56c1150eb5a2a9e85e9e62e24d9e6aee..3afff26a99d77570e836d697e3cb1054c8afa35e 100644 (file)
@@ -170,12 +170,18 @@ asm (".section predict_data, \"aw\"; .previous\n"
        ".symver _compat." #version "." #name "," #name "@" #version);
 # define NEW_VERSION(name, version) \
   asm (".symver " #name "," #name "@@@" #version);
+# define COMPAT_VERSION_NEWPROTO(name, version, prefix) \
+  asm (".symver _compat." #version "." #name "," #name "@" #version); \
+  __typeof (_compat_##prefix##_##name) _compat_##prefix##_##name \
+    asm ("_compat." #version "." #name);
 # define COMPAT_VERSION(name, version, prefix) \
   asm (".symver _compat." #version "." #name "," #name "@" #version); \
   __typeof (name) _compat_##prefix##_##name asm ("_compat." #version "." #name);
 #else
 # define OLD_VERSION(name, version) /* Nothing for static linking.  */
 # define NEW_VERSION(name, version) /* Nothing for static linking.  */
+# define COMPAT_VERSION_NEWPROTO(name, version, prefix) \
+  error "should use #ifdef SHARED"
 # define COMPAT_VERSION(name, version, prefix) error "should use #ifdef SHARED"
 #endif