Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] libsigsegv: fix build on riscv
@ 2018-11-13 22:52 Fabrice Fontaine
  2018-11-14  7:52 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2018-11-13 22:52 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/bd12cb3db3b46860a4ab8fb91052319dce75202a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...ack-direction-for-the-RISC-V-architecture.patch | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/libsigsegv/0001-Add-stack-direction-for-the-RISC-V-architecture.patch

diff --git a/package/libsigsegv/0001-Add-stack-direction-for-the-RISC-V-architecture.patch b/package/libsigsegv/0001-Add-stack-direction-for-the-RISC-V-architecture.patch
new file mode 100644
index 0000000000..9fbe5dff8c
--- /dev/null
+++ b/package/libsigsegv/0001-Add-stack-direction-for-the-RISC-V-architecture.patch
@@ -0,0 +1,33 @@
+From c2abebc9d86429e0662b6cdbe77d022d1c81340d Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 13 Nov 2018 23:17:54 +0100
+Subject: [PATCH] Add stack direction for the RISC-V architecture
+
+The stack grows downwards on RISC-V, see
+https://riscv.org/wp-content/uploads/2015/01/riscv-calling.pdf:
+"In the standard RISC-V calling convention, the stack grows downward and
+the stack pointer is always kept 16-byte aligned."
+
+Fixes:
+ - http://autobuild.buildroot.org/results/bd12cb3db3b46860a4ab8fb91052319dce75202a
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ m4/stack-direction.m4 | 1 +
+ 1 file changed, 1 insertion(+)
+
+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.14.1
+
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] libsigsegv: fix build on riscv
  2018-11-13 22:52 [Buildroot] [PATCH 1/1] libsigsegv: fix build on riscv Fabrice Fontaine
@ 2018-11-14  7:52 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-11-14  7:52 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 13 Nov 2018 23:52:14 +0100, Fabrice Fontaine wrote:
> Fixes:
>  - http://autobuild.buildroot.org/results/bd12cb3db3b46860a4ab8fb91052319dce75202a
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

I already submitted a similar patch a few hours earlier:

  http://patchwork.ozlabs.org/patch/997399/

 :-)

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-14  7:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-13 22:52 [Buildroot] [PATCH 1/1] libsigsegv: fix build on riscv Fabrice Fontaine
2018-11-14  7:52 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox