aboutsummaryrefslogtreecommitdiff
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
commit59d6ffb2c9f99611fd9942516c434215f560d9ce (patch)
tree45581f0a6d6aa1396ffed907698da431eb1d7af5 /bfd/elflink.c
parent13ca314985e8d50c15a7f147e768581737847f3c (diff)
downloadgdb-59d6ffb2c9f99611fd9942516c434215f560d9ce.zip
gdb-59d6ffb2c9f99611fd9942516c434215f560d9ce.tar.gz
gdb-59d6ffb2c9f99611fd9942516c434215f560d9ce.tar.bz2
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 f22e023..661b2eb 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);
}