0001-arm-plt.patch 832 B

123456789101112131415161718192021222324252627282930
  1. From 04377d28135e351c8d096c4392a493e937416815 Mon Sep 17 00:00:00 2001
  2. From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  3. Date: Thu, 24 Jul 2014 23:15:20 +0200
  4. Subject: [PATCH] Allow building with uclibc toolchains
  5. Unfortunately, uclicbc doesn't define SHT_ARM_ATTRIBUTES in elf.h
  6. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  7. ---
  8. sysdeps/linux-gnu/arm/plt.c | 4 ++++
  9. 1 file changed, 4 insertions(+)
  10. diff --git a/sysdeps/linux-gnu/arm/plt.c b/sysdeps/linux-gnu/arm/plt.c
  11. index 9e9e37f0c5b0..a0a5795eb9cb 100644
  12. --- a/sysdeps/linux-gnu/arm/plt.c
  13. +++ b/sysdeps/linux-gnu/arm/plt.c
  14. @@ -28,6 +28,10 @@
  15. #include "library.h"
  16. #include "ltrace-elf.h"
  17. +#ifndef SHT_ARM_ATTRIBUTES
  18. +#define SHT_ARM_ATTRIBUTES 0x70000003
  19. +#endif
  20. +
  21. static int
  22. get_hardfp(uint64_t abi_vfp_args)
  23. {
  24. --
  25. 1.9.1