aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-06-06 02:24:33 +0000
committerAlan Modra <amodra@gmail.com>2006-06-06 02:24:33 +0000
commite0f6802f194110d22a494563e3310892c24b1ab7 (patch)
tree4bc2a3aa25db234b1e410deb3b8bb8f37f2e22c8 /ld
parent937c249e04e805c3ae36f2d2b7e34f59e5e3da3d (diff)
downloadgdb-e0f6802f194110d22a494563e3310892c24b1ab7.zip
gdb-e0f6802f194110d22a494563e3310892c24b1ab7.tar.gz
gdb-e0f6802f194110d22a494563e3310892c24b1ab7.tar.bz2
* ldlang.c (init_os): Whitespace.
(map_input_to_output_sections): Don't init_os for lang_input_section. (print_all_symbols): Remove forward declaration. Convert to ISO C.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/ldlang.c9
2 files changed, 10 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 3d13c96..9645d37 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-06 Alan Modra <amodra@bigpond.net.au>
+
+ * ldlang.c (init_os): Whitespace.
+ (map_input_to_output_sections): Don't init_os for lang_input_section.
+ (print_all_symbols): Remove forward declaration. Convert to ISO C.
+
2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
* po/Make-in (top_builddir): Define.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index e7fa5c7..ca986a0 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -74,7 +74,6 @@ static bfd_boolean load_symbols (lang_input_statement_type *,
static struct bfd_hash_entry *lang_definedness_newfunc
(struct bfd_hash_entry *, struct bfd_hash_table *, const char *);
static void insert_undefined (const char *);
-static void print_all_symbols (asection *);
static bfd_boolean sort_def_symbol (struct bfd_link_hash_entry *, void *);
static void print_statement (lang_statement_union_type *,
lang_output_section_statement_type *);
@@ -1742,6 +1741,7 @@ init_os (lang_output_section_statement_type *s, asection *isec)
}
s->bfd_section->output_section = s->bfd_section;
s->bfd_section->output_offset = 0;
+
if (!command_line.reduce_memory_overheads)
{
fat_section_userdata_type *new
@@ -1750,7 +1750,6 @@ init_os (lang_output_section_statement_type *s, asection *isec)
get_userdata (s->bfd_section) = new;
}
-
/* If there is a base address, make sure that any sections it might
mention are initialized. */
if (s->addr_tree != NULL)
@@ -3152,8 +3151,9 @@ map_input_to_output_sections
if (!(os->flags & SEC_NEVER_LOAD))
os->bfd_section->flags |= SEC_ALLOC | SEC_LOAD;
break;
- case lang_fill_statement_enum:
case lang_input_section_enum:
+ break;
+ case lang_fill_statement_enum:
case lang_object_symbols_statement_enum:
case lang_reloc_statement_enum:
case lang_padding_statement_enum:
@@ -3481,8 +3481,7 @@ print_one_symbol (struct bfd_link_hash_entry *hash_entry, void *ptr)
}
static void
-print_all_symbols (sec)
- asection *sec;
+print_all_symbols (asection *sec)
{
struct fat_user_section_struct *ud = get_userdata (sec);
struct map_symbol_def *def;