[Buildroot] [git commit] libsigsegv: add support for Nios II

Peter Korsgaard peter at korsgaard.com
Tue Dec 30 23:40:01 UTC 2014


commit: http://git.buildroot.net/buildroot/commit/?id=1c7392dc2ca6006a2d415bcd1b0c91bb69a4f8bf
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

This commit adds a patch to libsigsegv that indicates the stack
direction on Nios II, which is needed for libsigsegv to build properly
on this architecture.

Fixes:

  http://autobuild.buildroot.org/results/943/9436c3208cfeee9bd3bc211df007e745fe13c2c2/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 ...ck-direction-for-the-Nios-II-architecture.patch |   31 ++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/package/libsigsegv/0005-Add-stack-direction-for-the-Nios-II-architecture.patch b/package/libsigsegv/0005-Add-stack-direction-for-the-Nios-II-architecture.patch
new file mode 100644
index 0000000..ee4778e
--- /dev/null
+++ b/package/libsigsegv/0005-Add-stack-direction-for-the-Nios-II-architecture.patch
@@ -0,0 +1,31 @@
+From 24bac122bf4ffe437bb4f6ca633ad08f31a23d73 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
+Date: Mon, 29 Dec 2014 13:56:54 +0100
+Subject: [PATCH 5/5] Add stack direction for the Nios II architecture
+
+According to Altera Application Binary Interface document for the Nios
+II architecture
+(http://www.altera.com/literature/hb/nios2/n2cpu_nii51016.pdf):
+
+ "The stack grows downward (i.e. towards lower addresses). ".
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
+---
+ m4/stack-direction.m4 | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/m4/stack-direction.m4 b/m4/stack-direction.m4
+index 1a97d5a..d9c5157 100644
+--- a/m4/stack-direction.m4
++++ b/m4/stack-direction.m4
+@@ -38,6 +38,7 @@ AC_DEFUN([SV_STACK_DIRECTION],
+       mmix | \
+       mn10200 | \
+       mn10300 | \
++      nios2 | \
+       ns32k | \
+       pdp11 | \
+       pj* | \
+-- 
+2.1.0
+


More information about the buildroot mailing list