aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-02-11 02:07:20 +0000
committerAlan Modra <amodra@gmail.com>2013-02-11 02:07:20 +0000
commit61087d8c32b44f2a22d6679f8214b7fd660f0b3a (patch)
tree8b7c653b359b8cf3338aaefdca9fd0888096c8e9
parente7139a93ed0fb6c75b3f5187b3873ac5f1525096 (diff)
downloadgdb-61087d8c32b44f2a22d6679f8214b7fd660f0b3a.zip
gdb-61087d8c32b44f2a22d6679f8214b7fd660f0b3a.tar.gz
gdb-61087d8c32b44f2a22d6679f8214b7fd660f0b3a.tar.bz2
* ldlang.c (get_init_priority): Comment typo.
(lang_finish): Free link_info.hash and lang_definedness_table. (lang_end): Delete lang_definedness_table comment.
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/ldlang.c7
2 files changed, 9 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index ece15ec..60d7ea0 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,11 @@
2013-02-11 Alan Modra <amodra@gmail.com>
+ * ldlang.c (get_init_priority): Comment typo.
+ (lang_finish): Free link_info.hash and lang_definedness_table.
+ (lang_end): Delete lang_definedness_table comment.
+
+2013-02-11 Alan Modra <amodra@gmail.com>
+
PR ld/15130
* ld.texinfo (-rpath-link): Typo fix.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 01c12df..65d8bbd 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -387,7 +387,7 @@ get_init_priority (const char *name)
decimal numerical value of the init_priority attribute.
The order of execution in .init_array is forward and
.fini_array is backward.
- 2: .ctors.NNNN/.ctors.NNNN: Where NNNN is 65535 minus the
+ 2: .ctors.NNNN/.dtors.NNNN: Where NNNN is 65535 minus the
decimal numerical value of the init_priority attribute.
The order of execution in .ctors is backward and .dtors
is forward.
@@ -1240,6 +1240,8 @@ lang_init (void)
void
lang_finish (void)
{
+ bfd_link_hash_table_free (link_info.output_bfd, link_info.hash);
+ bfd_hash_table_free (&lang_definedness_table);
output_section_statement_table_free ();
}
@@ -5817,9 +5819,6 @@ lang_end (void)
}
}
}
-
- /* Don't bfd_hash_table_free (&lang_definedness_table);
- map file output may result in a call of lang_track_definedness. */
}
/* This is a small function used when we want to ignore errors from