2009-06-25 Tristan Gingold <gingold@adacore.com>

* ldlang.c (print_input_section): Add is_discarded parameter.  Adjust
	prototype.
	(lang_map): Print the size of discarded sections.
	(print_statement): Adjust call to print_input_section.
This commit is contained in:
Tristan Gingold 2009-06-25 13:18:46 +00:00
parent b32e07d7d7
commit d64703c6e8
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2009-06-25 Tristan Gingold <gingold@adacore.com>
* ldlang.c (print_input_section): Add is_discarded parameter. Adjust
prototype.
(lang_map): Print the size of discarded sections.
(print_statement): Adjust call to print_input_section.
2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com> 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
Merge cegcc and mingw32ce target name changes from CeGCC project: Merge cegcc and mingw32ce target name changes from CeGCC project:

View File

@ -78,7 +78,7 @@ static void print_statement (lang_statement_union_type *,
static void print_statement_list (lang_statement_union_type *, static void print_statement_list (lang_statement_union_type *,
lang_output_section_statement_type *); lang_output_section_statement_type *);
static void print_statements (void); static void print_statements (void);
static void print_input_section (asection *); static void print_input_section (asection *, bfd_boolean);
static bfd_boolean lang_one_common (struct bfd_link_hash_entry *, void *); static bfd_boolean lang_one_common (struct bfd_link_hash_entry *, void *);
static void lang_record_phdrs (void); static void lang_record_phdrs (void);
static void lang_do_version_exports_section (void); static void lang_do_version_exports_section (void);
@ -1917,7 +1917,7 @@ lang_map (void)
dis_header_printed = TRUE; dis_header_printed = TRUE;
} }
print_input_section (s); print_input_section (s, TRUE);
} }
} }
@ -3957,7 +3957,7 @@ print_all_symbols (asection *sec)
/* Print information about an input section to the map file. */ /* Print information about an input section to the map file. */
static void static void
print_input_section (asection *i) print_input_section (asection *i, bfd_boolean is_discarded)
{ {
bfd_size_type size = i->size; bfd_size_type size = i->size;
int len; int len;
@ -3986,6 +3986,7 @@ print_input_section (asection *i)
else else
{ {
addr = print_dot; addr = print_dot;
if (!is_discarded)
size = 0; size = 0;
} }
@ -4281,7 +4282,7 @@ print_statement (lang_statement_union_type *s,
print_reloc_statement (&s->reloc_statement); print_reloc_statement (&s->reloc_statement);
break; break;
case lang_input_section_enum: case lang_input_section_enum:
print_input_section (s->input_section.section); print_input_section (s->input_section.section, FALSE);
break; break;
case lang_padding_statement_enum: case lang_padding_statement_enum:
print_padding_statement (&s->padding_statement); print_padding_statement (&s->padding_statement);