aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2017-04-19 16:51:17 +0100
committerMaciej W. Rozycki <macro@imgtec.com>2017-04-20 16:21:24 +0100
commit64575f782b79e310852e43947bc1b06f24af388e (patch)
tree71dd70ef4cb73690419e566276af1a44c543c2ad
parent59fa66c53823dc695f78669f40ec2eebab3aec42 (diff)
downloadgdb-64575f782b79e310852e43947bc1b06f24af388e.zip
gdb-64575f782b79e310852e43947bc1b06f24af388e.tar.gz
gdb-64575f782b79e310852e43947bc1b06f24af388e.tar.bz2
MIPS/BFD: Reorder comment about dynamic symbol sorting
Move the comment about dynamic symbol sorting next to where it happens. bfd/ * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about dynamic symbol sorting.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfxx-mips.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 214d0a8..ae6cbf0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
+
+ * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about
+ dynamic symbol sorting.
+
2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
PR ld/21382
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 992ee06..8f6faad 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -14271,11 +14271,11 @@ _bfd_mips_elf_final_link (bfd *abfd, struct bfd_link_info *info)
scRData, scSData, scSBss, scBss
};
- /* Sort the dynamic symbols so that those with GOT entries come after
- those without. */
htab = mips_elf_hash_table (info);
BFD_ASSERT (htab != NULL);
+ /* Sort the dynamic symbols so that those with GOT entries come after
+ those without. */
if (!mips_elf_sort_hash_table (abfd, info))
return FALSE;