]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: Don't treated the fatal error as warning
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 30 Jul 2026 07:18:42 +0000 (15:18 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Aug 2026 21:25:20 +0000 (05:25 +0800)
Change fatal to pass false as the is_warning argument to vfinfo so that
the fatal error message isn't treated as a warning by vfinfo.

* ldmisc.c (fatal): Pass false as the is_warning argument to
vfinfo.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
ld/ldmisc.c

index 31ca64b4ba0bd7f3746eab7913e909e5ca8363b5..efb10693076706e408cb111c828eba1aaf06df84 100644 (file)
@@ -661,7 +661,7 @@ fatal (const char *fmt, ...)
 
   fflush (stdout);
   va_start (arg, fmt);
-  vfinfo (stderr, fmt, arg, true);
+  vfinfo (stderr, fmt, arg, false);
   va_end (arg);
   fflush (stderr);
   xexit (1);