diff mbox

elf: Add STT_GNU_IFUNC from glibc

Message ID 1424426228-618-1-git-send-email-vgupta@synopsys.com
State Accepted
Commit be58779614b2fe9aa57a9315be9dc004dfd77b3b
Headers show

Commit Message

Vineet Gupta Feb. 20, 2015, 9:57 a.m. UTC
perf in upstream Linux kernel 3.17 onwards expects STT_GNU_IFUNC
replicate it from glibc

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
 include/elf.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Bernhard Reutner-Fischer Feb. 20, 2015, 10:38 a.m. UTC | #1
On 20 February 2015 at 10:57, Vineet Gupta <Vineet.Gupta1@synopsys.com> wrote:
> perf in upstream Linux kernel 3.17 onwards expects STT_GNU_IFUNC
> replicate it from glibc

Applied, thanks!
diff mbox

Patch

diff --git a/include/elf.h b/include/elf.h
index facf09cd5ca3..917930b1811e 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 */