From: Richard Sandiford Date: Mon, 30 Jun 2008 20:53:06 +0000 (+0000) Subject: bfd/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb53bf42a082f17d33763e1b338a5753b42b682b;p=binutils-gdb.git bfd/ * elf.c (_bfd_elf_get_synthetic_symtab): Increment p by bed->s->int_rels_per_ext_rel. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 015a40ca43b..fc4ac1f2258 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-06-30 Richard Sandiford + + * elf.c (_bfd_elf_get_synthetic_symtab): Increment p by + bed->s->int_rels_per_ext_rel. + 2008-06-30 Richard Sandiford * syms.c (BSF_SYNTHETIC): New flag. diff --git a/bfd/elf.c b/bfd/elf.c index c79c31111cd..28a593f347e 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;