summaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-12-19 19:45:43 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-12-19 19:45:43 +0000
commitbb0ca68fd22d5bcaca337308d7752d19954ff335 (patch)
treef0e298310947206eb6cbe23f4b2d640cd832782e /bfd/elflink.c
parent9add293c895c9b62c74dc5a999029f14f72656cb (diff)
downloadbinutils-redhat-bb0ca68fd22d5bcaca337308d7752d19954ff335.tar.gz
Fix and use elf_append_rel
* elf32-i386.c (elf_i386_relocate_section): Replace bfd_elf32_swap_reloc_out with elf_append_rel. (elf_i386_finish_dynamic_symbol): Likewise. * elflink.c (elf_append_rel): Call swap_reloc_out instead of swap_reloca_out.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index f22e023df8..661b2eb196 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -13077,5 +13077,5 @@ elf_append_rel (bfd *abfd, asection *s, Elf_Internal_Rela *rel)
const struct elf_backend_data *bed = get_elf_backend_data (abfd);
bfd_byte *loc = s->contents + (s->reloc_count++ * bed->s->sizeof_rel);
BFD_ASSERT (loc + bed->s->sizeof_rel <= s->contents + s->size);
- bed->s->swap_reloca_out (abfd, rel, loc);
+ bed->s->swap_reloc_out (abfd, rel, loc);
}