From 50392995d6e7f3a10fb74bb2f9073a4790f8933c Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Mon, 11 Mar 2024 21:40:28 -0400 Subject: simple env with basic test init program --- scripts/binutils-2.41.diff | 78 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 scripts/binutils-2.41.diff (limited to 'scripts/binutils-2.41.diff') diff --git a/scripts/binutils-2.41.diff b/scripts/binutils-2.41.diff new file mode 100644 index 0000000..363e9ca --- /dev/null +++ b/scripts/binutils-2.41.diff @@ -0,0 +1,78 @@ +diff -rNau binutils-2.41/bfd/config.bfd binutils-2.41-patched/bfd/config.bfd +--- binutils-2.41/bfd/config.bfd 2023-07-02 19:00:00.000000000 -0400 ++++ binutils-2.41-patched/bfd/config.bfd 2024-03-10 23:19:47.522036207 -0400 +@@ -714,6 +714,13 @@ + targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_pei_vec x86_64_pe_vec x86_64_pei_vec" + want64=true + ;; ++#ifdef BFD64 ++ x86_64-*-jove*) ++ targ_defvec=x86_64_elf64_vec ++ targ_selvecs=i386_elf32_vec ++ want64=true ++ ;; ++#endif + x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin) + targ_defvec=x86_64_pe_vec + targ_selvecs="x86_64_pe_vec x86_64_pei_vec x86_64_pe_big_vec x86_64_elf64_vec i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec pdb_vec" +diff -rNau binutils-2.41/config.sub binutils-2.41-patched/config.sub +--- binutils-2.41/config.sub 2023-07-02 19:00:00.000000000 -0400 ++++ binutils-2.41-patched/config.sub 2024-03-10 23:33:30.546506756 -0400 +@@ -1758,7 +1758,7 @@ + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ + | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ +- | fiwix* | mlibc* ) ++ | fiwix* | mlibc* | jove* ) + ;; + # This one is extra strict with allowed versions + sco3.2v2 | sco3.2v[4-9]* | sco5v6*) +diff -rNau binutils-2.41/gas/configure.tgt binutils-2.41-patched/gas/configure.tgt +--- binutils-2.41/gas/configure.tgt 2023-07-02 19:00:00.000000000 -0400 ++++ binutils-2.41-patched/gas/configure.tgt 2024-03-10 23:22:33.351797968 -0400 +@@ -231,6 +231,7 @@ + i386-*-haiku*) fmt=elf em=haiku ;; + i386-*-genode*) fmt=elf ;; + i386-*-bsd*) fmt=aout em=386bsd ;; ++ i386-*-jove*) fmt=elf ;; + i386-*-netbsd*-gnu* | \ + i386-*-knetbsd*-gnu | \ + i386-*-netbsd* | \ +diff -rNau binutils-2.41/ld/configure.tgt binutils-2.41-patched/ld/configure.tgt +--- binutils-2.41/ld/configure.tgt 2023-07-02 19:00:00.000000000 -0400 ++++ binutils-2.41-patched/ld/configure.tgt 2024-03-10 23:24:16.838998259 -0400 +@@ -1053,6 +1053,9 @@ + targ_extra_ofiles="deffilep.o pdb.o pep-dll.o pe-dll.o" + test "$targ" != "$host" && LIB_PATH='${tooldir}/lib/w32api' + ;; ++x86_64-*-jove*) targ_emul=elf_x86_64_jove ++ targ_extra_emuls="elf_x86_64" ++ ;; + x86_64-*-mingw*) targ_emul=i386pep ; + targ_extra_emuls=i386pe + targ_extra_ofiles="deffilep.o pdb.o pep-dll.o pe-dll.o" +diff -rNau binutils-2.41/ld/emulparams/elf_x86_64_jove.sh binutils-2.41-patched/ld/emulparams/elf_x86_64_jove.sh +--- binutils-2.41/ld/emulparams/elf_x86_64_jove.sh 1969-12-31 19:00:00.000000000 -0500 ++++ binutils-2.41-patched/ld/emulparams/elf_x86_64_jove.sh 2024-03-10 23:25:24.152469179 -0400 +@@ -0,0 +1 @@ ++source_sh ${srcdir}/emulparams/elf_x86_64.sh +diff -rNau binutils-2.41/ld/Makefile.am binutils-2.41-patched/ld/Makefile.am +--- binutils-2.41/ld/Makefile.am 2023-07-02 19:00:00.000000000 -0400 ++++ binutils-2.41-patched/ld/Makefile.am 2024-03-10 23:26:41.812851367 -0400 +@@ -951,6 +951,7 @@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64tilegx_be.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_mipsel_haiku.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64.Pc@am__quote@ ++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_jove.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_cloudabi.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_fbsd.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_haiku.Pc@am__quote@ +@@ -455,6 +455,7 @@ + eelf64tilegx_be.c \ + eelf_mipsel_haiku.c \ + eelf_x86_64.c \ ++ eelf_x86_64_jove.c \ + eelf_x86_64_cloudabi.c \ + eelf_x86_64_fbsd.c \ + eelf_x86_64_haiku.c \ + -- cgit v1.2.1