diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2013-02-11 17:40:51 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2013-02-11 17:40:51 +0000 |
commit | 946c668d8929aa9a4c8facd854ef014e57170275 (patch) | |
tree | 22278926b98bf39604340c5712e5dcdbf679c644 | |
parent | 59b089943c568c6245f8c87e06f57a4fccdcca58 (diff) | |
download | gdb-946c668d8929aa9a4c8facd854ef014e57170275.zip gdb-946c668d8929aa9a4c8facd854ef014e57170275.tar.gz gdb-946c668d8929aa9a4c8facd854ef014e57170275.tar.bz2 |
bfd/
* elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
gotidx to -1.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elfxx-mips.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 51232de..326207a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com> + * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set + gotidx to -1. + +2013-02-11 Richard Sandiford <rdsandiford@googlemail.com> + * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation. 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com> diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 07546ba..3ed4596 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; } |