diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2004-09-07 22:37:52 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2004-09-07 22:37:52 +0000 |
commit | 5e0f5ae3dc0e9c0cef6ffd13c80ba1b658d36d22 (patch) | |
tree | 6e3cd732ca9c6893cc5d9f1cc4f045a5bb14367c | |
parent | 1f04aa626601752ffbb4af60a478a1f1e8e0ad6b (diff) | |
download | gdb-5e0f5ae3dc0e9c0cef6ffd13c80ba1b658d36d22.zip gdb-5e0f5ae3dc0e9c0cef6ffd13c80ba1b658d36d22.tar.gz gdb-5e0f5ae3dc0e9c0cef6ffd13c80ba1b658d36d22.tar.bz2 |
* elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
h->gotplt_refcount to 0, not -1.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-cris.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d74e8fe..ec7f060 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-09-08 Hans-Peter Nilsson <hp@axis.com> + + * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset + h->gotplt_refcount to 0, not -1. + 2004-09-07 Hans-Peter Nilsson <hp@axis.com> * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT, diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index aedf774..ae8b3d2 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -1916,7 +1916,7 @@ elf_cris_adjust_gotplt_to_got (h, p) Probably not necessary at this stage, but keeping it accurate helps avoiding surprises later. */ h->root.got.refcount += h->gotplt_refcount; - h->gotplt_refcount = -1; + h->gotplt_refcount = 0; } else { @@ -1928,7 +1928,7 @@ elf_cris_adjust_gotplt_to_got (h, p) /* Put an accurate refcount there. */ h->root.got.refcount = h->gotplt_refcount; - h->gotplt_refcount = -1; + h->gotplt_refcount = 0; /* We always have a .got and a .rela.got section if there were GOTPLT relocs in input. */ |