summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-02-20 19:12:48 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-24 10:31:48 +0000
commit6ccc45aed52787bda9b4349ed450cc3b6fec3f1f (patch)
treee15cd922a3e158185f435167de923eab9d604c16 /meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch
parent06a1b9be8a681a507678af58537320f6a127099f (diff)
downloadpoky-6ccc45aed52787bda9b4349ed450cc3b6fec3f1f.tar.gz
binutils: Upgrade to 2.30 release
Additionally cherry-pick 5ffeba4a09 Revert "PowerPC PLT speculative execution barriers" b01452b1d4 [PR22764][LD][AARCH64]Allow R_AARCH64_ABS16 and R_AARCH64_ABS32 against absolution symbol or undefine symbol in shared object. a985e9b9de Import patch from mainline to remove PROVODE qualifiers around definitions of __CTOR_LIST__ and __DTOR_LIST__ in PE linker scripts. eec4607fc5 Add support for DWARF-4 line number tables. (From OE-Core rev: c708506eb9dbb4b817f563fbaacb80eee0b5b301) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch70
1 files changed, 35 insertions, 35 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch b/meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch
index dc5e580739..1fefb680f8 100644
--- a/meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch
+++ b/meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch
@@ -1,4 +1,4 @@
1From 8c60a55d3678589d93739bd27fec216911d80968 Mon Sep 17 00:00:00 2001 1From 3b40bf584615f794b85fd50d4d0a5c0a1d2ee7bf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 14 Feb 2016 17:06:19 +0000 3Date: Sun, 14 Feb 2016 17:06:19 +0000
4Subject: [PATCH 12/15] Add support for Netlogic XLP 4Subject: [PATCH 12/15] Add support for Netlogic XLP
@@ -34,7 +34,7 @@ Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
34 14 files changed, 61 insertions(+), 21 deletions(-) 34 14 files changed, 61 insertions(+), 21 deletions(-)
35 35
36diff --git a/bfd/aoutx.h b/bfd/aoutx.h 36diff --git a/bfd/aoutx.h b/bfd/aoutx.h
37index 3d38fda14b..0aec49bbb3 100644 37index eec9c4ad2a..3bf0a71e63 100644
38--- a/bfd/aoutx.h 38--- a/bfd/aoutx.h
39+++ b/bfd/aoutx.h 39+++ b/bfd/aoutx.h
40@@ -814,6 +814,7 @@ NAME (aout, machine_type) (enum bfd_architecture arch, 40@@ -814,6 +814,7 @@ NAME (aout, machine_type) (enum bfd_architecture arch,
@@ -46,34 +46,34 @@ index 3d38fda14b..0aec49bbb3 100644
46 arch_flags = M_MIPS2; 46 arch_flags = M_MIPS2;
47 break; 47 break;
48diff --git a/bfd/archures.c b/bfd/archures.c 48diff --git a/bfd/archures.c b/bfd/archures.c
49index 433b95fa08..063b7943a1 100644 49index e83c57a2f3..3016ea1bae 100644
50--- a/bfd/archures.c 50--- a/bfd/archures.c
51+++ b/bfd/archures.c 51+++ b/bfd/archures.c
52@@ -201,6 +201,7 @@ DESCRIPTION 52@@ -201,6 +201,7 @@ DESCRIPTION
53 .#define bfd_mach_mips_octeon3 6503 53 .#define bfd_mach_mips_octeon3 6503
54 .#define bfd_mach_mips_xlr 887682 {* decimal 'XLR' *} 54 .#define bfd_mach_mips_xlr 887682 {* decimal 'XLR'. *}
55 .#define bfd_mach_mips_interaptiv_mr2 736550 {* decimal 'IA2' *} 55 .#define bfd_mach_mips_interaptiv_mr2 736550 {* decimal 'IA2'. *}
56+.#define bfd_mach_mips_xlp 887680 {* decimal 'XLP' *} 56+.#define bfd_mach_mips_xlp 887680 {* decimal 'XLP'. *}
57 .#define bfd_mach_mipsisa32 32 57 .#define bfd_mach_mipsisa32 32
58 .#define bfd_mach_mipsisa32r2 33 58 .#define bfd_mach_mipsisa32r2 33
59 .#define bfd_mach_mipsisa32r3 34 59 .#define bfd_mach_mipsisa32r3 34
60diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h 60diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
61index d126aed086..2b753b3a93 100644 61index 42991e7848..27abc5d5a8 100644
62--- a/bfd/bfd-in2.h 62--- a/bfd/bfd-in2.h
63+++ b/bfd/bfd-in2.h 63+++ b/bfd/bfd-in2.h
64@@ -2060,6 +2060,7 @@ enum bfd_architecture 64@@ -2062,6 +2062,7 @@ enum bfd_architecture
65 #define bfd_mach_mips_octeon3 6503 65 #define bfd_mach_mips_octeon3 6503
66 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */ 66 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR'. */
67 #define bfd_mach_mips_interaptiv_mr2 736550 /* decimal 'IA2' */ 67 #define bfd_mach_mips_interaptiv_mr2 736550 /* decimal 'IA2'. */
68+#define bfd_mach_mips_xlp 887680 /* decimal 'XLP' */ 68+#define bfd_mach_mips_xlp 887680 /* decimal 'XLP'. */
69 #define bfd_mach_mipsisa32 32 69 #define bfd_mach_mipsisa32 32
70 #define bfd_mach_mipsisa32r2 33 70 #define bfd_mach_mipsisa32r2 33
71 #define bfd_mach_mipsisa32r3 34 71 #define bfd_mach_mipsisa32r3 34
72diff --git a/bfd/config.bfd b/bfd/config.bfd 72diff --git a/bfd/config.bfd b/bfd/config.bfd
73index 4511024f22..f0f9072f10 100644 73index 8777f96bd2..7b80bda8c9 100644
74--- a/bfd/config.bfd 74--- a/bfd/config.bfd
75+++ b/bfd/config.bfd 75+++ b/bfd/config.bfd
76@@ -1169,6 +1169,11 @@ case "${targ}" in 76@@ -1172,6 +1172,11 @@ case "${targ}" in
77 targ_defvec=mips_elf32_le_vec 77 targ_defvec=mips_elf32_le_vec
78 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec" 78 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
79 ;; 79 ;;
@@ -86,7 +86,7 @@ index 4511024f22..f0f9072f10 100644
86 targ_defvec=mips_elf32_be_vec 86 targ_defvec=mips_elf32_be_vec
87 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec" 87 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
88diff --git a/bfd/cpu-mips.c b/bfd/cpu-mips.c 88diff --git a/bfd/cpu-mips.c b/bfd/cpu-mips.c
89index 2493094bef..8375d1ae96 100644 89index cb50c64371..2b9d1d6ecf 100644
90--- a/bfd/cpu-mips.c 90--- a/bfd/cpu-mips.c
91+++ b/bfd/cpu-mips.c 91+++ b/bfd/cpu-mips.c
92@@ -105,7 +105,8 @@ enum 92@@ -105,7 +105,8 @@ enum
@@ -100,7 +100,7 @@ index 2493094bef..8375d1ae96 100644
100 100
101 #define NN(index) (&arch_info_struct[(index) + 1]) 101 #define NN(index) (&arch_info_struct[(index) + 1])
102@@ -158,7 +159,8 @@ static const bfd_arch_info_type arch_info_struct[] = 102@@ -158,7 +159,8 @@ static const bfd_arch_info_type arch_info_struct[] =
103 N (64, 64, bfd_mach_mips_xlr, "mips:xlr", FALSE, NN(I_xlr)), 103 N (64, 64, bfd_mach_mips_xlr, "mips:xlr", FALSE, NN(I_xlr)),
104 N (32, 32, bfd_mach_mips_interaptiv_mr2, "mips:interaptiv-mr2", FALSE, 104 N (32, 32, bfd_mach_mips_interaptiv_mr2, "mips:interaptiv-mr2", FALSE,
105 NN(I_interaptiv_mr2)), 105 NN(I_interaptiv_mr2)),
106- N (64, 64, bfd_mach_mips_micromips,"mips:micromips",FALSE,0) 106- N (64, 64, bfd_mach_mips_micromips,"mips:micromips",FALSE,0)
@@ -110,10 +110,10 @@ index 2493094bef..8375d1ae96 100644
110 110
111 /* The default architecture is mips:3000, but with a machine number of 111 /* The default architecture is mips:3000, but with a machine number of
112diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c 112diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
113index fddf68c816..354c85d00b 100644 113index 285401367d..14ebb5f175 100644
114--- a/bfd/elfxx-mips.c 114--- a/bfd/elfxx-mips.c
115+++ b/bfd/elfxx-mips.c 115+++ b/bfd/elfxx-mips.c
116@@ -6796,6 +6796,9 @@ _bfd_elf_mips_mach (flagword flags) 116@@ -6806,6 +6806,9 @@ _bfd_elf_mips_mach (flagword flags)
117 case E_MIPS_MACH_IAMR2: 117 case E_MIPS_MACH_IAMR2:
118 return bfd_mach_mips_interaptiv_mr2; 118 return bfd_mach_mips_interaptiv_mr2;
119 119
@@ -123,7 +123,7 @@ index fddf68c816..354c85d00b 100644
123 default: 123 default:
124 switch (flags & EF_MIPS_ARCH) 124 switch (flags & EF_MIPS_ARCH)
125 { 125 {
126@@ -11956,6 +11959,10 @@ mips_set_isa_flags (bfd *abfd) 126@@ -11963,6 +11966,10 @@ mips_set_isa_flags (bfd *abfd)
127 val = E_MIPS_ARCH_64R2 | E_MIPS_MACH_OCTEON2; 127 val = E_MIPS_ARCH_64R2 | E_MIPS_MACH_OCTEON2;
128 break; 128 break;
129 129
@@ -134,7 +134,7 @@ index fddf68c816..354c85d00b 100644
134 case bfd_mach_mipsisa32: 134 case bfd_mach_mipsisa32:
135 val = E_MIPS_ARCH_32; 135 val = E_MIPS_ARCH_32;
136 break; 136 break;
137@@ -13989,6 +13996,7 @@ static const struct mips_mach_extension mips_mach_extensions[] = 137@@ -13936,6 +13943,7 @@ static const struct mips_mach_extension mips_mach_extensions[] =
138 { bfd_mach_mips_octeonp, bfd_mach_mips_octeon }, 138 { bfd_mach_mips_octeonp, bfd_mach_mips_octeon },
139 { bfd_mach_mips_octeon, bfd_mach_mipsisa64r2 }, 139 { bfd_mach_mips_octeon, bfd_mach_mipsisa64r2 },
140 { bfd_mach_mips_loongson_3a, bfd_mach_mipsisa64r2 }, 140 { bfd_mach_mips_loongson_3a, bfd_mach_mipsisa64r2 },
@@ -143,10 +143,10 @@ index fddf68c816..354c85d00b 100644
143 /* MIPS64 extensions. */ 143 /* MIPS64 extensions. */
144 { bfd_mach_mipsisa64r2, bfd_mach_mipsisa64 }, 144 { bfd_mach_mipsisa64r2, bfd_mach_mipsisa64 },
145diff --git a/binutils/readelf.c b/binutils/readelf.c 145diff --git a/binutils/readelf.c b/binutils/readelf.c
146index 2b15f0f2cb..092744708e 100644 146index ae1cda9a7b..fed0387a94 100644
147--- a/binutils/readelf.c 147--- a/binutils/readelf.c
148+++ b/binutils/readelf.c 148+++ b/binutils/readelf.c
149@@ -3335,6 +3335,7 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) 149@@ -3370,6 +3370,7 @@ get_machine_flags (Filedata * filedata, unsigned e_flags, unsigned e_machine)
150 case E_MIPS_MACH_OCTEON3: strcat (buf, ", octeon3"); break; 150 case E_MIPS_MACH_OCTEON3: strcat (buf, ", octeon3"); break;
151 case E_MIPS_MACH_XLR: strcat (buf, ", xlr"); break; 151 case E_MIPS_MACH_XLR: strcat (buf, ", xlr"); break;
152 case E_MIPS_MACH_IAMR2: strcat (buf, ", interaptiv-mr2"); break; 152 case E_MIPS_MACH_IAMR2: strcat (buf, ", interaptiv-mr2"); break;
@@ -155,7 +155,7 @@ index 2b15f0f2cb..092744708e 100644
155 /* We simply ignore the field in this case to avoid confusion: 155 /* We simply ignore the field in this case to avoid confusion:
156 MIPS ELF does not specify EF_MIPS_MACH, it is a GNU 156 MIPS ELF does not specify EF_MIPS_MACH, it is a GNU
157diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c 157diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
158index 3804df2958..9576c986db 100644 158index c135131b59..d8fbda8e31 100644
159--- a/gas/config/tc-mips.c 159--- a/gas/config/tc-mips.c
160+++ b/gas/config/tc-mips.c 160+++ b/gas/config/tc-mips.c
161@@ -552,6 +552,7 @@ static int mips_32bitmode = 0; 161@@ -552,6 +552,7 @@ static int mips_32bitmode = 0;
@@ -174,7 +174,7 @@ index 3804df2958..9576c986db 100644
174 ) 174 )
175 175
176 /* Whether the processor uses hardware interlocks to protect reads 176 /* Whether the processor uses hardware interlocks to protect reads
177@@ -19738,7 +19740,7 @@ static const struct mips_cpu_info mips_cpu_info_table[] = 177@@ -19737,7 +19739,7 @@ static const struct mips_cpu_info mips_cpu_info_table[] =
178 /* Broadcom XLP. 178 /* Broadcom XLP.
179 XLP is mostly like XLR, with the prominent exception that it is 179 XLP is mostly like XLR, with the prominent exception that it is
180 MIPS64R2 rather than MIPS64. */ 180 MIPS64R2 rather than MIPS64. */
@@ -184,7 +184,7 @@ index 3804df2958..9576c986db 100644
184 /* MIPS 64 Release 6 */ 184 /* MIPS 64 Release 6 */
185 { "i6400", 0, ASE_MSA, ISA_MIPS64R6, CPU_MIPS64R6}, 185 { "i6400", 0, ASE_MSA, ISA_MIPS64R6, CPU_MIPS64R6},
186diff --git a/gas/configure b/gas/configure 186diff --git a/gas/configure b/gas/configure
187index 81dd4cbd97..95bdf3b19b 100755 187index a40ac2144f..65a6995243 100755
188--- a/gas/configure 188--- a/gas/configure
189+++ b/gas/configure 189+++ b/gas/configure
190@@ -12989,6 +12989,9 @@ _ACEOF 190@@ -12989,6 +12989,9 @@ _ACEOF
@@ -198,7 +198,7 @@ index 81dd4cbd97..95bdf3b19b 100755
198 mips_cpu=r3900 198 mips_cpu=r3900
199 ;; 199 ;;
200diff --git a/include/elf/mips.h b/include/elf/mips.h 200diff --git a/include/elf/mips.h b/include/elf/mips.h
201index a4bea43ff8..73d904e25f 100644 201index 9de0b4e175..74fc4f7e55 100644
202--- a/include/elf/mips.h 202--- a/include/elf/mips.h
203+++ b/include/elf/mips.h 203+++ b/include/elf/mips.h
204@@ -290,6 +290,7 @@ END_RELOC_NUMBERS (R_MIPS_maxext) 204@@ -290,6 +290,7 @@ END_RELOC_NUMBERS (R_MIPS_maxext)
@@ -210,7 +210,7 @@ index a4bea43ff8..73d904e25f 100644
210 #define E_MIPS_MACH_OCTEON3 0x008e0000 210 #define E_MIPS_MACH_OCTEON3 0x008e0000
211 #define E_MIPS_MACH_5400 0x00910000 211 #define E_MIPS_MACH_5400 0x00910000
212diff --git a/include/opcode/mips.h b/include/opcode/mips.h 212diff --git a/include/opcode/mips.h b/include/opcode/mips.h
213index ceae9ec50a..276ee3c6c1 100644 213index 5eea72f139..90f6d57e15 100644
214--- a/include/opcode/mips.h 214--- a/include/opcode/mips.h
215+++ b/include/opcode/mips.h 215+++ b/include/opcode/mips.h
216@@ -1259,6 +1259,8 @@ static const unsigned int mips_isa_table[] = { 216@@ -1259,6 +1259,8 @@ static const unsigned int mips_isa_table[] = {
@@ -241,10 +241,10 @@ index ceae9ec50a..276ee3c6c1 100644
241 return FALSE; 241 return FALSE;
242 } 242 }
243diff --git a/ld/configure.tgt b/ld/configure.tgt 243diff --git a/ld/configure.tgt b/ld/configure.tgt
244index fe7b9238b2..2adf108b17 100644 244index 1d78465590..307e787b64 100644
245--- a/ld/configure.tgt 245--- a/ld/configure.tgt
246+++ b/ld/configure.tgt 246+++ b/ld/configure.tgt
247@@ -516,6 +516,8 @@ mips*el-sde-elf* | mips*el-mti-elf* | mips*el-img-elf*) 247@@ -521,6 +521,8 @@ mips*el-sde-elf* | mips*el-mti-elf* | mips*el-img-elf*)
248 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) 248 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
249 targ_emul=elf32btsmip 249 targ_emul=elf32btsmip
250 targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip" ;; 250 targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip" ;;
@@ -254,7 +254,7 @@ index fe7b9238b2..2adf108b17 100644
254 targ_extra_emuls="elf32lr5900" 254 targ_extra_emuls="elf32lr5900"
255 targ_extra_libpath=$targ_extra_emuls ;; 255 targ_extra_libpath=$targ_extra_emuls ;;
256diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c 256diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
257index 45195007c1..4a80a05d19 100644 257index 984fcbb802..95b107d216 100644
258--- a/opcodes/mips-dis.c 258--- a/opcodes/mips-dis.c
259+++ b/opcodes/mips-dis.c 259+++ b/opcodes/mips-dis.c
260@@ -655,13 +655,11 @@ const struct mips_arch_choice mips_arch_choices[] = 260@@ -655,13 +655,11 @@ const struct mips_arch_choice mips_arch_choices[] =
@@ -277,7 +277,7 @@ index 45195007c1..4a80a05d19 100644
277 /* This entry, mips16, is here only for ISA/processor selection; do 277 /* This entry, mips16, is here only for ISA/processor selection; do
278 not print its name. */ 278 not print its name. */
279diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c 279diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c
280index 19fca408c9..d02069c528 100644 280index 180d613c93..65b7b8cc23 100644
281--- a/opcodes/mips-opc.c 281--- a/opcodes/mips-opc.c
282+++ b/opcodes/mips-opc.c 282+++ b/opcodes/mips-opc.c
283@@ -328,6 +328,7 @@ decode_mips_operand (const char *p) 283@@ -328,6 +328,7 @@ decode_mips_operand (const char *p)
@@ -389,5 +389,5 @@ index 19fca408c9..d02069c528 100644
389 {"swc0", "E,A(b)", 0, (int) M_SWC0_AB, INSN_MACRO, 0, I1, 0, IOCT|IOCTP|IOCT2|I37 }, 389 {"swc0", "E,A(b)", 0, (int) M_SWC0_AB, INSN_MACRO, 0, I1, 0, IOCT|IOCTP|IOCT2|I37 },
390 {"swc1", "T,o(b)", 0xe4000000, 0xfc000000, RD_1|RD_3|SM|FP_S, 0, I1, 0, 0 }, 390 {"swc1", "T,o(b)", 0xe4000000, 0xfc000000, RD_1|RD_3|SM|FP_S, 0, I1, 0, 0 },
391-- 391--
3922.14.0 3922.16.1
393 393