This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH] [AArch64] Adding -funwind-tables to backtrace.c
- From: Marcus Shawcroft <marcus dot shawcroft at linaro dot org>
- To: libc-ports at sourceware dot org
- Cc: Marcus Shawcroft <marcus dot shawcroft at linaro dot org>
- Date: Fri, 5 Jul 2013 17:31:57 +0100
- Subject: [PATCH] [AArch64] Adding -funwind-tables to backtrace.c
The debug/tst-backtrace*.c tests are currently failing for AArch64. Patch below.
Is this OK for 2.18?
Thanks
/Marcus
* sysdeps/aarch64/Makefile (CFLAGS-backtrace.c): Define.
---
ports/ChangeLog.aarch64 | 4 ++++
ports/sysdeps/aarch64/Makefile | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/ports/ChangeLog.aarch64 b/ports/ChangeLog.aarch64
index 15bdd76..0c4c6f0 100644
--- a/ports/ChangeLog.aarch64
+++ b/ports/ChangeLog.aarch64
@@ -1,5 +1,9 @@
2013-07-05 Marcus Shawcroft <marcus.shawcroft@linaro.org>
+ * sysdeps/aarch64/Makefile (CFLAGS-backtrace.c): Define.
+
+2013-07-05 Marcus Shawcroft <marcus.shawcroft@linaro.org>
+
* sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist (mcount): Add.
(__mcount): Likewise.
diff --git a/ports/sysdeps/aarch64/Makefile b/ports/sysdeps/aarch64/Makefile
index ce2cedd..5af7a16 100644
--- a/ports/sysdeps/aarch64/Makefile
+++ b/ports/sysdeps/aarch64/Makefile
@@ -1,5 +1,9 @@
long-double-fcts = yes
+ifeq ($(subdir),debug)
+CFLAGS-backtrace.c += -funwind-tables
+endif
+
ifeq ($(subdir),elf)
sysdep-dl-routines += tlsdesc dl-tlsdesc
sysdep_routines += tlsdesc dl-tlsdesc
--
1.8.1.2