[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-libsigsegv] [PATCH] m4/stack-direction: RISC-V stack grows downward
From: |
Thomas Petazzoni |
Subject: |
[bug-libsigsegv] [PATCH] m4/stack-direction: RISC-V stack grows downward |
Date: |
Tue, 13 Nov 2018 22:37:27 +0100 |
While commit 671b2528b55c57eda1a8fe5872ff1ef61014235f ("Improve
support for Linux/RISC-V") adds some support for the RISC-V
architecture, it doesn't update m4/stack-direction.m4 to properly
support cross-compiling libsigsegv for a RISC-V architecture.
According to
https://riscv.org/wp-content/uploads/2015/01/riscv-calling.pdf: "In
the standard RISC-V calling convention, the stack grows downward", so
let's update m4/stack-direction.m4 accordingly.
Signed-off-by: Thomas Petazzoni <address@hidden>
---
ChangeLog | 5 +++++
m4/stack-direction.m4 | 1 +
2 files changed, 6 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 16fe1fd..0696e5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-11-13 Thomas Petazzoni <address@hidden>
+
+ Fix cross-compilation for RISC-V.
+ * m4/stack-direction.m4: Add stack direction for RISC-V.
+
2018-10-24 Bruno Haible <address@hidden>
Update after gnulib changed.
diff --git a/m4/stack-direction.m4 b/m4/stack-direction.m4
index c373f1c..9504f88 100644
--- a/m4/stack-direction.m4
+++ b/m4/stack-direction.m4
@@ -43,6 +43,7 @@ AC_DEFUN([SV_STACK_DIRECTION],
pdp11 | \
pj* | \
powerpc* | rs6000 | \
+ riscv* | \
romp | \
s390* | \
sh* | \
--
2.19.1
- [bug-libsigsegv] [PATCH] m4/stack-direction: RISC-V stack grows downward,
Thomas Petazzoni <=