aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-05-25 22:59:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-05-25 22:59:04 +0000
commit64d672d9854cffcbc00869c6ca726ced41212265 (patch)
tree1f40a95d93daba999fde75612cdd80e3e3a5aec8 /toolchain
parentb4f4dcdec442f79e679c0e88a2627e27df72b741 (diff)
downloadupstream-64d672d9854cffcbc00869c6ca726ced41212265.tar.gz
upstream-64d672d9854cffcbc00869c6ca726ced41212265.tar.bz2
upstream-64d672d9854cffcbc00869c6ca726ced41212265.zip
uClibc: elf: Add STT_GNU_IFUNC from glibc
perf in upstream Linux kernel 3.17 onwards expects STT_GNU_IFUNC replicate it from glibc Patch cherry-picked from: http://lists.busybox.net/pipermail/uclibc/2015-February/048825.html Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45752 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/uClibc/patches-0.9.33.2/012-elf-Add-STT_GNU_IFUNC-from-glibc.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.33.2/012-elf-Add-STT_GNU_IFUNC-from-glibc.patch b/toolchain/uClibc/patches-0.9.33.2/012-elf-Add-STT_GNU_IFUNC-from-glibc.patch
new file mode 100644
index 0000000000..6cecfaad47
--- /dev/null
+++ b/toolchain/uClibc/patches-0.9.33.2/012-elf-Add-STT_GNU_IFUNC-from-glibc.patch
@@ -0,0 +1,37 @@
+From be58779614b2fe9aa57a9315be9dc004dfd77b3b Mon Sep 17 00:00:00 2001
+From: Vineet Gupta <vgupta@synopsys.com>
+Date: Fri, 20 Feb 2015 15:27:08 +0530
+Subject: [PATCH] elf: Add STT_GNU_IFUNC from glibc
+
+perf in upstream Linux kernel 3.17 onwards expects STT_GNU_IFUNC
+replicate it from glibc
+
+Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
+Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
+---
+ include/elf.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/include/elf.h b/include/elf.h
+index facf09c..917930b 100644
+--- a/include/elf.h
++++ b/include/elf.h
+@@ -566,6 +566,7 @@ typedef struct
+ #define STB_WEAK 2 /* Weak symbol */
+ #define STB_NUM 3 /* Number of defined types. */
+ #define STB_LOOS 10 /* Start of OS-specific */
++#define STB_GNU_UNIQUE 10 /* Unique symbol. */
+ #define STB_HIOS 12 /* End of OS-specific */
+ #define STB_LOPROC 13 /* Start of processor-specific */
+ #define STB_HIPROC 15 /* End of processor-specific */
+@@ -581,6 +582,7 @@ typedef struct
+ #define STT_TLS 6 /* Symbol is thread-local data object*/
+ #define STT_NUM 7 /* Number of defined types. */
+ #define STT_LOOS 10 /* Start of OS-specific */
++#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */
+ #define STT_HIOS 12 /* End of OS-specific */
+ #define STT_LOPROC 13 /* Start of processor-specific */
+ #define STT_HIPROC 15 /* End of processor-specific */
+--
+2.1.4
+