]> xenbits.xensource.com Git - unikraft/libs/libgo.git/commitdiff
Add patches to build the library
authorCostin Lupu <costin.lupu@cs.pub.ro>
Thu, 26 Sep 2019 15:31:31 +0000 (17:31 +0200)
committerFelipe Huici <felipe.huici@neclab.eu>
Fri, 27 Sep 2019 08:49:23 +0000 (10:49 +0200)
libgo expects the unwind.h header although it comes with its own
header, unwind-generic.h, so we will be using that one instead. The
second patch removes an unnecessary include directive.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
patches/0001-libgo-Use-gcc-own-unwind-header-instead-of-system-one.patch [new file with mode: 0644]
patches/0002-libgo-No-futex-tonight.patch [new file with mode: 0644]

diff --git a/patches/0001-libgo-Use-gcc-own-unwind-header-instead-of-system-one.patch b/patches/0001-libgo-Use-gcc-own-unwind-header-instead-of-system-one.patch
new file mode 100644 (file)
index 0000000..7ec09bc
--- /dev/null
@@ -0,0 +1,25 @@
+From 596b3b33e72c5c64cb7ead4aee2983869008ad44 Mon Sep 17 00:00:00 2001
+Date: Fri, 16 Aug 2019 23:13:03 +0200
+Subject: [PATCH 1/2] libgo: Use gcc own unwind header instead of system one
+
+Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
+---
+ libgo/runtime/go-unwind.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libgo/runtime/go-unwind.c b/libgo/runtime/go-unwind.c
+index 4c9fb49c9..907ba0336 100644
+--- a/libgo/runtime/go-unwind.c
++++ b/libgo/runtime/go-unwind.c
+@@ -9,7 +9,7 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+-#include "unwind.h"
++#include "unwind-generic.h"
+ #define NO_SIZE_OF_ENCODED_VALUE
+ #include "unwind-pe.h"
+-- 
+2.20.1
+
diff --git a/patches/0002-libgo-No-futex-tonight.patch b/patches/0002-libgo-No-futex-tonight.patch
new file mode 100644 (file)
index 0000000..7892e47
--- /dev/null
@@ -0,0 +1,25 @@
+From 5ea9d76060b0347002468159fc50b8f81bc726b1 Mon Sep 17 00:00:00 2001
+From: Costin Lupu <costin.lup@gmail.com>
+Date: Fri, 16 Aug 2019 23:14:34 +0200
+Subject: [PATCH 2/2] libgo: No futex tonight
+
+Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
+---
+ libgo/runtime/thread-linux.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/libgo/runtime/thread-linux.c b/libgo/runtime/thread-linux.c
+index 81ad0f9c9..fd5a31182 100644
+--- a/libgo/runtime/thread-linux.c
++++ b/libgo/runtime/thread-linux.c
+@@ -9,7 +9,6 @@
+ #include <unistd.h>
+ #include <syscall.h>
+-#include <linux/futex.h>
+ void
+ runtime_osinit(void)
+-- 
+2.20.1
+