mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
string merge section map output
This fixes an inconsistency in the linker map file, where string merge sections (other than the first) kept their sizes. String merge sections of like entsize all are accounted in the fisrt string merge section size. * ldlang.c (print_input_section): Print SEC_EXCLUDE section size as zero.
This commit is contained in:
@@ -5062,7 +5062,8 @@ print_input_section (asection *i, bool is_discarded)
|
||||
}
|
||||
print_spaces (SECTION_NAME_MAP_LENGTH - len);
|
||||
|
||||
if (i->output_section != NULL
|
||||
if ((i->flags & SEC_EXCLUDE) == 0
|
||||
&& i->output_section != NULL
|
||||
&& i->output_section->owner == link_info.output_bfd)
|
||||
addr = i->output_section->vma + i->output_offset;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user