012-elf-Add-STT_GNU_IFUNC-from-glibc.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. perf in upstream Linux kernel 3.17 onwards expects STT_GNU_IFUNC
  6. replicate it from glibc
  7. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
  8. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  9. ---
  10. include/elf.h | 2 ++
  11. 1 file changed, 2 insertions(+)
  12. diff --git a/include/elf.h b/include/elf.h
  13. index facf09c..917930b 100644
  14. --- a/include/elf.h
  15. +++ b/include/elf.h
  16. @@ -566,6 +566,7 @@ typedef struct
  17. #define STB_WEAK 2 /* Weak symbol */
  18. #define STB_NUM 3 /* Number of defined types. */
  19. #define STB_LOOS 10 /* Start of OS-specific */
  20. +#define STB_GNU_UNIQUE 10 /* Unique symbol. */
  21. #define STB_HIOS 12 /* End of OS-specific */
  22. #define STB_LOPROC 13 /* Start of processor-specific */
  23. #define STB_HIPROC 15 /* End of processor-specific */
  24. @@ -581,6 +582,7 @@ typedef struct
  25. #define STT_TLS 6 /* Symbol is thread-local data object*/
  26. #define STT_NUM 7 /* Number of defined types. */
  27. #define STT_LOOS 10 /* Start of OS-specific */
  28. +#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */
  29. #define STT_HIOS 12 /* End of OS-specific */
  30. #define STT_LOPROC 13 /* Start of processor-specific */
  31. #define STT_HIPROC 15 /* End of processor-specific */
  32. --
  33. 2.1.4