[Ltrace-devel] [PATCH] Allow building with uclibc toolchains

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Dec 22 20:54:41 UTC 2015


From: Alexandre Belloni <alexandre.belloni at free-electrons.com>

Unfortunately, uclicbc doesn't define SHT_ARM_ATTRIBUTES in elf.h

Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
---
 sysdeps/linux-gnu/arm/plt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sysdeps/linux-gnu/arm/plt.c b/sysdeps/linux-gnu/arm/plt.c
index 9e9e37f..a0a5795 100644
--- a/sysdeps/linux-gnu/arm/plt.c
+++ b/sysdeps/linux-gnu/arm/plt.c
@@ -28,6 +28,10 @@
 #include "library.h"
 #include "ltrace-elf.h"
 
+#ifndef SHT_ARM_ATTRIBUTES
+#define SHT_ARM_ATTRIBUTES     0x70000003
+#endif
+
 static int
 get_hardfp(uint64_t abi_vfp_args)
 {
-- 
2.6.4




More information about the Ltrace-devel mailing list