buildroot/package/ltrace/0001-arm-plt.patch
Vicente Olivert Riera 738159d8f6 ltrace: update to current master
Lots of fixes have been made to ltrace, including the ones for fixing a
build failure for MIPS architecture. Updating to current master will
allow us to re-enable this package for MIPS and also remove some
upstreamed patches.

At the same time we add a patch made by Jérôme Pouiller to fix a bug
introduced by 5ba9e10 ("Split type definitions from the bundled configs
into their own files"). Two new configuration files are not installed.
Therefore, ltrace fail with messages like :

/usr/share/ltrace/libm.so.conf:333: error: unknown type around 'ldouble
erfl(ldouble);

That patch has been sent upstream.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-04 14:31:02 +02:00

31 lines
832 B
Diff

From 04377d28135e351c8d096c4392a493e937416815 Mon Sep 17 00:00:00 2001
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Date: Thu, 24 Jul 2014 23:15:20 +0200
Subject: [PATCH] Allow building with uclibc toolchains
Unfortunately, uclicbc doesn't define SHT_ARM_ATTRIBUTES in elf.h
Signed-off-by: Alexandre Belloni <alexandre.belloni@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 9e9e37f0c5b0..a0a5795eb9cb 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)
{
--
1.9.1