aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-06-30 20:53:06 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2008-06-30 20:53:06 +0000
commitcb53bf42a082f17d33763e1b338a5753b42b682b (patch)
treec0d153d6337cf004f01fc5e2a204e647322cdc9c /bfd/elf.c
parent6ba2a41553ce33bc63e4ee1beef0ff1193e3ed70 (diff)
downloadgdb-cb53bf42a082f17d33763e1b338a5753b42b682b.zip
gdb-cb53bf42a082f17d33763e1b338a5753b42b682b.tar.gz
gdb-cb53bf42a082f17d33763e1b338a5753b42b682b.tar.bz2
bfd/
* elf.c (_bfd_elf_get_synthetic_symtab): Increment p by bed->s->int_rels_per_ext_rel.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index c79c311..28a593f 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -8761,7 +8761,7 @@ _bfd_elf_get_synthetic_symtab (bfd *abfd,
count = relplt->size / hdr->sh_entsize;
size = count * sizeof (asymbol);
p = relplt->relocation;
- for (i = 0; i < count; i++, p++)
+ for (i = 0; i < count; i++, p += bed->s->int_rels_per_ext_rel)
size += strlen ((*p->sym_ptr_ptr)->name) + sizeof ("@plt");
s = *ret = bfd_malloc (size);
@@ -8771,7 +8771,7 @@ _bfd_elf_get_synthetic_symtab (bfd *abfd,
names = (char *) (s + count);
p = relplt->relocation;
n = 0;
- for (i = 0; i < count; i++, p++)
+ for (i = 0; i < count; i++, p += bed->s->int_rels_per_ext_rel)
{
size_t len;
bfd_vma addr;