diff options
author | Chris Johns <chrisj@rtems.org> | 2012-04-25 10:12:19 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-04-25 10:12:19 +1000 |
commit | 673b40c95705127635af12bda15694fd6ab5a96b (patch) | |
tree | 5c243823cf495ba3702773f94b275a442ac218de /rtl-mdreloc-nios2.c |
Import the current project to git.
Diffstat (limited to 'rtl-mdreloc-nios2.c')
-rw-r--r-- | rtl-mdreloc-nios2.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/rtl-mdreloc-nios2.c b/rtl-mdreloc-nios2.c new file mode 100644 index 0000000..e96b3f6 --- /dev/null +++ b/rtl-mdreloc-nios2.c @@ -0,0 +1,46 @@ +/* + * Taken from NetBSD and stripped of the relocations not needed on RTEMS. + * + * $Id$ + */ + +/* $NetBSD: mdreloc.c,v 1.26 2010/01/14 11:58:32 skrll Exp $ */ + +#include <sys/cdefs.h> + +#include <errno.h> +#include <stdio.h> +#include <sys/types.h> +#include <sys/stat.h> + +#include <rtl.h> +#include "rtl-elf.h" +#include "rtl-error.h" +#include <rtl-trace.h> + +bool +rtems_rtl_elf_rel_resolve_sym (Elf_Word type) +{ + return true; +} + + +bool +rtems_rtl_elf_relocate_rela (rtems_rtl_obj_t* obj, + const Elf_Rela* rela, + rtems_rtl_obj_sect_t* sect, + Elf_Word symvalue) +{ + + return true; +} + +bool +rtems_rtl_elf_relocate_rel (rtems_rtl_obj_t* obj, + const Elf_Rel* rel, + rtems_rtl_obj_sect_t* sect, + Elf_Word symvalue) +{ + printf ("rtl: rel type record not supported; please report\n"); + return false; +} |