Skip to content

Commit

Permalink
Fix cross-compilation for RISC-V.
Browse files Browse the repository at this point in the history
While commit 671b252 ("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 <thomas.petazzoni@bootlin.com>
  • Loading branch information
tpetazzoni authored and bhaible committed Nov 14, 2018
1 parent fa90e7b commit fd0e3d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2018-11-13 Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Fix cross-compilation for RISC-V.
* m4/stack-direction.m4: Add stack direction for RISC-V.

2018-10-24 Bruno Haible <bruno@clisp.org>

Update after gnulib changed.
Expand Down
1 change: 1 addition & 0 deletions m4/stack-direction.m4
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ AC_DEFUN([SV_STACK_DIRECTION],
pdp11 | \
pj* | \
powerpc* | rs6000 | \
riscv* | \
romp | \
s390* | \
sh* | \
Expand Down

0 comments on commit fd0e3d9

Please sign in to comment.