summaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2013-02-11 17:40:51 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2013-02-11 17:40:51 +0000
commitbfa21b960babdd88200e358810657e10dfab3683 (patch)
tree36434621af8b7a408dd8add07b94060b6f0776c7 /bfd/elfxx-mips.c
parentfba798d749920fd37e2c9619f08910155613ea3d (diff)
downloadbinutils-redhat-bfa21b960babdd88200e358810657e10dfab3683.tar.gz
bfd/
* elfxx-mips.c (mips_elf_record_local_got_symbol): Always set gotidx to -1.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 07546babce..3ed4596baa 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -3777,9 +3777,9 @@ mips_elf_record_local_got_symbol (bfd *abfd, long symndx, bfd_vma addend,
return TRUE;
}
+ entry.gotidx = -1;
if (tls_flag != 0)
{
- entry.gotidx = -1;
entry.tls_type = tls_flag;
if (tls_flag == GOT_TLS_IE)
g->tls_gotno += 1;
@@ -3793,7 +3793,7 @@ mips_elf_record_local_got_symbol (bfd *abfd, long symndx, bfd_vma addend,
}
else
{
- entry.gotidx = g->local_gotno++;
+ g->local_gotno += 1;
entry.tls_type = 0;
}