new development tools

This commit is contained in:
2016-11-25 13:41:57 +00:00
parent 6cc262b43b
commit 1ba806ca1b
42 changed files with 2346 additions and 44 deletions

View File

@ -0,0 +1,7 @@
#ifdef BFD64
x86_64-*-jehanne*)
targ_defvec=x86_64_elf64_vec
targ_selvecs=i386_elf32_vec
want64=true
;;
#endif

View File

@ -0,0 +1,3 @@
i386-*-jehanne*) fmt=elf em=gnu ;;

View File

@ -0,0 +1,8 @@
eelf_i386_jehanne.c: $(srcdir)/emulparams/elf_i386_jehanne.sh \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386_jehanne "$(tdir_elf_i386_jehanne)"
eelf_x86_64_jehanne.c: $(srcdir)/emulparams/elf_x86_64_jehanne.sh \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_x86_64_jehanne "$(tdir_elf_x86_64_jehanne)"

View File

@ -0,0 +1,25 @@
diff --git a/src/binutils/ld/configure.tgt b/src/binutils/ld/configure.tgt
index 6b6bbf2..29b5f30 100644
--- a/src/binutils/ld/configure.tgt
+++ b/src/binutils/ld/configure.tgt
@@ -383,6 +383,9 @@ x86_64-*-nacl*) targ_emul=elf32_x86_64_nacl
targ_extra_libpath=$targ_extra_emuls
tdir_elf_i386_nacl=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
;;
+x86_64*-jehanne*) targ_emul=elf_x86_64_jehanne
+ targ_extra_emuls="elf_i386_jehanne elf_x86_64 elf_i386"
+ ;;
i860-*-coff) targ_emul=coff_i860 ;;
i860-stardent-sysv4* | i860-stardent-elf*)
targ_emul=elf32_i860
@@ -852,6 +855,10 @@ ia64-*-aix*)
NATIVE_LIB_DIRS='/usr/local/lib /usr/lib/ia64l64 /lib /usr/lib'
;;
+x86_64-*-jehanne*)
+ NATIVE_LIB_DIRS='/arch/amd64/lib'
+ ;;
+
sparc*-*-solaris2*)
NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
;;

View File

@ -0,0 +1,4 @@
. ${srcdir}/emulparams/elf_i386.sh
GENERATE_SHLIB_SCRIPT=
GENERATE_PIE_SCRIPT=yes
ENTRY=_main

View File

@ -0,0 +1,4 @@
. ${srcdir}/emulparams/elf_x86_64.sh
GENERATE_SHLIB_SCRIPT=
GENERATE_PIE_SCRIPT=yes
ENTRY=_main