soc/intel/adl: Unhide PMC, IOM ACPI devices from OS
[coreboot.git] / util / crossgcc / patches / binutils-2.40_as-ipxe.patch
blob4d2c00a17f722eb957831028dd07d2e943d2cca7
1 From 6984bd861cc595e56d26ea033851d9174e855129 Mon Sep 17 00:00:00 2001
2 From: Himanshu Sahdev aka CunningLearner <sahdev.himan@gmail.com>
3 Date: Mon, 26 Aug 2019 16:57:13 +0530
4 Subject: [PATCH] as: facilitate tests based on /dev/null
6 Signed-off-by: Himanshu Sahdev <himanshusah@hcl.com>
8 ---
9 gas/as.c | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
12 diff --git a/gas/as.c b/gas/as.c
13 index 728811bc..78b4802c 100644
14 --- a/gas/as.c
15 +++ b/gas/as.c
16 @@ -1203,7 +1203,7 @@ main (int argc, char ** argv)
18 char ** argv_orig = argv;
19 struct stat sob;
21 + const char *dev_null_file="/dev/null";
22 int macro_strip_at;
24 start_time = get_run_time ();
25 @@ -1252,7 +1252,7 @@ main (int argc, char ** argv)
26 so that switches like --hash-size can be honored. */
27 parse_args (&argc, &argv);
29 - if (argc > 1 && stat (out_file_name, &sob) == 0)
30 + if (argc > 1 && stat (out_file_name, &sob) == 0 && strcmp(out_file_name,dev_null_file)!=0)
32 int i;
34 --
35 2.17.1