From e54c13e13cb1636f697187a844af9350974330a3 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 30 Jul 2023 18:18:41 +0200 Subject: util/crossgcc: Update binutils from 2.40 to 2.41 Change-Id: I6c985974e2eeea1329b2dbb232711c72b0bd99bc Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/76852 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- util/crossgcc/patches/binutils-2.41_as-ipxe.patch | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 util/crossgcc/patches/binutils-2.41_as-ipxe.patch (limited to 'util/crossgcc/patches/binutils-2.41_as-ipxe.patch') diff --git a/util/crossgcc/patches/binutils-2.41_as-ipxe.patch b/util/crossgcc/patches/binutils-2.41_as-ipxe.patch new file mode 100644 index 0000000000..fb15cce5ec --- /dev/null +++ b/util/crossgcc/patches/binutils-2.41_as-ipxe.patch @@ -0,0 +1,34 @@ +From 6984bd861cc595e56d26ea033851d9174e855129 Mon Sep 17 00:00:00 2001 +From: Himanshu Sahdev aka CunningLearner +Date: Mon, 26 Aug 2019 16:57:13 +0530 +Subject: [PATCH] as: facilitate tests based on /dev/null + +Signed-off-by: Himanshu Sahdev + +--- + 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 + -- cgit v1.2.3