aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorFaraz Shahbazker <fshahbazker@wavecomp.com>2019-04-02 20:17:16 +0000
committerFaraz Shahbazker <fshahbazker@wavecomp.com>2019-04-11 10:16:31 -0700
commit035801cebe9ffbdddb465b81ae514a465ce9c64c (patch)
tree1bec295602b51ae66b0c83a96673726cb10c6d46 /ld/ChangeLog
parentc30391f893fd99e768c1a6282763ef553c45f1ff (diff)
downloadgdb-035801cebe9ffbdddb465b81ae514a465ce9c64c.zip
gdb-035801cebe9ffbdddb465b81ae514a465ce9c64c.tar.gz
gdb-035801cebe9ffbdddb465b81ae514a465ce9c64c.tar.bz2
ld: Add --no-print-map-discarded option
Add a new option to disable the listing of discarded sections in map file output. The use case stems from a large application built with -ffunction-sections --gc-sections where the list of discarded sections blows up the map file output. The default behaviour remains to print discarded sections, but the new option allows us to disable it. ld/ * NEWS: Mention new option --no-print-map-discarded. * ld.h (ld_config_type) <print_map_discarded>: New field. * ldlang.c (lang_map): Conditionally output discarded sections in map files based on configuration option. * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED, OPTION_NO_PRINT_MAP_DISCARDED>: New. * ldmain.c (main): Enabled print_map_discarded by default. * lexsup.c (ld_options): Add new command-line options. (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED, OPTION_PRINT_MAP_DISCARDED>: New cases. * ld.texi: Document new options. * testsuite/ld-gc/gc.exp: Add new test. * testsuite/ld-gc/skip-map-discarded.s: New file. * testsuite/ld-gc/skip-map-discarded.d: New file. * testsuite/ld-gc/skip-map-discarded.map: New file.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 8e6a2d4..c8eda47 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,21 @@
+2019-04-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
+
+ * NEWS: Mention new option --no-print-map-discarded.
+ * ld.h (ld_config_type) <print_map_discarded>: New field.
+ * ldlang.c (lang_map): Conditionally output discarded sections
+ in map files based on configuration option.
+ * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
+ OPTION_NO_PRINT_MAP_DISCARDED>: New.
+ * ldmain.c (main): Enabled print_map_discarded by default.
+ * lexsup.c (ld_options): Add new command-line options.
+ (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
+ OPTION_PRINT_MAP_DISCARDED>: New cases.
+ * ld.texi: Document new options.
+ * testsuite/ld-gc/gc.exp: Add new test.
+ * testsuite/ld-gc/skip-map-discarded.s: New file.
+ * testsuite/ld-gc/skip-map-discarded.d: New file.
+ * testsuite/ld-gc/skip-map-discarded.map: New file.
+
2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
* ld.texi: Document -z cet-report=[none|warning|error].