Fix internal error in gold when -Map and --compress-debug-sections are used
authorCary Coutant <ccoutant@google.com>
Tue, 16 Dec 2014 22:57:17 +0000 (14:57 -0800)
committerCary Coutant <ccoutant@google.com>
Tue, 16 Dec 2014 22:58:15 +0000 (14:58 -0800)
commite02a4046e0617f3e2c1b811a1888db3fa998dfa4
treec445e4ffc70e26081c00c06fad580b1ba5f89516
parent15969b63f98e669afd097a1878b191a01bf95d82
Fix internal error in gold when -Map and --compress-debug-sections are used
together.

gold/
* mapfile.cc (Mapfile::print_input_section): Print uncompressed sizes.
(Mapfile::print_output_data): Use current_data_size() to avoid
assert for sections requiring postprocessing; if address is not valid,
print 0.
(Mapfile::print_output_section): Use current_data_size(); print note
that addresses and sizes are before compression.
gold/ChangeLog
gold/mapfile.cc