[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/31289] New: --fatal-warnings doesn't work for command-line optio
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/31289] New: --fatal-warnings doesn't work for command-line options |
Date: |
Wed, 24 Jan 2024 16:05:32 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31289
Bug ID: 31289
Summary: --fatal-warnings doesn't work for command-line options
Product: binutils
Version: 2.43 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
For example:
$ ld.bfd -z bad-option --fatal-warnings -e 0/dev/null
ld.bfd: warning: -z bad-option ignored
$ echo $?
0
ie the warning about the ignored option is not being treated as an
error. This happens because the --fatal-warnings option only takes
affect after it has been processed, and we process the options in a
linear order. So the following works:
$ ld.bfd --fatal-warnings -z bad-option -e 0 /dev/null
ld.bfd: warning: -z bad-option ignored
$ echo $?
1
This behaviour differs from gold and lld, both of which honour
--fatal-warnings no matter where it occurs on the command line.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/31289] New: --fatal-warnings doesn't work for command-line options,
hjl.tools at gmail dot com <=
- [Bug ld/31289] --fatal-warnings doesn't work for command-line options, hjl.tools at gmail dot com, 2024/01/24
- [Bug ld/31289] --fatal-warnings doesn't work for command-line options, sam at gentoo dot org, 2024/01/24
- [Bug ld/31289] --fatal-warnings doesn't work for command-line options, cvs-commit at gcc dot gnu.org, 2024/01/25
- [Bug ld/31289] --fatal-warnings doesn't work for command-line options, hjl.tools at gmail dot com, 2024/01/25
- [Bug ld/31289] --fatal-warnings doesn't work for command-line options, cvs-commit at gcc dot gnu.org, 2024/01/25
- [Bug ld/31289] --fatal-warnings doesn't work for command-line options, cvs-commit at gcc dot gnu.org, 2024/01/25
- [Bug ld/31289] --fatal-warnings doesn't work for command-line options, cvs-commit at gcc dot gnu.org, 2024/01/26