From 20842112b7c8604644c737bac058b4b06374793c Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sat, 15 Dec 2012 22:36:56 +1100 Subject: The REL and RELA handlers are backwards. Swap. --- rtl-mdreloc-i386.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/rtl-mdreloc-i386.c b/rtl-mdreloc-i386.c index 309498f..21cde5a 100644 --- a/rtl-mdreloc-i386.c +++ b/rtl-mdreloc-i386.c @@ -22,18 +22,6 @@ rtems_rtl_elf_rel_resolve_sym (Elf_Word type) return true; } -bool -rtems_rtl_elf_relocate_rel (const rtems_rtl_obj_t* obj, - const Elf_Rel* rel, - const rtems_rtl_obj_sect_t* sect, - const char* symname, - const Elf_Byte syminfo, - const Elf_Word symvalue) -{ - rtems_rtl_set_error (EINVAL, "rela type record not supported"); - return false; -} - bool rtems_rtl_elf_relocate_rela (const rtems_rtl_obj_t* obj, const Elf_Rela* rel, @@ -41,6 +29,18 @@ rtems_rtl_elf_relocate_rela (const rtems_rtl_obj_t* obj, const char* symname, const Elf_Byte syminfo, const Elf_Word symvalue) +{ + rtems_rtl_set_error (EINVAL, "rela type record not supported"); + return false; +} + +bool +rtems_rtl_elf_relocate_rel (const rtems_rtl_obj_t* obj, + const Elf_Rel* rel, + const rtems_rtl_obj_sect_t* sect, + const char* symname, + const Elf_Byte syminfo, + const Elf_Word symvalue) { Elf_Addr target = 0; Elf_Addr* where; -- cgit v1.2.3