Lines 1-6
Link Here
|
1 |
--- bfd/configure.orig 2019-10-12 13:58:20 UTC |
1 |
--- bfd/configure.orig 2020-09-19 10:17:17 UTC |
2 |
+++ bfd/configure |
2 |
+++ bfd/configure |
3 |
@@ -14860,6 +14860,7 @@ do |
3 |
@@ -14883,6 +14883,7 @@ do |
4 |
powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
4 |
powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
5 |
powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
5 |
powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
6 |
powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
6 |
powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
Lines 8-16
Link Here
|
8 |
powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; |
8 |
powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; |
9 |
powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; |
9 |
powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; |
10 |
powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;; |
10 |
powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;; |
11 |
--- bfd/configure.ac.orig 2019-09-09 13:19:43 UTC |
11 |
--- bfd/configure.ac.orig 2020-07-24 09:12:19 UTC |
12 |
+++ bfd/configure.ac |
12 |
+++ bfd/configure.ac |
13 |
@@ -596,6 +596,7 @@ do |
13 |
@@ -619,6 +619,7 @@ do |
14 |
powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
14 |
powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
15 |
powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
15 |
powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
16 |
powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
16 |
powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
Lines 18-26
Link Here
|
18 |
powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; |
18 |
powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; |
19 |
powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; |
19 |
powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; |
20 |
powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;; |
20 |
powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;; |
21 |
--- bfd/elf64-ppc.c.orig 2019-10-09 07:16:05 UTC |
21 |
--- bfd/elf64-ppc.c.orig 2020-09-11 08:19:09 UTC |
22 |
+++ bfd/elf64-ppc.c |
22 |
+++ bfd/elf64-ppc.c |
23 |
@@ -16979,7 +16979,9 @@ ppc64_elf_finish_dynamic_sections (bfd *output_bfd, |
23 |
@@ -17594,7 +17594,9 @@ ppc64_elf_finish_dynamic_sections (bfd *output_bfd, |
24 |
/* FreeBSD support */ |
24 |
/* FreeBSD support */ |
25 |
|
25 |
|
26 |
#undef TARGET_LITTLE_SYM |
26 |
#undef TARGET_LITTLE_SYM |
Lines 30-38
Link Here
|
30 |
|
30 |
|
31 |
#undef TARGET_BIG_SYM |
31 |
#undef TARGET_BIG_SYM |
32 |
#define TARGET_BIG_SYM powerpc_elf64_fbsd_vec |
32 |
#define TARGET_BIG_SYM powerpc_elf64_fbsd_vec |
33 |
--- bfd/targets.c.orig 2019-09-09 13:19:43 UTC |
33 |
--- bfd/targets.c.orig 2020-07-24 09:12:19 UTC |
34 |
+++ bfd/targets.c |
34 |
+++ bfd/targets.c |
35 |
@@ -764,6 +764,7 @@ extern const bfd_target powerpc_elf32_vxworks_vec; |
35 |
@@ -838,6 +838,7 @@ extern const bfd_target powerpc_elf32_vxworks_vec; |
36 |
extern const bfd_target powerpc_elf64_vec; |
36 |
extern const bfd_target powerpc_elf64_vec; |
37 |
extern const bfd_target powerpc_elf64_le_vec; |
37 |
extern const bfd_target powerpc_elf64_le_vec; |
38 |
extern const bfd_target powerpc_elf64_fbsd_vec; |
38 |
extern const bfd_target powerpc_elf64_fbsd_vec; |
Lines 40-46
Link Here
|
40 |
extern const bfd_target powerpc_pe_vec; |
40 |
extern const bfd_target powerpc_pe_vec; |
41 |
extern const bfd_target powerpc_pe_le_vec; |
41 |
extern const bfd_target powerpc_pe_le_vec; |
42 |
extern const bfd_target powerpc_pei_vec; |
42 |
extern const bfd_target powerpc_pei_vec; |
43 |
@@ -1158,6 +1159,7 @@ static const bfd_target * const _bfd_target_vector[] = |
43 |
@@ -1228,6 +1229,7 @@ static const bfd_target * const _bfd_target_vector[] = |
44 |
&powerpc_elf64_vec, |
44 |
&powerpc_elf64_vec, |
45 |
&powerpc_elf64_le_vec, |
45 |
&powerpc_elf64_le_vec, |
46 |
&powerpc_elf64_fbsd_vec, |
46 |
&powerpc_elf64_fbsd_vec, |
Lines 48-56
Link Here
|
48 |
#endif |
48 |
#endif |
49 |
&powerpc_pe_vec, |
49 |
&powerpc_pe_vec, |
50 |
&powerpc_pe_le_vec, |
50 |
&powerpc_pe_le_vec, |
51 |
--- ld/Makefile.am.orig 2019-09-09 13:19:44 UTC |
51 |
--- gas/config/tc-ppc.c.orig 2020-07-24 09:12:19 UTC |
|
|
52 |
+++ gas/config/tc-ppc.c |
53 |
@@ -1566,7 +1566,9 @@ ppc_target_format (void) |
54 |
#endif |
55 |
#ifdef OBJ_ELF |
56 |
# ifdef TE_FreeBSD |
57 |
- return (ppc_obj64 ? "elf64-powerpc-freebsd" : "elf32-powerpc-freebsd"); |
58 |
+ return (target_big_endian |
59 |
+ ? (ppc_obj64 ? "elf64-powerpc-freebsd" : "elf32-powerpc-freebsd") |
60 |
+ : (ppc_obj64 ? "elf64-powerpcle-freebsd" : "elf32-powerpcle-freebsd")); |
61 |
# elif defined (TE_VXWORKS) |
62 |
return "elf32-powerpc-vxworks"; |
63 |
# else |
64 |
--- ld/Makefile.am.orig 2020-07-24 09:12:20 UTC |
52 |
+++ ld/Makefile.am |
65 |
+++ ld/Makefile.am |
53 |
@@ -439,6 +439,7 @@ ALL_64_EMULATION_SOURCES = \ |
66 |
@@ -433,6 +433,7 @@ ALL_64_EMULATION_SOURCES = \ |
54 |
eelf64btsmip_fbsd.c \ |
67 |
eelf64btsmip_fbsd.c \ |
55 |
eelf64hppa.c \ |
68 |
eelf64hppa.c \ |
56 |
eelf64lppc.c \ |
69 |
eelf64lppc.c \ |
Lines 58-64
Link Here
|
58 |
eelf64lriscv.c \ |
71 |
eelf64lriscv.c \ |
59 |
eelf64lriscv_lp64f.c \ |
72 |
eelf64lriscv_lp64f.c \ |
60 |
eelf64lriscv_lp64.c \ |
73 |
eelf64lriscv_lp64.c \ |
61 |
@@ -924,6 +925,7 @@ $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES): |
74 |
@@ -915,6 +916,7 @@ $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES): |
62 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64btsmip_fbsd.Pc@am__quote@ |
75 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64btsmip_fbsd.Pc@am__quote@ |
63 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64hppa.Pc@am__quote@ |
76 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64hppa.Pc@am__quote@ |
64 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lppc.Pc@am__quote@ |
77 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lppc.Pc@am__quote@ |
Lines 66-74
Link Here
|
66 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv.Pc@am__quote@ |
79 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv.Pc@am__quote@ |
67 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64f.Pc@am__quote@ |
80 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64f.Pc@am__quote@ |
68 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64.Pc@am__quote@ |
81 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64.Pc@am__quote@ |
69 |
--- ld/Makefile.in.orig 2019-10-12 13:59:42 UTC |
82 |
--- ld/Makefile.in.orig 2020-09-19 10:21:33 UTC |
70 |
+++ ld/Makefile.in |
83 |
+++ ld/Makefile.in |
71 |
@@ -925,6 +925,7 @@ ALL_64_EMULATION_SOURCES = \ |
84 |
@@ -915,6 +915,7 @@ ALL_64_EMULATION_SOURCES = \ |
72 |
eelf64btsmip_fbsd.c \ |
85 |
eelf64btsmip_fbsd.c \ |
73 |
eelf64hppa.c \ |
86 |
eelf64hppa.c \ |
74 |
eelf64lppc.c \ |
87 |
eelf64lppc.c \ |
Lines 76-82
Link Here
|
76 |
eelf64lriscv.c \ |
89 |
eelf64lriscv.c \ |
77 |
eelf64lriscv_lp64f.c \ |
90 |
eelf64lriscv_lp64f.c \ |
78 |
eelf64lriscv_lp64.c \ |
91 |
eelf64lriscv_lp64.c \ |
79 |
@@ -1365,6 +1366,7 @@ distclean-compile: |
92 |
@@ -1355,6 +1356,7 @@ distclean-compile: |
80 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64btsmip_fbsd.Po@am__quote@ |
93 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64btsmip_fbsd.Po@am__quote@ |
81 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64hppa.Po@am__quote@ |
94 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64hppa.Po@am__quote@ |
82 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lppc.Po@am__quote@ |
95 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lppc.Po@am__quote@ |
Lines 84-90
Link Here
|
84 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv.Po@am__quote@ |
97 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv.Po@am__quote@ |
85 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64.Po@am__quote@ |
98 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64.Po@am__quote@ |
86 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64f.Po@am__quote@ |
99 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64f.Po@am__quote@ |
87 |
@@ -2525,6 +2527,7 @@ $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES): |
100 |
@@ -2510,6 +2512,7 @@ $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES): |
88 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64btsmip_fbsd.Pc@am__quote@ |
101 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64btsmip_fbsd.Pc@am__quote@ |
89 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64hppa.Pc@am__quote@ |
102 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64hppa.Pc@am__quote@ |
90 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lppc.Pc@am__quote@ |
103 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lppc.Pc@am__quote@ |
Lines 92-98
Link Here
|
92 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv.Pc@am__quote@ |
105 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv.Pc@am__quote@ |
93 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64f.Pc@am__quote@ |
106 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64f.Pc@am__quote@ |
94 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64.Pc@am__quote@ |
107 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64lriscv_lp64.Pc@am__quote@ |
95 |
--- ld/emulparams/elf64lppc_fbsd.sh.orig 2020-11-02 22:40:06 UTC |
108 |
--- ld/emulparams/elf64lppc_fbsd.sh.orig 2020-11-25 16:03:32 UTC |
96 |
+++ ld/emulparams/elf64lppc_fbsd.sh |
109 |
+++ ld/emulparams/elf64lppc_fbsd.sh |
97 |
@@ -0,0 +1,6 @@ |
110 |
@@ -0,0 +1,6 @@ |
98 |
+source_sh ${srcdir}/emulparams/elf64lppc.sh |
111 |
+source_sh ${srcdir}/emulparams/elf64lppc.sh |
Lines 101-109
Link Here
|
101 |
+OUTPUT_FORMAT="elf64-powerpcle-freebsd" |
114 |
+OUTPUT_FORMAT="elf64-powerpcle-freebsd" |
102 |
+DEFAULT_PLT_STATIC_CHAIN=1 |
115 |
+DEFAULT_PLT_STATIC_CHAIN=1 |
103 |
+ |
116 |
+ |
104 |
--- ld/po/BLD-POTFILES.in.orig 2019-10-12 14:01:44 UTC |
117 |
--- ld/po/BLD-POTFILES.in.orig 2020-09-19 10:21:37 UTC |
105 |
+++ ld/po/BLD-POTFILES.in |
118 |
+++ ld/po/BLD-POTFILES.in |
106 |
@@ -179,6 +179,7 @@ eelf64btsmip.c |
119 |
@@ -177,6 +177,7 @@ eelf64btsmip.c |
107 |
eelf64btsmip_fbsd.c |
120 |
eelf64btsmip_fbsd.c |
108 |
eelf64hppa.c |
121 |
eelf64hppa.c |
109 |
eelf64lppc.c |
122 |
eelf64lppc.c |
Lines 111-139
Link Here
|
111 |
eelf64lriscv.c |
124 |
eelf64lriscv.c |
112 |
eelf64lriscv_lp64.c |
125 |
eelf64lriscv_lp64.c |
113 |
eelf64lriscv_lp64f.c |
126 |
eelf64lriscv_lp64f.c |
114 |
--- ld/configure.tgt.orig 2020-11-02 23:58:35.109766000 +0100 |
|
|
115 |
+++ ld/configure.tgt 2020-11-02 23:59:34.659606000 +0100 |
116 |
@@ -544,6 +544,10 @@ |
117 |
tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'` |
118 |
tdir_elf32ppc_fbsd=$tdir_elf32ppc |
119 |
;; |
120 |
+powerpc64le-*-freebsd*) |
121 |
+ targ_emul=elf64lppc_fbsd |
122 |
+ targ_extra_emuls="elf64ppc" |
123 |
+ ;; |
124 |
powerpc-*-vxworks*) |
125 |
targ_emul=elf32ppcvxworks |
126 |
targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" ;; |
127 |
--- gas/config/tc-ppc.c.orig 2020-11-03 12:21:04.587127000 +0100 |
128 |
+++ gas/config/tc-ppc.c 2020-11-03 12:21:33.039193000 +0100 |
129 |
@@ -1554,7 +1554,9 @@ |
130 |
#endif |
131 |
#ifdef OBJ_ELF |
132 |
# ifdef TE_FreeBSD |
133 |
- return (ppc_obj64 ? "elf64-powerpc-freebsd" : "elf32-powerpc-freebsd"); |
134 |
+ return (target_big_endian |
135 |
+ ? (ppc_obj64 ? "elf64-powerpc-freebsd" : "elf32-powerpc-freebsd") |
136 |
+ : (ppc_obj64 ? "elf64-powerpcle-freebsd" : "elf32-powerpcle-freebsd")); |
137 |
# elif defined (TE_VXWORKS) |
138 |
return "elf32-powerpc-vxworks"; |
139 |
# else |