uclibc-ng: bump version from 1.0.6 to 1.0.8
[openwrt/staging/mkresin.git] / toolchain / uClibc / patches-0.9.33.2 / 012-elf-Add-STT_GNU_IFUNC-from-glibc.patch
1 From be58779614b2fe9aa57a9315be9dc004dfd77b3b Mon Sep 17 00:00:00 2001
2 From: Vineet Gupta <vgupta@synopsys.com>
3 Date: Fri, 20 Feb 2015 15:27:08 +0530
4 Subject: [PATCH] elf: Add STT_GNU_IFUNC from glibc
5
6 perf in upstream Linux kernel 3.17 onwards expects STT_GNU_IFUNC
7 replicate it from glibc
8
9 Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
10 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
11 ---
12 include/elf.h | 2 ++
13 1 file changed, 2 insertions(+)
14
15 diff --git a/include/elf.h b/include/elf.h
16 index facf09c..917930b 100644
17 --- a/include/elf.h
18 +++ b/include/elf.h
19 @@ -566,6 +566,7 @@ typedef struct
20 #define STB_WEAK 2 /* Weak symbol */
21 #define STB_NUM 3 /* Number of defined types. */
22 #define STB_LOOS 10 /* Start of OS-specific */
23 +#define STB_GNU_UNIQUE 10 /* Unique symbol. */
24 #define STB_HIOS 12 /* End of OS-specific */
25 #define STB_LOPROC 13 /* Start of processor-specific */
26 #define STB_HIPROC 15 /* End of processor-specific */
27 @@ -581,6 +582,7 @@ typedef struct
28 #define STT_TLS 6 /* Symbol is thread-local data object*/
29 #define STT_NUM 7 /* Number of defined types. */
30 #define STT_LOOS 10 /* Start of OS-specific */
31 +#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */
32 #define STT_HIOS 12 /* End of OS-specific */
33 #define STT_LOPROC 13 /* Start of processor-specific */
34 #define STT_HIPROC 15 /* End of processor-specific */
35 --
36 2.1.4
37