This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] MIPS ld: Fix global GOT symbol count for -Bsymbolic links
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Tue, 27 May 2003 03:33:08 +0200
- Subject: [PATCH] MIPS ld: Fix global GOT symbol count for -Bsymbolic links
Hello All,
this fixes a linker bug which distorts the global GOT symbol count
by counting some globals as forced local. It got only triggered in
-Bsymbolic links.
Thiemo
2003-05-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/bfd/ChangeLog
* elfxx-mips.c: Don't force symbols unconditionally.
--- source-orig/bfd/elfxx-mips.c Sun May 25 09:20:23 2003
+++ source/bfd/elfxx-mips.c Sun May 25 09:55:20 2003
@@ -7798,10 +7798,10 @@ _bfd_mips_elf_hide_symbol (info, entry,
h = (struct mips_elf_link_hash_entry *) entry;
if (h->forced_local)
return;
- h->forced_local = TRUE;
+ h->forced_local = force_local;
dynobj = elf_hash_table (info)->dynobj;
- if (dynobj != NULL)
+ if (dynobj != NULL && force_local)
{
got = mips_elf_got_section (dynobj, FALSE);
g = mips_elf_section_data (got)->u.got_info;