diff options
author | Nick Clifton <nickc@redhat.com> | 2022-10-21 12:20:09 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-10-21 12:20:09 +0100 |
commit | 4b2e7a577c2f7311a8c381ff791d46e654c41fcc (patch) | |
tree | 04565dd86cf6a87ef1aed4ba39597ac269bf08f6 /ld/ld.texi | |
parent | 816be8d8b71b2b79e348d36d635b9f4756700f94 (diff) | |
download | gdb-4b2e7a577c2f7311a8c381ff791d46e654c41fcc.zip gdb-4b2e7a577c2f7311a8c381ff791d46e654c41fcc.tar.gz gdb-4b2e7a577c2f7311a8c381ff791d46e654c41fcc.tar.bz2 |
Add a -w option to the linker to suppress warning and error messages.
PR 29654
* ld.h (struct ld_config_type): Add no_warnings field.
* ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
* lexsup.c (ld_options): Add --no-warnings.
(parse_args): Add support for -w and --no-warnings.
* ldmisc.c (vfinfo): Return early if the message is a warning and
-w has been enabled.
* ld.texi (options): Document new command line option.
* NEWS: Mention the new feature.
Diffstat (limited to 'ld/ld.texi')
-rw-r--r-- | ld/ld.texi | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1876,6 +1876,15 @@ in filename invoked by -R or --just-symbols Treat all warnings as errors. The default behaviour can be restored with the option @option{--no-fatal-warnings}. +@kindex -w +@kindex --no-warnings +@item -w +@itemx --no-warnings +Do not display any warning or error messages. This overrides +@option{--fatal-warnings} if it has been enabled. This option can be +used when it is known that the output binary will not work, but there +is still a need to create it. + @kindex --force-exe-suffix @item --force-exe-suffix Make sure that an output file has a .exe suffix. |