summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-12-15 22:36:56 +1100
committerChris Johns <chrisj@rtems.org>2012-12-15 22:36:56 +1100
commit20842112b7c8604644c737bac058b4b06374793c (patch)
treefdca14f1c14d710a28657bf6bf4e640dd352606a
parentea12491cdf8abdff4de04a930b7a20ced3fd4e2c (diff)
The REL and RELA handlers are backwards. Swap.
-rw-r--r--rtl-mdreloc-i386.c24
1 files 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
@@ -23,18 +23,6 @@ rtems_rtl_elf_rel_resolve_sym (Elf_Word type)
}
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,
const rtems_rtl_obj_sect_t* sect,
@@ -42,6 +30,18 @@ rtems_rtl_elf_relocate_rela (const rtems_rtl_obj_t* obj,
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;
Elf_Addr tmp;