Permalink
Browse files

Fix build with multiarch disabled.

  • Loading branch information...
1 parent 5c0b8d9 commit 751626f948f28d39713e0690fd9aa751a74eaab0 @aurel32 aurel32 committed with davem330 Jun 29, 2011
Showing with 14 additions and 1 deletion.
  1. +6 −0 ChangeLog
  2. +8 −1 sysdeps/generic/dl-irel.h
View
@@ -1,3 +1,9 @@
+2011-06-30 Aurelien Jarno <aurelien@aurel32.net>
+
+ * sysdeps/generic/dl-irel.h: fix protection against multiple
+ inclusions.
+ * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
+
2011-06-28 Ulrich Drepper <drepper@gmail.com>
[BZ #12935]
@@ -17,7 +17,14 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-#ifndef _DL_IREL_h
+#ifndef _DL_IREL_H
#define _DL_IREL_H
+static inline DL_FIXUP_VALUE_TYPE
+__attribute ((always_inline))
+elf_ifunc_invoke (ElfW(Addr) addr)
+{
+ return ((DL_FIXUP_VALUE_TYPE (*) (void)) (addr)) ();
+}
+
#endif /* dl-irel.h */

0 comments on commit 751626f

Please sign in to comment.