[coreboot-gerrit] New patch to review for coreboot: toolchain: fix compilation of GMP on FreeBSD

Idwer Vollering (vidwer@gmail.com) gerrit at coreboot.org
Wed Mar 8 16:04:38 CET 2017


Idwer Vollering (vidwer at gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18675

-gerrit

commit a54bd37bb75280d3f92bf064a3eb1913d93e1350
Author: Idwer Vollering <vidwer at gmail.com>
Date:   Wed Mar 8 15:31:22 2017 +0100

    toolchain: fix compilation of GMP on FreeBSD
    
    Built on FreeBSD -CURRENT
    Obtained from FreeBSD: https://github.com/freebsd/freebsd-ports/commit/bbedec80e36fe22a4f55433c3e6c2a64828fd9da
    
    Change-Id: Ic6b6db8e3a9d86a30c50a09d58566846446031ea
    Signed-off-by: Idwer Vollering <vidwer at gmail.com>
---
 .../patches/gmp-6.1.2_freebsd-configure.patch        | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/util/crossgcc/patches/gmp-6.1.2_freebsd-configure.patch b/util/crossgcc/patches/gmp-6.1.2_freebsd-configure.patch
new file mode 100644
index 0000000..5770af6
--- /dev/null
+++ b/util/crossgcc/patches/gmp-6.1.2_freebsd-configure.patch
@@ -0,0 +1,20 @@
+--- gmp-6.1.2.orig/configure	2016-12-16 16:45:32.000000000 +0100
++++ gmp-6.1.2/configure	2017-03-08 14:26:11.194245000 +0100
+@@ -6776,7 +6776,7 @@
+   long i;
+   for (i = 0; i < 88 + 1; i++)
+     a[i] = ~0L;
+-  r = malloc (10000 * sizeof (unsigned long));
++  r = calloc (10000, sizeof (unsigned long));
+   r2 = r;
+   for (i = 0; i < 528; i += 23)
+     {
+@@ -8394,7 +8394,7 @@
+   long i;
+   for (i = 0; i < 88 + 1; i++)
+     a[i] = ~0L;
+-  r = malloc (10000 * sizeof (unsigned long));
++  r = calloc (10000, sizeof (unsigned long));
+   r2 = r;
+   for (i = 0; i < 528; i += 23)
+     {



More information about the coreboot-gerrit mailing list