summaryrefslogtreecommitdiff
path: root/ld/NEWS
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-10-21 12:20:09 +0100
committerNick Clifton <nickc@redhat.com>2022-10-21 12:20:09 +0100
commit4b2e7a577c2f7311a8c381ff791d46e654c41fcc (patch)
tree04565dd86cf6a87ef1aed4ba39597ac269bf08f6 /ld/NEWS
parent816be8d8b71b2b79e348d36d635b9f4756700f94 (diff)
downloadbinutils-gdb-4b2e7a577c2f7311a8c381ff791d46e654c41fcc.tar.gz
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/NEWS')
-rw-r--r--ld/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/NEWS b/ld/NEWS
index d7ceb0c68b6..24df91aa85f 100644
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -1,7 +1,12 @@
-*- text -*-
+* The linker has a new command line option to suppress the generation of any
+ warning or error messages. This can be useful when there is a need to create
+ a known non-working binary. The option is -w or --no-warnings.
+
* ld now supports zstd compressed debug sections. The new option
--compress-debug-sections=zstd compresses debug sections with zstd.
+
* Add --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
that selects the default compression algorithm
for --enable-compressed-debug-sections.