aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-09-18 20:34:30 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-09-18 20:34:30 +0000
commit0abfb97a2187fda8e86178172eb7d9dc13ebb180 (patch)
tree4a287b1ed21cea895d263d85b1137c45a5750ff8
parent8c60465154ed694fac2531f65e7ca1ae51093174 (diff)
downloadgdb-0abfb97a2187fda8e86178172eb7d9dc13ebb180.zip
gdb-0abfb97a2187fda8e86178172eb7d9dc13ebb180.tar.gz
gdb-0abfb97a2187fda8e86178172eb7d9dc13ebb180.tar.bz2
Revert accidental checkin.
-rw-r--r--bfd/elfxx-mips.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 00c3b8e..3a1c8ba 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -6962,23 +6962,22 @@ _bfd_mips_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
the _r_debug structure. Its symbol value will be set in
_bfd_mips_elf_finish_dynamic_symbol. */
s = bfd_get_section_by_name (abfd, ".rld_map");
- if (s != NULL)
- {
- name = SGI_COMPAT (abfd) ? "__rld_map" : "__RLD_MAP";
- bh = NULL;
- if (!(_bfd_generic_link_add_one_symbol
- (info, abfd, name, BSF_GLOBAL, s, 0, NULL, FALSE,
- get_elf_backend_data (abfd)->collect, &bh)))
- return FALSE;
+ BFD_ASSERT (s != NULL);
- h = (struct elf_link_hash_entry *) bh;
- h->non_elf = 0;
- h->def_regular = 1;
- h->type = STT_OBJECT;
+ name = SGI_COMPAT (abfd) ? "__rld_map" : "__RLD_MAP";
+ bh = NULL;
+ if (!(_bfd_generic_link_add_one_symbol
+ (info, abfd, name, BSF_GLOBAL, s, 0, NULL, FALSE,
+ get_elf_backend_data (abfd)->collect, &bh)))
+ return FALSE;
- if (! bfd_elf_link_record_dynamic_symbol (info, h))
- return FALSE;
- }
+ h = (struct elf_link_hash_entry *) bh;
+ h->non_elf = 0;
+ h->def_regular = 1;
+ h->type = STT_OBJECT;
+
+ if (! bfd_elf_link_record_dynamic_symbol (info, h))
+ return FALSE;
}
}