summaryrefslogtreecommitdiffstats
path: root/scripts/binutils-2.41.diff
blob: 363e9ca3618345eb4d78b0f2fe816e73bc865ed4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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 \