[RFC] [PATCH] ld: Add --no-print-map-discarded option
fshahbazker@wavecomp.com
fshahbazker@wavecomp.com
Fri Jul 27 16:03:00 GMT 2018
Hi,
This patch introduces an option to disable the listing of discarded sections
in map file output. The use case stems from a largeish application built with
-ffunction-sections & --gc-sections where the list of discarded sections
blows up the map file output. The default behaviour will ofcourse remain
to print discarded sections, but the new option would allow us to disable it.
Comments welcome.
Regards,
Faraz Shahbazker
Faraz Shahbazker (1):
ld: Add --no-print-map-discarded option
ld/ld.h | 3 +++
ld/ldlang.c | 25 +++++++++++++------------
ld/ldlex.h | 2 ++
ld/ldmain.c | 1 +
ld/lexsup.c | 12 ++++++++++++
ld/testsuite/ld-gc/gc.exp | 2 ++
ld/testsuite/ld-gc/skip-map-discarded.d | 3 +++
ld/testsuite/ld-gc/skip-map-discarded.map | 5 +++++
ld/testsuite/ld-gc/skip-map-discarded.s | 5 +++++
9 files changed, 46 insertions(+), 12 deletions(-)
create mode 100644 ld/testsuite/ld-gc/skip-map-discarded.d
create mode 100644 ld/testsuite/ld-gc/skip-map-discarded.map
create mode 100644 ld/testsuite/ld-gc/skip-map-discarded.s
--
2.7.4
More information about the Binutils
mailing list