tool_chain: update binutils to version 2.36.1

Issue #4094
This commit is contained in:
Christian Prochaska 2021-03-26 11:54:08 +01:00 committed by Christian Helmuth
parent 6a11b78cdf
commit fc902d9e66
6 changed files with 47 additions and 12 deletions

View File

@ -1 +1 @@
62d3090d2ac134787457839ec55cf45512817fe2
41f7e5a393d8f8b8c7471efc366e74695a8d7694

View File

@ -1,9 +1,9 @@
LICENSE := GPLv2
VERSION := 2.32
VERSION := 2.36.1
DOWNLOADS := binutils.archive
URL(binutils) := ftp://ftp.fu-berlin.de/gnu/binutils/binutils-$(VERSION).tar.xz
SHA(binutils) := 0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
SHA(binutils) := e81d9edf373f193af428a0f256674aea62a9d74dfe93f65192d4eae030b0f3b0
SIG(binutils) := ${URL(binutils)}.sig
KEY(binutils) := GNU
DIR(binutils) := src/noux-pkg/binutils

View File

@ -13,11 +13,11 @@ From: Christian Prochaska <christian.prochaska@genode-labs.com>
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em
index 80effa4..82e2e2d 100644
index 0c031080..62886e45 100644
--- a/ld/emultempl/armelf.em
+++ b/ld/emultempl/armelf.em
@@ -22,7 +22,7 @@
# This file is sourced from elf32.em, and defines extra arm-elf
# This file is sourced from elf.em, and defines extra arm-elf
# specific routines.
#
-test -z "$TARGET2_TYPE" && TARGET2_TYPE="rel"

View File

@ -0,0 +1,30 @@
bfd.patch
From: Christian Prochaska <christian.prochaska@genode-labs.com>
---
bfd/bfd-in2.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 7eff85b7..4d24be86 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -44,6 +44,7 @@ extern "C" {
#include "bfd_stdint.h"
#include "diagnostics.h"
#include <stdarg.h>
+#include <stdio.h>
#include <sys/stat.h>
#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
@@ -6513,7 +6514,7 @@ struct bfd
/* The IOSTREAM, and corresponding IO vector that provide access
to the file backing the BFD. */
- void *iostream;
+ FILE *iostream;
const struct bfd_iovec *iovec;
/* The caching routines use these to maintain a

View File

@ -1,17 +1,21 @@
commit 55b4054cf95835fef2896e884cfc0069a0a14401
Author: Sebastian Sumpf <sebastian.sumpf@genode-labs.com>
Date: Thu Apr 25 11:02:51 2019 +0200
riscv: always enable shared library support
riscv: always enable shared library support
From: Sebastian Sumpf <sebastian.sumpf@genode-labs.com>
---
ld/emulparams/elf32lriscv-defs.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ld/emulparams/elf32lriscv-defs.sh b/ld/emulparams/elf32lriscv-defs.sh
index 5ac3b602..32b50682 100644
index b823ceda..59aab2de 100644
--- a/ld/emulparams/elf32lriscv-defs.sh
+++ b/ld/emulparams/elf32lriscv-defs.sh
@@ -26,6 +26,10 @@ case "$target" in
;;
@@ -27,6 +27,11 @@ case "$target" in
esac
IREL_IN_PLT=
+
+# always enable shared library support
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes

View File

@ -1,2 +1,3 @@
bfd.patch
arm.patch
riscv.patch