Add a -w option to the linker to suppress warning and error messages.
authorNick Clifton <nickc@redhat.com>
Fri, 21 Oct 2022 11:20:09 +0000 (12:20 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 21 Oct 2022 11:20:09 +0000 (12:20 +0100)
commit4b2e7a577c2f7311a8c381ff791d46e654c41fcc
tree04565dd86cf6a87ef1aed4ba39597ac269bf08f6
parent816be8d8b71b2b79e348d36d635b9f4756700f94
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.
ld/ChangeLog
ld/NEWS
ld/ld.h
ld/ld.texi
ld/ldlex.h
ld/ldmisc.c
ld/lexsup.c