This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] MIPS/BFD: Reorder comment about dynamic symbol sorting
- From: Maciej W.Rozycki <macro at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 20 Apr 2017 15:35:12 -0000
- Subject: [binutils-gdb] MIPS/BFD: Reorder comment about dynamic symbol sorting
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=64575f782b79e310852e43947bc1b06f24af388e
commit 64575f782b79e310852e43947bc1b06f24af388e
Author: Maciej W. Rozycki <macro@imgtec.com>
Date: Wed Apr 19 16:51:17 2017 +0100
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.
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/elfxx-mips.c | 4 ++--
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;