summaryrefslogtreecommitdiff
path: root/util/crossgcc/patches/binutils-2.43.1_as-ipxe.patch
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-08-07 18:40:54 +0200
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-08-23 21:37:42 +0000
commit69618cd527012c84fb6c5863e2bb4fbf01406a9b (patch)
tree1a602dad9130d2dbf8fa236ec07520996e9fad70 /util/crossgcc/patches/binutils-2.43.1_as-ipxe.patch
parent04bb74a7267a64d39ca87ba8c9b4f9f34c7d2bbb (diff)
crossgcc: Upgrade binutils from 2.42 to 2.43.1
Change-Id: I1c9d1b2e336894ac48ce87e4d3390e9f9557d4f7 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83816 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Diffstat (limited to 'util/crossgcc/patches/binutils-2.43.1_as-ipxe.patch')
-rw-r--r--util/crossgcc/patches/binutils-2.43.1_as-ipxe.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/util/crossgcc/patches/binutils-2.43.1_as-ipxe.patch b/util/crossgcc/patches/binutils-2.43.1_as-ipxe.patch
new file mode 100644
index 0000000000..fb15cce5ec
--- /dev/null
+++ b/util/crossgcc/patches/binutils-2.43.1_as-ipxe.patch
@@ -0,0 +1,34 @@
+From 6984bd861cc595e56d26ea033851d9174e855129 Mon Sep 17 00:00:00 2001
+From: Himanshu Sahdev aka CunningLearner <sahdev.himan@gmail.com>
+Date: Mon, 26 Aug 2019 16:57:13 +0530
+Subject: [PATCH] as: facilitate tests based on /dev/null
+
+Signed-off-by: Himanshu Sahdev <himanshusah@hcl.com>
+
+---
+ gas/as.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/gas/as.c b/gas/as.c
+index 728811bc..78b4802c 100644
+--- a/gas/as.c
++++ b/gas/as.c
+@@ -1364,13 +1364,14 @@ main (int argc, char ** argv)
+ char ** argv_orig = argv;
+ struct stat sob;
+
++ const char *dev_null_file="/dev/null";
+ gas_early_init (&argc, &argv);
+
+ /* Call parse_args before gas_init so that switches like
+ --hash-size can be honored. */
+ parse_args (&argc, &argv);
+
+- if (argc > 1 && stat (out_file_name, &sob) == 0)
++ if (argc > 1 && stat (out_file_name, &sob) == 0 && strcmp(out_file_name,dev_null_file)!=0)
+ {
+ int i;
+
+--
+2.17.1
+