Commit | Line | Data |
---|---|---|
fdef3943 AM |
1 | 2018-04-16 Alan Modra <amodra@gmail.com> |
2 | ||
3 | * Makefile.am: Remove IEEE 695 support. | |
4 | * archures.c: Likewise. | |
5 | * bfd.c: Likewise. | |
6 | * config.bfd: Likewise. | |
7 | * configure.ac: Likewise. | |
8 | * doc/bfd.texinfo: Likewise. | |
9 | * doc/bfdint.texi: Likewise. | |
10 | * doc/bfdsumm.texi: Likewise. | |
11 | * section.c: Likewise. | |
12 | * targets.c: Likewise. | |
13 | * ieee.c: Delete. | |
14 | * libieee.h: Delete. | |
15 | * Makefile.in: Regenerate. | |
16 | * bfd-in2.h: Regenerate. | |
17 | * configure: Regenerate. | |
18 | * po/SRC-POTFILES.in: Regenerate. | |
19 | ||
de96689e AM |
20 | 2018-04-16 Alan Modra <amodra@gmail.com> |
21 | ||
22 | * config.bfd: Remove tandem support. | |
23 | ||
5972ac73 AM |
24 | 2018-04-16 Alan Modra <amodra@gmail.com> |
25 | ||
26 | * Makefile.am: Remove newsos3 support. | |
27 | * aoutx.h: Likewise. | |
28 | * config.bfd: Likewise. | |
29 | * configure.ac: Likewise. | |
30 | * targets.c: Likewise. | |
31 | * newsos3.c: Delete. | |
32 | * Makefile.in: Regenerate. | |
33 | * configure: Regenerate. | |
34 | * po/SRC-POTFILES.in: Regenerate. | |
35 | ||
b4b594e3 AM |
36 | 2018-04-16 Alan Modra <amodra@gmail.com> |
37 | ||
38 | * Makefile.am: Remove netware support. | |
39 | * bfd-in.h: Likewise. | |
40 | * bfd.c: Likewise. | |
41 | * config.bfd: Likewise. | |
42 | * configure.ac: Likewise. | |
43 | * doc/bfdint.texi: Likewise. | |
44 | * ecoff.c: Likewise. | |
45 | * targets.c: Likewise. | |
46 | * libnlm.h: Delete. | |
47 | * nlm-target.h: Delete. | |
48 | * nlm.c: Delete. | |
49 | * nlm32-alpha.c: Delete. | |
50 | * nlm32-i386.c: Delete. | |
51 | * nlm32-ppc.c: Delete. | |
52 | * nlm32-sparc.c: Delete. | |
53 | * nlm32.c: Delete. | |
54 | * nlm64.c: Delete. | |
55 | * nlmcode.h: Delete. | |
56 | * nlmswap.h: Delete. | |
57 | * Makefile.in: Regenerate. | |
58 | * bfd-in2.h: Regenerate. | |
59 | * configure: Regenerate. | |
60 | * po/SRC-POTFILES.in: Regenerate. | |
61 | ||
fceadf09 AM |
62 | 2018-04-16 Alan Modra <amodra@gmail.com> |
63 | ||
64 | * archures.c: Remove tahoe support. | |
65 | * config.bfd: Likewise. | |
66 | * configure.ac: Likewise. | |
67 | * hosts/tahoe.h: Delete. | |
68 | * bfd-in2.h: Regenerate. | |
69 | * configure: Regenerate. | |
70 | ||
702d1671 AM |
71 | 2018-04-14 Alan Modra <amodra@gmail.com> |
72 | ||
73 | * elf-bfd.h (struct elf_backend_data): Add relropagesize. | |
74 | * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and | |
75 | sanity test. | |
76 | (elfNN_bed): Init relropagesize. | |
77 | * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to | |
78 | select relropagesize. | |
79 | * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000. | |
80 | (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE. | |
81 | (ELF_MINPAGESIZE): Don't define. | |
82 | * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000. | |
83 | (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE. | |
84 | * bfd-in2.h: Regenerate. | |
85 | ||
03aa9684 AM |
86 | 2018-04-14 Alan Modra <amodra@gmail.com> |
87 | ||
88 | * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend | |
89 | on __QNXTARGET__ define. | |
90 | ||
24acfe5e AM |
91 | 2018-04-14 Alan Modra <amodra@gmail.com> |
92 | ||
93 | * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss* | |
94 | to obsolete list. | |
95 | ||
a8eb42a8 AM |
96 | 2018-04-11 Alan Modra <amodra@gmail.com> |
97 | ||
98 | * aout-adobe.c: Delete. | |
99 | * bout.c: Delete. | |
100 | * coff-i860.c: Delete. | |
101 | * coff-i960.c: Delete. | |
102 | * cpu-i860.c: Delete. | |
103 | * cpu-i960.c: Delete. | |
104 | * elf32-i860.c: Delete. | |
105 | * elf32-i960.c: Delete. | |
106 | * hosts/i860mach3.h: Delete. | |
107 | * Makefile.am: Remove i860, i960, bout, and adobe support. | |
108 | * archures.c: Remove i860 and i960 support. | |
109 | * coffcode.h: Likewise. | |
110 | * reloc.c: Likewise. | |
111 | * aoutx.h: Comment updates. | |
112 | * archive.c: Remove BOUT and i960 support. | |
113 | * bfd.c: Remove BOUT support. | |
114 | * coffswap.h: Remove i960 support. | |
115 | * config.bfd: Remove i860, i960 and adobe targets. | |
116 | * configure.ac: Remove adode, bout, i860, i960, icoff targets. | |
117 | * targets.c: Likewise. | |
118 | * ieee.c: Remove i960 support. | |
119 | * mach-o.c: Remove i860 support. | |
120 | * Makefile.in: Regenerate. | |
121 | * bfd-in2.h: Regenerate. | |
122 | * configure: Regenerate. | |
123 | * libbfd.h: Regenerate. | |
124 | * po/SRC-POTFILES.in: Regenerate. | |
125 | ||
aec2e0d2 MR |
126 | 2018-04-09 Maciej W. Rozycki <macro@mips.com> |
127 | ||
128 | * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer | |
129 | in the BFD symbol referred by the relocation. | |
130 | (mips_elf64_write_rela): Likewise. | |
131 | ||
9ccfa98b MR |
132 | 2018-04-09 Maciej W. Rozycki <macro@mips.com> |
133 | ||
134 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an | |
135 | error for out-of-range `r_sym' values. | |
136 | ||
3e04d765 AM |
137 | 2018-04-09 Alan Modra <amodra@gmail.com> |
138 | ||
139 | * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field. | |
140 | (struct ppc_link_hash_table): Add can_convert_all_inline_plt. | |
141 | (ppc64_elf_check_relocs): Set has_pltcall. | |
142 | (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries. | |
143 | (ppc64_elf_inline_plt): New function. | |
144 | (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals. | |
145 | * elf64-ppc.h (ppc64_elf_inline_plt): Declare. | |
146 | * elf32-ppc.c (has_pltcall): Define. | |
147 | (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt. | |
148 | (ppc_elf_check_relocs): Set has_pltcall. | |
149 | (ppc_elf_inline_plt): New function. | |
150 | (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries. | |
151 | (ppc_elf_size_dynamic_sections): Likewise. | |
152 | * elf32-ppc.h (ppc_elf_inline_plt): Declare. | |
153 | ||
23cedd1d AM |
154 | 2018-04-09 Alan Modra <amodra@gmail.com> |
155 | ||
156 | * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos. | |
157 | (is_plt_seq_reloc): New function. | |
158 | (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs. | |
159 | (ppc_elf_tls_optimize): Handle inline plt call sequence. | |
160 | (ppc_elf_relax_section): Handle PLTCALL reloc. | |
161 | (ppc_elf_relocate_section): Nop out inline plt call sequence when | |
162 | resolving locally. | |
163 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and | |
164 | R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE. | |
165 | (has_tls_get_addr_call): Correct comment. | |
166 | (is_branch_reloc): Add PLTCALL. | |
167 | (is_plt_seq_reloc): New function. | |
168 | (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set | |
169 | has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt | |
170 | entry for R_PPC64_PLTCALL. | |
171 | (ppc64_elf_tls_optimize): Handle inline plt call sequence. | |
172 | (ppc_type_of_stub): Handle PLTCALL reloc. | |
173 | (toc_adjusting_stub_needed): Likewise. | |
174 | (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL | |
175 | reloc insn. Nop out inline plt call sequence when resolving | |
176 | locally. Handle __tls_get_addr inline plt call optimization. | |
177 | ||
2d7ad24e AM |
178 | 2018-04-09 Alan Modra <amodra@gmail.com> |
179 | ||
180 | * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define. | |
181 | (struct ppc_stub_hash_entry): Add symtype field. | |
182 | (PLT_KEEP): Define. | |
183 | (struct ppc_link_hash_table): Add pltlocal and relpltlocal. | |
184 | (create_linkage_sections): Create pltlocal and relpltlocal. | |
185 | (ppc64_elf_check_relocs): Allow PLT relocs on local symbols. | |
186 | Set PLT_KEEP. | |
187 | (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls. | |
188 | (allocate_dynrelocs): Allocate pltlocal and relpltlocal. | |
189 | (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal. | |
190 | Keep PLT entries for inline calls against locals. | |
191 | (ppc_build_one_stub): Use pltlocal as appropriate. | |
192 | (ppc_size_one_stub): Likewise. | |
193 | (ppc64_elf_size_stubs): Set symtype. | |
194 | (build_global_entry_stubs_and_plt): Init pltlocal and write | |
195 | relpltlocal for globals. | |
196 | (write_plt_relocs_for_local_syms): Likewise for local syms. | |
197 | (ppc64_elf_relocate_section): Support PLT for local syms. | |
198 | * elf32-ppc.c (PLT_KEEP): Define. | |
199 | (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal. | |
200 | (ppc_elf_create_glink): Create pltlocal and relpltlocal. | |
201 | (ppc_elf_check_relocs): Allow PLT relocs on local symbols. | |
202 | Set PLT_KEEP. Adjust update_local_sym_info call. | |
203 | (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls. | |
204 | (allocate_dynrelocs): Allocate pltlocal and relpltlocal. | |
205 | (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal. | |
206 | (ppc_elf_relocate_section): Support PLT16 relocs for local syms. | |
207 | (write_global_sym_plt): Init pltlocal and write relpltlocal. | |
208 | (ppc_finish_symbols): Likewise for locals. | |
209 | ||
49c09209 AM |
210 | 2018-04-09 Alan Modra <amodra@gmail.com> |
211 | ||
212 | * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs | |
213 | for local symbols to.. | |
214 | (write_plt_relocs_for_local_syms): ..here. New function. | |
215 | (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for | |
216 | global symbols to.. | |
217 | (build_global_entry_stubs_and_plt): ..here. Rename from | |
218 | build_global_entry_stubs. | |
219 | (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt. | |
220 | Call write_plt_relocs_for_local_syms. | |
221 | * elf32-ppc.c (get_sym_h): New function. | |
222 | (ppc_elf_relax_section): Use get_sym_h. | |
223 | (ppc_elf_relocate_section): Move output of PLT relocs and glink | |
224 | stubs for local symbols to.. | |
225 | (ppc_finish_symbols): ..here. New function. | |
226 | (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for | |
227 | global syms to.. | |
228 | (write_global_sym_plt): ..here. New function. | |
229 | * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute. | |
230 | (ppc_finish_symbols): Declare. | |
231 | ||
08be3224 AM |
232 | 2018-04-09 Alan Modra <amodra@gmail.com> |
233 | ||
234 | * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs. | |
235 | (ppc_elf_relocate_section): Likewise. | |
236 | * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS. | |
237 | (ppc64_elf_relocate_section): Likewise. Correct PLT16 | |
238 | resolution to plt entry relative to toc pointer. | |
239 | ||
37da22e5 AM |
240 | 2018-04-09 Alan Modra <amodra@gmail.com> |
241 | ||
242 | * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, | |
243 | TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout | |
244 | file when other TLS flags are tested in a mask. | |
245 | (TLS_MARK, NON_GOT): Define. | |
246 | (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well. | |
247 | (update_local_sym_info): Don't create got entry when NON_GOT. | |
248 | (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC. | |
249 | Set TLS_MARK. | |
250 | (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK. | |
251 | (ppc64_elf_relocate_section): Likewise. | |
252 | (ppc64_elf_tls_optimize): Don't attempt to optimize indirect | |
253 | __tls_get_addr calls lacking a marker reloc. | |
254 | * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, | |
255 | TLS_TPRELGD): Renumber. Update comment. | |
256 | (TLS_MARK, NON_GOT): Define. | |
257 | (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well. | |
258 | (update_local_sym_info): Don't create got entry when NON_GOT. | |
259 | (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC. | |
260 | Set TLS_MARK. | |
261 | (ppc_elf_tls_optimize): Don't attempt to optimize indirect | |
262 | __tls_get_addr calls lacking a marker reloc. | |
263 | ||
a6fd92b0 L |
264 | 2018-04-06 H.J. Lu <hongjiu.lu@intel.com> |
265 | ||
266 | * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out | |
267 | R_X86_64_converted_reloc_bit. | |
268 | ||
3cba8b6c L |
269 | 2018-04-05 H.J. Lu <hongjiu.lu@intel.com> |
270 | ||
271 | PR gas/22318 | |
272 | * configure: Regenerated. | |
273 | ||
0e8452bb AM |
274 | 2018-04-05 Alan Modra <amodra@gmail.com> |
275 | ||
276 | * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL. | |
277 | (elf_hppa_info_to_howto_rel): Likewise. | |
278 | ||
8ee55178 MR |
279 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
280 | ||
281 | * elf-hppa.h (elf_hppa_info_to_howto): Also return | |
282 | unsuccessfully for unimplemented relocations. | |
283 | (elf_hppa_info_to_howto_rel): Likewise. | |
284 | ||
5d7c8b80 MR |
285 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
286 | ||
287 | * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the | |
288 | `bfd_error_bad_value' error and call `_bfd_error_handler' on a | |
289 | howto lookup failure. | |
290 | (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call | |
291 | accordingly. | |
292 | (elf32_i860_info_to_howto_rela): Likewise. | |
293 | (elf32_i860_relocate_splitn): Likewise. | |
294 | (elf32_i860_relocate_pc16): Likewise. | |
295 | (elf32_i860_relocate_pc26): Likewise. | |
296 | (elf32_i860_relocate_section): Likewise. | |
297 | ||
707bad1b MR |
298 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
299 | ||
300 | * elf32-visium.c (visium_info_to_howto_rela): Correct the range | |
301 | check for `visium_elf_howto_table' table access. | |
302 | ||
0cc919dc MR |
303 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
304 | ||
305 | * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range | |
306 | check for `iq2000_elf_howto_table' table access. | |
307 | ||
f428698e MR |
308 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
309 | ||
310 | * elf32-frv.c (frv_info_to_howto_rela): Correct the range check | |
311 | for `elf32_frv_howto_table' table access. | |
312 | ||
7ed6f92a MR |
313 | 2018-04-04 Maciej W. Rozycki <macro@mips.com> |
314 | ||
315 | * elf32-mips.c (mips_elf32_rtype_to_howto): Also return | |
316 | unsuccessfully for placeholder howtos. | |
317 | * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise. | |
318 | * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise. | |
319 | ||
75def2ab MR |
320 | 2018-03-29 Maciej W. Rozycki <macro@mips.com> |
321 | ||
322 | * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to | |
323 | `_bfd_error_handler' and to set the `bfd_error_bad_value' error. | |
324 | ||
8b6a949a MR |
325 | 2018-03-28 Maciej W. Rozycki <macro@mips.com> |
326 | ||
327 | * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove | |
328 | ATTRIBUTE_UNUSED from `abfd'. | |
329 | ||
d81270c3 MR |
330 | 2018-03-28 Maciej W. Rozycki <macro@mips.com> |
331 | ||
332 | * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct | |
333 | `_bfd_error_handler' call formatting. | |
334 | ||
60dceb8d | 335 | 2018-03-28 Maciej W. Rozycki <macro@mips.com> |
8205a328 MR |
336 | |
337 | * elf32-mips.c (mips_info_to_howto_rel): Call | |
338 | `mips_elf32_rtype_to_howto' directly rather than via | |
339 | `->elf_backend_mips_rtype_to_howto'. | |
340 | ||
e04ef022 RL |
341 | 2018-03-28 Renlin Li <renlin.li@arm.com> |
342 | ||
343 | PR ld/22970 | |
344 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for | |
345 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12, | |
346 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, | |
347 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12, | |
348 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, | |
349 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12, | |
350 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, | |
351 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12, | |
352 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC. | |
353 | (elfNN_aarch64_final_link_relocate): Support new relocations. | |
354 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new | |
355 | relocations. | |
356 | (_bfd_aarch64_elf_resolve_relocation): Support new relocations. | |
357 | ||
84f1b9fb RL |
358 | 2018-03-28 Renlin Li <renlin.li@arm.com> |
359 | ||
360 | PR ld/22970 | |
361 | * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12 | |
362 | BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC, | |
363 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12, | |
364 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, | |
365 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12, | |
366 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, | |
367 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12, | |
368 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, | |
369 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12, | |
370 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC. | |
371 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for | |
372 | TLSLE_LDST16_TPREL_LO12, | |
373 | TLSLE_LDST16_TPREL_LO12_NC, | |
374 | TLSLE_LDST32_TPREL_LO12, | |
375 | TLSLE_LDST32_TPREL_LO12_NC, | |
376 | TLSLE_LDST64_TPREL_LO12, | |
377 | TLSLE_LDST64_TPREL_LO12_NC, | |
378 | TLSLE_LDST8_TPREL_LO12, | |
379 | TLSLE_LDST8_TPREL_LO12_NC. | |
380 | * bfd-in2.h: Regenerated. | |
381 | * libbfd.h: Regenerated. | |
382 | ||
f8745e1c EB |
383 | 2018-03-28 Eric Botcazou <ebotcazou@adacore.com> |
384 | ||
385 | PR ld/22972 | |
386 | * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag | |
387 | has_old_style_got_reloc. | |
388 | (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style | |
389 | relocations. Fix a couple of long lines. | |
390 | (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate | |
391 | a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style | |
392 | GOT relocations. | |
393 | ||
bf54968b L |
394 | 2018-03-25 H.J. Lu <hongjiu.lu@intel.com> |
395 | ||
396 | PR ld/23000 | |
397 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add | |
398 | ENDBR64 to the TLSDESC PLT entry. | |
399 | ||
0ccf57bd AM |
400 | 2018-03-21 Alan Modra <amodra@gmail.com> |
401 | ||
402 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting | |
403 | symbols. Use size_t counts. Delete redundant opd test. | |
404 | ||
4bad6366 AM |
405 | 2018-03-21 Alan Modra <amodra@gmail.com> |
406 | ||
407 | * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms. | |
408 | ||
bac3c8c5 AM |
409 | 2018-03-21 Alan Modra <amodra@gmail.com> |
410 | ||
411 | * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask | |
412 | field unsigned. | |
413 | (update_local_sym_info): Likewise for local_got_tls_masks. | |
414 | (ppc_elf_tls_optimize): Likewise for lgot_masks. | |
415 | ||
6a3858a6 AM |
416 | 2018-03-21 Alan Modra <amodra@gmail.com> |
417 | ||
418 | * elf64-ppc.c (ppc_size_one_stub): Fix comment typo. | |
419 | (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we | |
420 | do in size_dynamic_sections. | |
421 | ||
675e2809 AM |
422 | 2018-03-21 Alan Modra <amodra@gmail.com> |
423 | ||
424 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1] | |
425 | without first checking array bounds. | |
426 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
427 | ||
416c34d6 L |
428 | 2018-03-20 H.J. Lu <hongjiu.lu@intel.com> |
429 | ||
430 | PR ld/22983 | |
431 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set | |
432 | non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list. | |
433 | ||
315aa1cf NC |
434 | 2018-03-19 Nick Clifton <nickc@redhat.com> |
435 | ||
436 | * po/es.po: Updated Spanish translation. | |
437 | ||
0854d504 MF |
438 | 2018-03-15 Max Filippov <jcmvbkbc@gmail.com> |
439 | ||
440 | * elf32-xtensa.c (xlate_map_entry): Change types of address | |
441 | fields from 'unsigned' to 'bfd_vma'. | |
442 | (xlate_offset_with_removed_text): Use struct xlate_map_entry as | |
443 | the key argument to bsearch. Allow offsets past the end of a | |
444 | section, use the last map entry for translation of such offsets. | |
445 | ||
f9671640 KLC |
446 | 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
447 | ||
448 | * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed. | |
449 | Not support the target feature. | |
450 | (nds32_elf_ex9_itb_base): Likewise. | |
451 | (nds32_elf_ex9_import_table): Likewise. | |
452 | (nds32_elf_ex9_finish): Likewise. | |
453 | (nds32_elf_ex9_reloc_jmp): Likewise. | |
454 | (nds32_elf_get_insn_with_reg): Likewise. | |
455 | (nds32_get_local_syms): Likewise. | |
456 | (nds32_elf_ex9_replace_instruction): Likewise. | |
457 | (nds32_elf_ifc_calc): Likewise. | |
458 | (nds32_elf_ifc_finish): Likewise. | |
459 | (nds32_elf_ifc_replace): Likewise. | |
460 | (nds32_elf_ifc_reloc): Likewise. | |
461 | ||
7dda8d3c AM |
462 | 2018-03-14 Alan Modra <amodra@gmail.com> |
463 | ||
464 | * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having | |
465 | sfpr size added before defining alias symbols. | |
466 | (ppc64_elf_build_stubs): Add stub section padding before | |
467 | copying sfpr contents and defining save/restore alias symbols. | |
468 | ||
9e223787 L |
469 | 2018-03-14 H.J. Lu <hongjiu.lu@intel.com> |
470 | ||
471 | PR ld/20882 | |
472 | * elflink.c (elf_gc_mark_debug_section): Also check the local | |
473 | debug definition section. | |
474 | ||
3e33b239 NC |
475 | 2018-03-13 Nick Clifton <nickc@redhat.com> |
476 | ||
477 | PR 22113 | |
478 | * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean | |
479 | function. Add an end address parameter. Check access of the data | |
480 | pointer to make sure that they do not extend beyond the end | |
481 | address. Return FALSE if any check fails. Add the end address | |
482 | pointer to the ui structure. | |
483 | (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind | |
484 | codes to make sure that they do not extend beyond the end address | |
485 | pointer. Print an error message and return immediately if any | |
486 | check fails. | |
487 | ||
f657f8c4 NC |
488 | 2018-03-09 Nick Clifton <nickc@redhat.com> |
489 | ||
490 | * elf64-s390.c (elf_s390_relocate_section): Move check for | |
491 | relocations against non-allocated sections to before the code that | |
492 | handles ifunc relocations. | |
493 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
494 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat | |
495 | relocs against IFUNC symbols in non-allocated sections as relocs | |
496 | against FUNC symbols. | |
497 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. | |
498 | ||
347a8774 L |
499 | 2018-03-08 H.J. Lu <hongjiu.lu@intel.com> |
500 | ||
501 | PR ld/22929 | |
502 | * elf32-i386.c (elf_i386_relocate_section): Treat relocation | |
503 | against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as | |
504 | relocation against FUNC symbol. | |
505 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
506 | ||
0c1ded8d RL |
507 | 2018-03-07 Renlin Li <renlin.li@arm.com> |
508 | ||
509 | PR ld/20402 | |
510 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute | |
511 | symbol, and don't emit relocation in specific case. | |
512 | ||
0118219e AM |
513 | 2018-03-07 Alan Modra <amodra@gmail.com> |
514 | ||
515 | * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error. | |
516 | (mips_elf64_slurp_one_reloc_table): Pass on error. | |
517 | ||
dfb93f11 JC |
518 | 2018-03-03 James Cowgill <james.cowgill@mips.com> |
519 | Maciej W. Rozycki <macro@mips.com> | |
520 | ||
521 | PR ld/21900 | |
522 | * elfxx-mips.c (mips_elf_calculate_relocation): Only return | |
523 | after calling `undefined_symbol' hook if this is an error | |
524 | condition. Assume the value of 0 for the symbol requested | |
525 | otherwise. | |
526 | ||
9a2ebffd JW |
527 | 2018-03-02 Jim Wilson <jimw@sifive.com> |
528 | ||
529 | PR 22903 | |
530 | * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch | |
531 | and nop instead of 4. | |
532 | (elfNN_arch64_build_stubs): Add nop after branch. Increase size by | |
533 | 8 instead of 4. | |
534 | ||
788af978 JW |
535 | 2018-03-01 Jim Wilson <jimw@sifive.com> |
536 | ||
537 | PR 22756 | |
538 | * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use | |
539 | else if instead of if. | |
540 | ||
5224fa03 AM |
541 | 2018-03-01 Alan Modra <amodra@gmail.com> |
542 | ||
543 | * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test. | |
544 | ||
116acb2c AM |
545 | 2018-02-28 Alan Modra <amodra@gmail.com> |
546 | ||
547 | PR 22887 | |
548 | * aoutx.h (swap_std_reloc_in): Correct r_index bound check. | |
549 | ||
eef10466 NC |
550 | 2018-02-28 Nick Clifton <nickc@redhat.com> |
551 | ||
12c96342 NC |
552 | PR 22895 |
553 | PR 22893 | |
554 | * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block | |
555 | pointer. Drop unused abfd parameter. Check the size of the block | |
556 | before initialising the data field. Return the end pointer if the | |
557 | size is invalid. | |
558 | (read_attribute_value): Adjust invocations of read_n_bytes. | |
559 | ||
eef10466 NC |
560 | PR 22894 |
561 | * dwarf1.c (parse_die): Check the length of form blocks before | |
562 | advancing the data pointer. | |
563 | ||
0d329c0a AM |
564 | 2018-02-28 Alan Modra <amodra@gmail.com> |
565 | ||
566 | PR 22887 | |
567 | * aoutx.h (translate_symbol_table): Print an error message and set | |
568 | bfd_error on finding an invalid name string offset. | |
569 | ||
f6aec96d L |
570 | 2018-02-27 H.J. Lu <hongjiu.lu@intel.com> |
571 | ||
572 | * config.in: Regenerated. | |
573 | * configure: Likewise. | |
574 | * configure.ac: Add --enable-separate-code. | |
575 | (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default | |
576 | to 1 for Linux/x86 targets, | |
577 | * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if | |
578 | DEFAULT_LD_Z_SEPARATE_CODE is 1. | |
579 | ||
f3185997 NC |
580 | 2018-02-27 Nick Clifton <nickc@redhat.com> |
581 | ||
e8f5af78 NC |
582 | * aout-cris.c (swap_ext_reloc_out): Standadize error/warning |
583 | message. | |
584 | * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise. | |
585 | * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise. | |
586 | * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise. | |
587 | * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise. | |
588 | * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise. | |
589 | * elf64-sh64.c (sh_elf64_info_to_howto): Likewise. | |
590 | * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise. | |
591 | * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise. | |
592 | * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise. | |
593 | ||
f3185997 NC |
594 | PR 22875 |
595 | * elf-bfd.h (struct elf_backend_data): Change the return type of | |
596 | the elf_info_to_howto and elf_info_to_howto_rel function pointers | |
597 | to bfd_boolean. | |
598 | * elfcode.h (elf_slurp_reloc_table_from_section): Check the return | |
599 | value from the info_to_howto function and fail if that function | |
600 | failed. | |
601 | * elf32-h8300.c (elf32_h8_relocate_section): Check return value | |
602 | from the info_to_howto function. | |
603 | (elf32_h8_relax_section): Likewise. | |
604 | * elf32-lm32.c (lm32_elf_relocate_section): Likewise. | |
605 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise. | |
606 | * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise. | |
607 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
608 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise. | |
609 | * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise. | |
610 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise. | |
611 | * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. | |
612 | * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
613 | * elfnn-riscv.c (riscv_elf_check_relocs): Likewise. | |
614 | (riscv_elf_relocate_section): Likewise. | |
615 | * elf-hppa.h (elf_hppa_info_to_howto): Change return type to | |
616 | bfd_boolean. Issue an error message, set an error value and | |
617 | return FALSE if the reloc is not recognized. | |
618 | (elf_hppa_info_to_howto_rel): Likewise. | |
619 | * elf-m10200.c (mn10200_info_to_howto): Likewise. | |
620 | * elf-m10300.c (mn10300_info_to_howto): Likewise. | |
621 | * elf.c (_bfd_elf_no_info_to_howto): Likewise. | |
622 | * elf32-arc.c (arc_info_to_howto_rel): Likewise. | |
623 | * elf32-arm.c (elf32_arm_info_to_howto): Likewise. | |
624 | * elf32-avr.c (avr_info_to_howto_rela): Likewise. | |
625 | * elf32-bfin.c (bfin_info_to_howto): Likewise. | |
626 | * elf32-cr16.c (elf_cr16_info_to_howto): Likewise. | |
627 | * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise. | |
628 | * elf32-cris.c (elf_cr16c_info_to_howto_rel) | |
629 | (cris_info_to_howto_rela): Likewise. | |
630 | * elf32-crx.c (elf_crx_info_to_howto): Likewise. | |
631 | * elf32-d10v.c (d10v_info_to_howto_rel): Likewise. | |
632 | * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela): | |
633 | Likewise. | |
634 | * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto) | |
635 | (elf32_dlx_info_to_howto_rel): Likewise. | |
636 | * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise. | |
637 | * elf32-fr30.c (fr30_info_to_howto_rela): Likewise. | |
638 | * elf32-frv.c (frv_info_to_howto_rela) | |
639 | (frvfdpic_info_to_howto_rel): Likewise. | |
640 | * elf32-ft32.c (ft32_info_to_howto_rela): Likewise. | |
641 | * elf32-gen.c (elf_generic_info_to_howto) | |
642 | (elf_generic_info_to_howto_rel): Likewise. | |
643 | * elf32-h8300.c (elf32_h8_info_to_howto) | |
644 | (elf32_h8_info_to_howto_rel): Likewise. | |
645 | * elf32-i370.c (i370_elf_info_to_howto): Likewise. | |
646 | * elf32-i386.c (elf_i386_reloc_type_lookup) | |
647 | (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise. | |
648 | * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela): | |
649 | Likewise. | |
650 | * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise. | |
651 | * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise. | |
652 | * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise. | |
653 | * elf32-lm32.c (lm32_info_to_howto_rela): Likewise. | |
654 | * elf32-m32c.c (m32c_info_to_howto_rela): Likewise. | |
655 | * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto): | |
656 | Likewise. | |
657 | * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise. | |
658 | * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise. | |
659 | * elf32-m68k.c (rtype_to_howto): Likewise. | |
660 | * elf32-mcore.c (mcore_elf_info_to_howto): Likewise. | |
661 | * elf32-mep.c (mep_info_to_howto_rela): Likewise. | |
662 | * elf32-metag.c (metag_info_to_howto_rela): Likewise. | |
663 | * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise. | |
664 | * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela): | |
665 | Likewise. | |
666 | * elf32-moxie.c (moxie_info_to_howto_rela): Likewise. | |
667 | * elf32-msp430.c (msp430_info_to_howto_rela): Likewise. | |
668 | * elf32-mt.c (mt_info_to_howto_rela): Likewise. | |
669 | * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto): | |
670 | Likewise. | |
671 | * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise. | |
672 | * elf32-or1k.c (or1k_info_to_howto_rela): Likewise. | |
673 | * elf32-pj.c (pj_elf_info_to_howto): Likewise. | |
674 | * elf32-ppc.c (ppc_elf_info_to_howto): Likewise. | |
675 | * elf32-pru.c (pru_elf32_info_to_howto): Likewise. | |
676 | * elf32-rl78.c (rl78_info_to_howto_rela): Likewise. | |
677 | * elf32-rx.c (rx_info_to_howto_rela): Likewise. | |
678 | * elf32-s390.c (elf_s390_info_to_howto): Likewise. | |
679 | * elf32-score.c (s3_bfd_score_info_to_howto) | |
680 | (_bfd_score_info_to_howto): Likewise. | |
681 | * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise. | |
682 | * elf32-sh.c (sh_elf_info_to_howto): Likewise. | |
683 | * elf32-spu.c (spu_elf_info_to_howto): Likewise. | |
684 | * elf32-tic6x.c (elf32_tic6x_info_to_howto) | |
685 | (elf32_tic6x_info_to_howto_rel): Likewise. | |
686 | * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise. | |
687 | * elf32-v850.c (v850_elf_info_to_howto_rel) | |
688 | (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise. | |
689 | * elf32-vax.c (rtype_to_howto): Likewise. | |
690 | * elf32-visium.c (visium_info_to_howto_rela): Likewise. | |
691 | * elf32-wasm32.c (elf32_wasm32_rtype_to_howto) | |
692 | (elf32_wasm32_info_to_howto_rela): Likewise. | |
693 | * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise. | |
694 | * elf32-xgate.c (xgate_info_to_howto_rel): Likewise. | |
695 | * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise. | |
696 | * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise. | |
697 | * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise. | |
698 | * elf64-gen.c (elf_generic_info_to_howto) | |
699 | (elf_generic_info_to_howto_rel): Likewise. | |
700 | * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise. | |
701 | * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise. | |
702 | * elf64-mmix.c (mmix_info_to_howto_rela): Likewise. | |
703 | * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise. | |
704 | * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise. | |
705 | * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto): | |
706 | Likewise. | |
707 | * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise. | |
708 | * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela): | |
709 | Likewise. | |
710 | * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise. | |
711 | * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise. | |
712 | * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise. | |
713 | * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise. | |
714 | * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise. | |
715 | * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise. | |
716 | * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype. | |
717 | * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype. | |
718 | * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype. | |
719 | * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel): | |
720 | Default to NULL. | |
721 | ||
1f4bace8 JW |
722 | 2018-02-26 Jim Wilson <jimw@sifive.com> |
723 | Stephan Schreiber <info@fs-driver.org> | |
724 | ||
725 | PR 15904 | |
726 | * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl | |
727 | call, set changed_contents and changed_relocs. Likewise after | |
728 | successful ia64_elf_relax_br call. | |
729 | ||
6838f2be AM |
730 | 2018-02-26 Alan Modra <amodra@gmail.com> |
731 | ||
732 | * elf.c (assign_file_positions_except_relocs): Don't segfault | |
733 | when actual number of phdrs is less than allocated. Delete | |
734 | outdated comment. Formatting. | |
735 | ||
38f14ab8 AM |
736 | 2018-02-26 Alan Modra <amodra@gmail.com> |
737 | ||
738 | * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c, | |
739 | * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c, | |
740 | * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, | |
741 | * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c, | |
742 | * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c, | |
743 | * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c, | |
744 | * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c, | |
745 | * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c, | |
746 | * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c, | |
747 | * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize | |
748 | error/warning messages. | |
749 | ||
6e05870c AM |
750 | 2018-02-26 Alan Modra <amodra@gmail.com> |
751 | ||
752 | * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c, | |
753 | * syms.c: Standardize error/warning messages. | |
754 | ||
59d08d6c AM |
755 | 2018-02-26 Alan Modra <amodra@gmail.com> |
756 | ||
757 | * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c, | |
758 | * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c, | |
759 | * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c, | |
760 | * peXXigen.c, * peicode.h: Standardize error/warning messages. | |
761 | ||
90b6238f AM |
762 | 2018-02-26 Alan Modra <amodra@gmail.com> |
763 | ||
764 | * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages. | |
765 | ||
2c1c9679 AM |
766 | 2018-02-26 Alan Modra <amodra@gmail.com> |
767 | ||
768 | * elfxx-mips.c: Standardize error/warning messages. | |
769 | ||
9793eb77 AM |
770 | 2018-02-26 Alan Modra <amodra@gmail.com> |
771 | ||
772 | * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c, | |
773 | * elflink.c: Standardize error/warning messages. Replace use of | |
774 | linker callback einfo with _bfd_error_handler when possible. | |
775 | ||
0aa13fee AM |
776 | 2018-02-26 Alan Modra <amodra@gmail.com> |
777 | ||
778 | * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c, | |
779 | * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, | |
780 | * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c, | |
781 | * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c, | |
782 | * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c, | |
783 | * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c, | |
784 | * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c, | |
785 | * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, | |
786 | * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, | |
787 | * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c, | |
788 | * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c, | |
789 | * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c, | |
790 | * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c, | |
791 | * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c, | |
792 | * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c, | |
793 | * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c, | |
794 | * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c, | |
795 | * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c, | |
796 | * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c, | |
797 | * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h, | |
798 | * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize | |
799 | unrecognized/unsupported reloc message. | |
800 | ||
cf97bcb0 AM |
801 | 2018-02-26 Alan Modra <amodra@gmail.com> |
802 | ||
803 | * elf32-ppc.c: Standardize error/warning messages. Use | |
804 | _bfd_error_handler rather than einfo when einfo features not used. | |
805 | * elf64-ppc.c: Likewise. | |
806 | ||
01f7e10c AM |
807 | 2018-02-23 Alan Modra <amodra@gmail.com> |
808 | ||
809 | PR 22881 | |
810 | * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO | |
811 | segment if no matching LOAD segment. | |
812 | ||
e859f655 KLC |
813 | 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
814 | ||
815 | * elf32-nds32.h: Define mask for ict_model. | |
816 | ||
6e8d06db JD |
817 | 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com> |
818 | ||
819 | * elfnn-ia64.c (elf_backend_can_gc_sections): Enable. | |
820 | ||
b248d650 MR |
821 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
822 | ||
823 | Revert | |
824 | 2018-01-12 Vlad Ivanov <vlad@ivanov.email> | |
825 | ||
826 | * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when | |
827 | .reginfo section has wrong size. | |
828 | ||
6798f8bf MR |
829 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
830 | ||
831 | * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set | |
832 | SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and | |
833 | `.MIPS.abiflags' sections. | |
834 | (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo' | |
835 | section's end. | |
836 | ||
8772de11 MR |
837 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
838 | ||
839 | * section.c (SEC_FIXED_SIZE): New macro. | |
840 | * bfd-in2.h: Regenerate. | |
841 | ||
4f7fd351 MR |
842 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
843 | ||
844 | * section.c (SEC_HAS_GOT_REF): Remove macro. | |
845 | * bfd-in2.h: Regenerate. | |
846 | ||
f2b740ac AM |
847 | 2018-02-19 Alan Modra <amodra@gmail.com> |
848 | ||
849 | * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler | |
850 | arguments. | |
851 | * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise. | |
852 | * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise. | |
853 | (_bfd_riscv_relax_pc): Likewise and fix typos. | |
854 | * libbfd-in.h (_bfd_error_handler): Add attribute printf. | |
855 | * libbfd.h: Regenerate. | |
856 | ||
8979927a AM |
857 | 2018-02-19 Alan Modra <amodra@gmail.com> |
858 | ||
859 | * dwarf2.c (read_section): Don't use 'll' format modifier. | |
860 | (find_abstract_instance): Likewise. | |
861 | * elfcore.h (elf_core_file_p): Likewise. | |
862 | ||
2dcf00ce AM |
863 | 2018-02-19 Alan Modra <amodra@gmail.com> |
864 | ||
865 | * bfd-in.h: Include inttypes.h or if not available define | |
866 | PRId64, PRIu64 and PRIx64. | |
867 | * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L | |
868 | modifier to print bfd_vma. | |
869 | * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, | |
870 | * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c, | |
871 | * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c, | |
872 | * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c, | |
873 | * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c, | |
874 | * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c, | |
875 | * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c, | |
876 | * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c, | |
877 | * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c, | |
878 | * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c, | |
879 | * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c, | |
880 | * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c, | |
881 | * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c, | |
882 | * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c, | |
883 | * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64, | |
884 | and cast input to uint64_t, and similarly for Ld and Lu. | |
885 | * bfd-in2.h: Regenerate. | |
886 | ||
c1c8c1ef AM |
887 | 2018-02-19 Alan Modra <amodra@gmail.com> |
888 | ||
889 | * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c, | |
890 | * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c, | |
891 | * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c, | |
892 | * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c, | |
893 | * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c, | |
894 | * reloc.c: Replace use of %R and %T in format strings passed to | |
895 | einfo and friends by %pR and %pT. | |
896 | ||
871b3ab2 AM |
897 | 2018-02-19 Alan Modra <amodra@gmail.com> |
898 | ||
899 | * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place | |
900 | of %A and %B. | |
901 | * aout-adobe.c: Update all messages using %A and %B. | |
902 | * aout-cris.c: Likewise. | |
903 | * aoutx.h: Likewise. | |
904 | * archive.c: Likewise. | |
905 | * binary.c: Likewise. | |
906 | * cache.c: Likewise. | |
907 | * coff-alpha.c: Likewise. | |
908 | * coff-arm.c: Likewise. | |
909 | * coff-i860.c: Likewise. | |
910 | * coff-mcore.c: Likewise. | |
911 | * coff-ppc.c: Likewise. | |
912 | * coff-rs6000.c: Likewise. | |
913 | * coff-sh.c: Likewise. | |
914 | * coff-tic4x.c: Likewise. | |
915 | * coff-tic54x.c: Likewise. | |
916 | * coff-tic80.c: Likewise. | |
917 | * coff64-rs6000.c: Likewise. | |
918 | * coffcode.h: Likewise. | |
919 | * coffgen.c: Likewise. | |
920 | * cofflink.c: Likewise. | |
921 | * coffswap.h: Likewise. | |
922 | * compress.c: Likewise. | |
923 | * cpu-arm.c: Likewise. | |
924 | * ecoff.c: Likewise. | |
925 | * elf-attrs.c: Likewise. | |
926 | * elf-eh-frame.c: Likewise. | |
927 | * elf-ifunc.c: Likewise. | |
928 | * elf-m10300.c: Likewise. | |
929 | * elf-properties.c: Likewise. | |
930 | * elf-s390-common.c: Likewise. | |
931 | * elf.c: Likewise. | |
932 | * elf32-arc.c: Likewise. | |
933 | * elf32-arm.c: Likewise. | |
934 | * elf32-avr.c: Likewise. | |
935 | * elf32-bfin.c: Likewise. | |
936 | * elf32-cr16.c: Likewise. | |
937 | * elf32-cr16c.c: Likewise. | |
938 | * elf32-cris.c: Likewise. | |
939 | * elf32-crx.c: Likewise. | |
940 | * elf32-d10v.c: Likewise. | |
941 | * elf32-d30v.c: Likewise. | |
942 | * elf32-epiphany.c: Likewise. | |
943 | * elf32-fr30.c: Likewise. | |
944 | * elf32-frv.c: Likewise. | |
945 | * elf32-gen.c: Likewise. | |
946 | * elf32-hppa.c: Likewise. | |
947 | * elf32-i370.c: Likewise. | |
948 | * elf32-i386.c: Likewise. | |
949 | * elf32-i960.c: Likewise. | |
950 | * elf32-ip2k.c: Likewise. | |
951 | * elf32-iq2000.c: Likewise. | |
952 | * elf32-lm32.c: Likewise. | |
953 | * elf32-m32c.c: Likewise. | |
954 | * elf32-m32r.c: Likewise. | |
955 | * elf32-m68hc11.c: Likewise. | |
956 | * elf32-m68hc12.c: Likewise. | |
957 | * elf32-m68hc1x.c: Likewise. | |
958 | * elf32-m68k.c: Likewise. | |
959 | * elf32-mcore.c: Likewise. | |
960 | * elf32-mep.c: Likewise. | |
961 | * elf32-metag.c: Likewise. | |
962 | * elf32-microblaze.c: Likewise. | |
963 | * elf32-moxie.c: Likewise. | |
964 | * elf32-msp430.c: Likewise. | |
965 | * elf32-mt.c: Likewise. | |
966 | * elf32-nds32.c: Likewise. | |
967 | * elf32-nios2.c: Likewise. | |
968 | * elf32-or1k.c: Likewise. | |
969 | * elf32-pj.c: Likewise. | |
970 | * elf32-ppc.c: Likewise. | |
971 | * elf32-rl78.c: Likewise. | |
972 | * elf32-rx.c: Likewise. | |
973 | * elf32-s390.c: Likewise. | |
974 | * elf32-score.c: Likewise. | |
975 | * elf32-score7.c: Likewise. | |
976 | * elf32-sh-symbian.c: Likewise. | |
977 | * elf32-sh.c: Likewise. | |
978 | * elf32-sh64.c: Likewise. | |
979 | * elf32-sparc.c: Likewise. | |
980 | * elf32-spu.c: Likewise. | |
981 | * elf32-tic6x.c: Likewise. | |
982 | * elf32-tilepro.c: Likewise. | |
983 | * elf32-v850.c: Likewise. | |
984 | * elf32-vax.c: Likewise. | |
985 | * elf32-visium.c: Likewise. | |
986 | * elf32-wasm32.c: Likewise. | |
987 | * elf32-xgate.c: Likewise. | |
988 | * elf32-xtensa.c: Likewise. | |
989 | * elf64-alpha.c: Likewise. | |
990 | * elf64-gen.c: Likewise. | |
991 | * elf64-hppa.c: Likewise. | |
992 | * elf64-ia64-vms.c: Likewise. | |
993 | * elf64-mmix.c: Likewise. | |
994 | * elf64-ppc.c: Likewise. | |
995 | * elf64-s390.c: Likewise. | |
996 | * elf64-sh64.c: Likewise. | |
997 | * elf64-sparc.c: Likewise. | |
998 | * elf64-x86-64.c: Likewise. | |
999 | * elfcode.h: Likewise. | |
1000 | * elfcore.h: Likewise. | |
1001 | * elflink.c: Likewise. | |
1002 | * elfnn-aarch64.c: Likewise. | |
1003 | * elfnn-ia64.c: Likewise. | |
1004 | * elfnn-riscv.c: Likewise. | |
1005 | * elfxx-mips.c: Likewise. | |
1006 | * elfxx-sparc.c: Likewise. | |
1007 | * elfxx-tilegx.c: Likewise. | |
1008 | * elfxx-x86.c: Likewise. | |
1009 | * hpux-core.c: Likewise. | |
1010 | * ieee.c: Likewise. | |
1011 | * ihex.c: Likewise. | |
1012 | * libbfd.c: Likewise. | |
1013 | * linker.c: Likewise. | |
1014 | * mach-o.c: Likewise. | |
1015 | * merge.c: Likewise. | |
1016 | * mmo.c: Likewise. | |
1017 | * oasys.c: Likewise. | |
1018 | * pdp11.c: Likewise. | |
1019 | * pe-mips.c: Likewise. | |
1020 | * peXXigen.c: Likewise. | |
1021 | * peicode.h: Likewise. | |
1022 | * reloc.c: Likewise. | |
1023 | * rs6000-core.c: Likewise. | |
1024 | * srec.c: Likewise. | |
1025 | * stabs.c: Likewise. | |
1026 | * vms-alpha.c: Likewise. | |
1027 | * xcofflink.c: Likewise. | |
1028 | ||
dbc88fc1 AM |
1029 | 2018-02-19 Alan Modra <amodra@gmail.com> |
1030 | ||
1031 | PR 22845 | |
1032 | * elf.c (IS_TBSS): Define. | |
1033 | (_bfd_elf_map_sections_to_segments): Use IS_TBSS. | |
1034 | (assign_file_positions_for_non_load_sections): Revert last change. | |
1035 | Properly calculate load segment limits to compare against relro limits. | |
1036 | ||
325ba6fb AM |
1037 | 2018-02-17 Alan Modra <amodra@gmail.com> |
1038 | ||
1039 | PR 22845 | |
1040 | * elf.c (assign_file_positions_for_non_load_sections): Ignore | |
1041 | degenerate zero size PT_LOAD segments when finding one overlapping | |
1042 | the PT_GNU_RELRO segment. | |
1043 | ||
d00dd7dc AM |
1044 | 2018-02-16 Alan Modra <amodra@gmail.com> |
1045 | ||
1046 | * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false. | |
1047 | (_bfd_bool_bfd_true): Rename from bfd_true. | |
1048 | (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr. | |
1049 | (_bfd_int_bfd_0): Rename from bfd_0. | |
1050 | (_bfd_uint_bfd_0): Rename from bfd_0u. | |
1051 | (_bfd_long_bfd_0): Rename from bfd_0l. | |
1052 | (_bfd_long_bfd_n1_error): Rename from _bfd_n1. | |
1053 | (_bfd_void_bfd): Rename from bfd_void. | |
1054 | (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false), | |
1055 | (_bfd_bool_bfd_link_false_error), | |
1056 | (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true), | |
1057 | (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true), | |
1058 | (_bfd_bool_bfd_asection_bfd_asection_true), | |
1059 | (_bfd_bool_bfd_asymbol_bfd_asymbol_true), | |
1060 | (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions. | |
1061 | * archive.c (_bfd_noarchive_get_elt_at_index), | |
1062 | (_bfd_noarchive_openr_next_archived_file), | |
1063 | (_bfd_noarchive_construct_extended_name_table), | |
1064 | (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname), | |
1065 | (_bfd_noarchive_write_armap): New functions. | |
1066 | * archures.c (_bfd_nowrite_set_arch_mach): New function. | |
1067 | * coff-alpha.c (alpha_ecoff_swap_coff_aux_in), | |
1068 | (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in), | |
1069 | (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out), | |
1070 | (alpha_ecoff_swap_coff_lineno_out), | |
1071 | (alpha_ecoff_swap_coff_reloc_out): New functions. | |
1072 | * coff-mips.c (mips_ecoff_swap_coff_aux_in), | |
1073 | (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in), | |
1074 | (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out), | |
1075 | (mips_ecoff_swap_coff_lineno_out), | |
1076 | (mips_ecoff_swap_coff_reloc_out): New functions. | |
1077 | * coffcode.h (coff_set_alignment_hook): Replace define with | |
1078 | new function. | |
1079 | (symname_in_debug_hook): Likewise. | |
1080 | * ecoff.c (_bfd_ecoff_set_alignment_hook): New function. | |
1081 | * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0. | |
1082 | * elf.c (assign_file_positions_except_relocs): Test | |
1083 | elf_backend_allow_non_load_phdr for NULL. | |
1084 | * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from | |
1085 | _bfd_elf_link_omit_section_dynsym. Update uses. | |
1086 | (_bfd_elf_omit_section_dynsym_all): New function. | |
1087 | * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete. | |
1088 | (_bfd_elf_omit_section_dynsym_default): Declare. | |
1089 | (_bfd_elf_omit_section_dynsym_all): Declare. | |
1090 | * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section), | |
1091 | (_bfd_nolink_bfd_get_relocated_section_contents), | |
1092 | (_bfd_nolink_bfd_lookup_section_flags), | |
1093 | (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group), | |
1094 | (_bfd_nolink_bfd_link_hash_table_create), | |
1095 | (_bfd_nolink_bfd_link_just_syms), | |
1096 | (_bfd_nolink_bfd_copy_link_hash_symbol_type), | |
1097 | (_bfd_nolink_bfd_link_split_section), | |
1098 | (_bfd_nolink_section_already_linked), | |
1099 | (_bfd_nolink_bfd_define_common_symbol), | |
1100 | (_bfd_nolink_bfd_define_start_stop): New functions. | |
1101 | * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup), | |
1102 | (_bfd_norelocs_bfd_reloc_name_lookup), | |
1103 | (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions. | |
1104 | * section.c (_bfd_nowrite_set_section_contents): New function. | |
1105 | * syms.c (_bfd_nosymbols_canonicalize_symtab), | |
1106 | (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info), | |
1107 | (_bfd_nosymbols_get_symbol_version_string), | |
1108 | (_bfd_nosymbols_bfd_is_local_label_name), | |
1109 | (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line), | |
1110 | (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info), | |
1111 | (_bfd_nosymbols_bfd_make_debug_symbol), | |
1112 | ( _bfd_nosymbols_read_minisymbols), | |
1113 | ( _bfd_nosymbols_minisymbol_to_symbol), | |
1114 | (_bfd_nodynamic_get_synthetic_symtab): New functions. | |
1115 | * libbfd-in.h: Declare new functions. Update existing defines, | |
1116 | removing casts. | |
1117 | * aix386-core.c: Update to use new hooks. Formatting. | |
1118 | * aout-adobe.c: Likewise. | |
1119 | * aout-arm.c: Likewise. | |
1120 | * aout-target.h: Likewise. | |
1121 | * aout-tic30.c: Likewise. | |
1122 | * aoutf1.h: Likewise. | |
1123 | * binary.c: Likewise. | |
1124 | * bout.c: Likewise. | |
1125 | * cisco-core.c: Likewise. | |
1126 | * coff-alpha.c: Likewise. | |
1127 | * coff-i386.c: Likewise. | |
1128 | * coff-i860.c: Likewise. | |
1129 | * coff-i960.c: Likewise. | |
1130 | * coff-ia64.c: Likewise. | |
1131 | * coff-mips.c: Likewise. | |
1132 | * coff-ppc.c: Likewise. | |
1133 | * coff-rs6000.c: Likewise. | |
1134 | * coff-sh.c: Likewise. | |
1135 | * coff-tic30.c: Likewise. | |
1136 | * coff-tic54x.c: Likewise. | |
1137 | * coff-x86_64.c: Likewise. | |
1138 | * coff64-rs6000.c: Likewise. | |
1139 | * coffcode.h: Likewise. | |
1140 | * elf-m10300.c: Likewise. | |
1141 | * elf32-cr16.c: Likewise. | |
1142 | * elf32-lm32.c: Likewise. | |
1143 | * elf32-m32r.c: Likewise. | |
1144 | * elf32-metag.c: Likewise. | |
1145 | * elf32-score.c: Likewise. | |
1146 | * elf32-score7.c: Likewise. | |
1147 | * elf32-tilepro.c: Likewise. | |
1148 | * elf32-xstormy16.c: Likewise. | |
1149 | * elf32-xtensa.c: Likewise. | |
1150 | * elf64-alpha.c: Likewise. | |
1151 | * elf64-hppa.c: Likewise. | |
1152 | * elf64-ia64-vms.c: Likewise. | |
1153 | * elf64-mmix.c: Likewise. | |
1154 | * elf64-sh64.c: Likewise. | |
1155 | * elfnn-ia64.c: Likewise. | |
1156 | * elfxx-sparc.c: Likewise. | |
1157 | * elfxx-target.h: Likewise. | |
1158 | * elfxx-tilegx.c: Likewise. | |
1159 | * elfxx-x86.h: Likewise. | |
1160 | * hp300hpux.c: Likewise. | |
1161 | * hppabsd-core.c: Likewise. | |
1162 | * hpux-core.c: Likewise. | |
1163 | * i386msdos.c: Likewise. | |
1164 | * i386os9k.c: Likewise. | |
1165 | * ieee.c: Likewise. | |
1166 | * ihex.c: Likewise. | |
1167 | * irix-core.c: Likewise. | |
1168 | * libaout.h: Likewise. | |
1169 | * libecoff.h: Likewise. | |
1170 | * mach-o-target.c: Likewise. | |
1171 | * mach-o.c: Likewise. | |
1172 | * mipsbsd.c: Likewise. | |
1173 | * mmo.c: Likewise. | |
1174 | * netbsd-core.c: Likewise. | |
1175 | * nlm-target.h: Likewise. | |
1176 | * oasys.c: Likewise. | |
1177 | * osf-core.c: Likewise. | |
1178 | * pdp11.c: Likewise. | |
1179 | * pe-mips.c: Likewise. | |
1180 | * pe-x86_64.c: Likewise. | |
1181 | * pef.c: Likewise. | |
1182 | * plugin.c: Likewise. | |
1183 | * ppcboot.c: Likewise. | |
1184 | * ptrace-core.c: Likewise. | |
1185 | * sco5-core.c: Likewise. | |
1186 | * som.c: Likewise. | |
1187 | * sparclynx.c: Likewise. | |
1188 | * srec.c: Likewise. | |
1189 | * tekhex.c: Likewise. | |
1190 | * trad-core.c: Likewise. | |
1191 | * verilog.c: Likewise. | |
1192 | * versados.c: Likewise. | |
1193 | * vms-alpha.c: Likewise. | |
1194 | * vms-lib.c: Likewise. | |
1195 | * wasm-module.c: Likewise. | |
1196 | * xsym.c: Likewise. | |
1197 | * libbfd.h: Regenerate. | |
1198 | ||
2a0d9853 JW |
1199 | 2018-02-15 Jim Wilson <jimw@sifive.com> |
1200 | ||
09ca4b9d JW |
1201 | * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore |
1202 | symbols whose section address is zero. | |
1203 | ||
2a0d9853 JW |
1204 | * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous |
1205 | when pcrel_lo reloc has an addend. Use reloc_dangerous callback for | |
1206 | bfd_reloc_dangerous. Use einfo instead of warning callback for errors. | |
1207 | Add %X%P to error messages. | |
1208 | ||
e513bd38 EB |
1209 | 2018-02-15 Eric Botcazou <ebotcazou@adacore.com> |
1210 | ||
1211 | PR ld/22832 | |
1212 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
1213 | Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup | |
1214 | and assert that the result of the call is not NULL. | |
1215 | ||
12ef3f5a NC |
1216 | 2018-02-14 Nick Clifton <nickc@redhat.com> |
1217 | ||
1218 | PR 22823 | |
1219 | Revert previous delta. Add extra casts to avoid compile time | |
1220 | warnings instead. | |
1221 | * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra | |
1222 | cast to avoid warning from gcc v8 compiler. | |
1223 | (_bfd_generic_bfd_merge_private_bfd_data): Likewise. | |
1224 | (_bfd_generic_bfd_set_private_flags): Likewise. | |
1225 | (_bfd_generic_bfd_copy_private_section_data): Likewise. | |
1226 | (_bfd_generic_bfd_copy_private_symbol_data): Likewise. | |
1227 | (_bfd_generic_bfd_copy_private_header_data): Likewise. | |
1228 | (_bfd_generic_bfd_print_private_bfd_data): Likewise. | |
1229 | (_bfd_noarchive_construct_extended_name_table): Likewise. | |
1230 | (_bfd_noarchive_truncate_arname): Likewise. | |
1231 | (_bfd_noarchive_write_ar_hdr): Likewise. | |
1232 | (_bfd_noarchive_get_elt_at_index): Likewise. | |
1233 | (_bfd_nosymbols_canonicalize_symtab): Likewise. | |
1234 | (_bfd_nosymbols_print_symbol): Likewise. | |
1235 | (_bfd_nosymbols_get_symbol_info): Likewise. | |
1236 | (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
1237 | (_bfd_nosymbols_bfd_is_local_label_name): Likewise. | |
1238 | (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. | |
1239 | (_bfd_nosymbols_get_lineno): Likewise. | |
1240 | (_bfd_nosymbols_find_nearest_line): Likewise. | |
1241 | (_bfd_nosymbols_find_line): Likewise. | |
1242 | (_bfd_nosymbols_find_inliner_info): Likewise. | |
1243 | (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. | |
1244 | (_bfd_nosymbols_read_minisymbols): Likewise. | |
1245 | (_bfd_nosymbols_minisymbol_to_symbol): Likewise. | |
1246 | (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. | |
1247 | (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. | |
1248 | (_bfd_nowrite_set_arch_mach): Likewise. | |
1249 | (_bfd_nowrite_set_section_contents): Likewise. | |
1250 | (_bfd_nolink_sizeof_headers): Likewise. | |
1251 | (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. | |
1252 | (_bfd_nolink_bfd_relax_section): Likewise. | |
1253 | (_bfd_nolink_bfd_gc_sections): Likewise. | |
1254 | (_bfd_nolink_bfd_lookup_section_flags): Likewise. | |
1255 | (_bfd_nolink_bfd_merge_sections): Likewise. | |
1256 | (_bfd_nolink_bfd_is_group_section): Likewise. | |
1257 | (_bfd_nolink_bfd_discard_group): Likewise. | |
1258 | (_bfd_nolink_bfd_link_hash_table_create): Likewise. | |
1259 | (_bfd_nolink_bfd_link_add_symbols): Likewise. | |
1260 | (_bfd_nolink_bfd_link_just_syms): Likewise. | |
1261 | (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. | |
1262 | (_bfd_nolink_bfd_final_link): Likewise. | |
1263 | (_bfd_nolink_bfd_link_split_section): Likewise. | |
1264 | (_bfd_nolink_section_already_linked): Likewise. | |
1265 | (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
1266 | (_bfd_nolink_bfd_define_start_stop): Likewise. | |
1267 | (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. | |
1268 | (_bfd_nodynamic_get_synthetic_symtab): Likewise. | |
1269 | (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. | |
1270 | (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. | |
1271 | * libbfd.c (bfd_false_any): Delete. | |
1272 | (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete. | |
1273 | (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete. | |
1274 | * libbfd.h (extern): Regenerate | |
1275 | * aout-target.h (MY_bfd_is_target_special_symbol): Add extra | |
1276 | cast to avoid warning from gcc v8 compiler. | |
1277 | * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. | |
1278 | * binary.c (binary_get_symbol_info): Likewise. | |
1279 | * coff-alpha.c (alpha_ecoff_backend_data): Likewise. | |
1280 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
1281 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
1282 | (symname_in_debug_hook): Likewise. | |
1283 | (bfd_coff_backend_data bigobj_swap_table): Likewise. | |
1284 | * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. | |
1285 | * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. | |
1286 | * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. | |
1287 | * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. | |
1288 | * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. | |
1289 | * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. | |
1290 | * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. | |
1291 | * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. | |
1292 | * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. | |
1293 | * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. | |
1294 | * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. | |
1295 | * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. | |
1296 | * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. | |
1297 | * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. | |
1298 | * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. | |
1299 | * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. | |
1300 | (bfd_elfNN_bfd_make_debug_symbol): Likewise. | |
1301 | (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. | |
1302 | (bfd_elfNN_bfd_set_private_flags): Likewise. | |
1303 | (bfd_elfNN_bfd_is_target_special_symbol): Likewise. | |
1304 | (elf_backend_init_index_section): Likewise. | |
1305 | (elf_backend_allow_non_load_phdr): Likewise. | |
1306 | * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. | |
1307 | * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. | |
1308 | * ieee.c (ieee_construct_extended_name_table): Likewise. | |
1309 | (ieee_write_armap): Likewise. | |
1310 | (ieee_write_ar_hdr): Likewise. | |
1311 | (ieee_bfd_is_target_special_symbol): Likewise. | |
1312 | * ihex.c (ihex_canonicalize_symtab): Likewise. | |
1313 | (ihex_bfd_is_target_special_symbol): Likewise. | |
1314 | * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. | |
1315 | * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. | |
1316 | (_bfd_ecoff_set_alignment_hook): Likewise. | |
1317 | * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. | |
1318 | * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. | |
1319 | * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. | |
1320 | * oasys.c (oasys_construct_extended_name_table): Likewise. | |
1321 | (oasys_write_armap): Likewise. | |
1322 | (oasys_write_ar_hdr): Likewise. | |
1323 | (oasys_bfd_is_target_special_symbol): Likewise. | |
1324 | * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. | |
1325 | * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. | |
1326 | * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. | |
1327 | * som.c (som_bfd_is_target_special_symbol): Likewise. | |
1328 | * srec.c (srec_bfd_is_target_special_symbol): Likewise. | |
1329 | * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. | |
1330 | * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. | |
1331 | * versados.c (versados_bfd_is_target_special_symbol): Likewise. | |
1332 | (versados_bfd_reloc_name_lookup): Likewise. | |
1333 | * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. | |
1334 | (vms_bfd_define_start_stop): Likewise. | |
1335 | (alpha_vms_bfd_is_target_special_symbol): Likewise. | |
1336 | * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. | |
1337 | * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. | |
1338 | ||
451875b4 L |
1339 | 2018-02-14 H.J. Lu <hongjiu.lu@intel.com> |
1340 | ||
1341 | PR ld/22842 | |
1342 | * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non | |
1343 | PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. | |
1344 | * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for | |
1345 | R_X86_64_PC32 reloc against dynamic function in data section. | |
1346 | Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. | |
1347 | (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc | |
1348 | against dynamic function in data section. | |
1349 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as | |
1350 | function address only if pcrel_plt is true. | |
1351 | (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt. | |
1352 | * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for | |
1353 | PC-relative PLT. If PLT is PC-relative, don't generate dynamic | |
1354 | PC-relative relocation against a function definition in data | |
1355 | secton in PIE. Remove the obsolete comments. | |
1356 | (elf_x86_link_hash_table): Add pcrel_plt. | |
1357 | ||
1031c264 L |
1358 | 2018-02-13 H.J. Lu <hongjiu.lu@intel.com> |
1359 | ||
1360 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll, | |
1361 | instead of bfd_link_pic, for building shared library. | |
1362 | ||
bd7ab16b L |
1363 | 2018-02-13 H.J. Lu <hongjiu.lu@intel.com> |
1364 | ||
1365 | PR gas/22791 | |
1366 | * elf64-x86-64.c (is_32bit_relative_branch): Removed. | |
1367 | (elf_x86_64_relocate_section): Check PIC relocations in PIE. | |
1368 | Remove is_32bit_relative_branch usage. Disallow PC32 reloc | |
1369 | against protected function in shared object. | |
1370 | ||
80c96350 ST |
1371 | 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru> |
1372 | ||
1373 | PR 22828 | |
1374 | * po/ru.po: Fix typo in Russian translation. | |
1375 | ||
87993319 MR |
1376 | 2018-02-13 Maciej W. Rozycki <macro@mips.com> |
1377 | ||
1378 | * wasm-module.c (wasm_scan_name_function_section): Rename | |
1379 | `index' local variable to `idx'. | |
1380 | ||
68d20676 NC |
1381 | 2018-02-13 Nick Clifton <nickc@redhat.com> |
1382 | ||
1383 | PR 22823 | |
1384 | Fix compile time warnings generated by gcc version 8. | |
1385 | * libbfd-in.h: Remove extraneous text from prototypes. | |
1386 | Add prototypes for bfd_false_any, bfd_true_any, | |
1387 | bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any, | |
1388 | bfd_n1_any, bfd_void_any. | |
1389 | (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy | |
1390 | function. | |
1391 | (_bfd_generic_bfd_merge_private_bfd_data): Likewise. | |
1392 | (_bfd_generic_bfd_set_private_flags): Likewise. | |
1393 | (_bfd_generic_bfd_copy_private_section_data): Likewise. | |
1394 | (_bfd_generic_bfd_copy_private_symbol_data): Likewise. | |
1395 | (_bfd_generic_bfd_copy_private_header_data): Likewise. | |
1396 | (_bfd_generic_bfd_print_private_bfd_data): Likewise. | |
1397 | (_bfd_noarchive_construct_extended_name_table): Likewise. | |
1398 | (_bfd_noarchive_truncate_arname): Likewise. | |
1399 | (_bfd_noarchive_write_ar_hdr): Likewise. | |
1400 | (_bfd_noarchive_get_elt_at_index): Likewise. | |
1401 | (_bfd_nosymbols_canonicalize_symtab): Likewise. | |
1402 | (_bfd_nosymbols_print_symbol): Likewise. | |
1403 | (_bfd_nosymbols_get_symbol_info): Likewise. | |
1404 | (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
1405 | (_bfd_nosymbols_bfd_is_local_label_name): Likewise. | |
1406 | (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. | |
1407 | (_bfd_nosymbols_get_lineno): Likewise. | |
1408 | (_bfd_nosymbols_find_nearest_line): Likewise. | |
1409 | (_bfd_nosymbols_find_line): Likewise. | |
1410 | (_bfd_nosymbols_find_inliner_info): Likewise. | |
1411 | (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. | |
1412 | (_bfd_nosymbols_read_minisymbols): Likewise. | |
1413 | (_bfd_nosymbols_minisymbol_to_symbol): Likewise. | |
1414 | (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. | |
1415 | (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. | |
1416 | (_bfd_nowrite_set_arch_mach): Likewise. | |
1417 | (_bfd_nowrite_set_section_contents): Likewise. | |
1418 | (_bfd_nolink_sizeof_headers): Likewise. | |
1419 | (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. | |
1420 | (_bfd_nolink_bfd_relax_section): Likewise. | |
1421 | (_bfd_nolink_bfd_gc_sections): Likewise. | |
1422 | (_bfd_nolink_bfd_lookup_section_flags): Likewise. | |
1423 | (_bfd_nolink_bfd_merge_sections): Likewise. | |
1424 | (_bfd_nolink_bfd_is_group_section): Likewise. | |
1425 | (_bfd_nolink_bfd_discard_group): Likewise. | |
1426 | (_bfd_nolink_bfd_link_hash_table_create): Likewise. | |
1427 | (_bfd_nolink_bfd_link_add_symbols): Likewise. | |
1428 | (_bfd_nolink_bfd_link_just_syms): Likewise. | |
1429 | (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. | |
1430 | (_bfd_nolink_bfd_final_link): Likewise. | |
1431 | (_bfd_nolink_bfd_link_split_section): Likewise. | |
1432 | (_bfd_nolink_section_already_linked): Likewise. | |
1433 | (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
1434 | (_bfd_nolink_bfd_define_start_stop): Likewise. | |
1435 | (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. | |
1436 | (_bfd_nodynamic_get_synthetic_symtab): Likewise. | |
1437 | (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. | |
1438 | (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. | |
1439 | * libbfd.c (bfd_false_any): New function. Like bfd_false but | |
1440 | accepts one or more arguments. | |
1441 | (bfd_true_any): Likewise. | |
1442 | (bfd_nullvoidptr_any): Likewise. | |
1443 | (bfd_0_any): Likewise. | |
1444 | (bfd_0u_any): Likewise. | |
1445 | (bfd_0l_any): Likewise. | |
1446 | (_bfd_n1_any): Likewise. | |
1447 | (bfd_void_any): Likewise. | |
1448 | * libbfd.h (extern): Regenerate | |
1449 | * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg | |
1450 | based dummy function. | |
1451 | * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. | |
1452 | * binary.c (binary_get_symbol_info): Likewise. | |
1453 | * coff-alpha.c (alpha_ecoff_backend_data): Likewise. | |
1454 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
1455 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
1456 | (symname_in_debug_hook): Likewise. | |
1457 | (bfd_coff_backend_data bigobj_swap_table): Likewise. | |
1458 | * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. | |
1459 | * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. | |
1460 | * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. | |
1461 | * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. | |
1462 | * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. | |
1463 | * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. | |
1464 | * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. | |
1465 | * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. | |
1466 | * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. | |
1467 | * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. | |
1468 | * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. | |
1469 | * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. | |
1470 | * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. | |
1471 | * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. | |
1472 | * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. | |
1473 | * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. | |
1474 | (bfd_elfNN_bfd_make_debug_symbol): Likewise. | |
1475 | (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. | |
1476 | (bfd_elfNN_bfd_set_private_flags): Likewise. | |
1477 | (bfd_elfNN_bfd_is_target_special_symbol): Likewise. | |
1478 | (elf_backend_init_index_section): Likewise. | |
1479 | (elf_backend_allow_non_load_phdr): Likewise. | |
1480 | * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. | |
1481 | * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. | |
1482 | * ieee.c (ieee_construct_extended_name_table): Likewise. | |
1483 | (ieee_write_armap): Likewise. | |
1484 | (ieee_write_ar_hdr): Likewise. | |
1485 | (ieee_bfd_is_target_special_symbol): Likewise. | |
1486 | * ihex.c (ihex_canonicalize_symtab): Likewise. | |
1487 | (ihex_bfd_is_target_special_symbol): Likewise. | |
1488 | * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. | |
1489 | * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. | |
1490 | (_bfd_ecoff_set_alignment_hook): Likewise. | |
1491 | * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. | |
1492 | * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. | |
1493 | * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. | |
1494 | * oasys.c (oasys_construct_extended_name_table): Likewise. | |
1495 | (oasys_write_armap): Likewise. | |
1496 | (oasys_write_ar_hdr): Likewise. | |
1497 | (oasys_bfd_is_target_special_symbol): Likewise. | |
1498 | * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. | |
1499 | * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. | |
1500 | * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. | |
1501 | * som.c (som_bfd_is_target_special_symbol): Likewise. | |
1502 | * srec.c (srec_bfd_is_target_special_symbol): Likewise. | |
1503 | * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. | |
1504 | * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. | |
1505 | * versados.c (versados_bfd_is_target_special_symbol): Likewise. | |
1506 | (versados_bfd_reloc_name_lookup): Likewise. | |
1507 | * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. | |
1508 | (vms_bfd_define_start_stop): Likewise. | |
1509 | (alpha_vms_bfd_is_target_special_symbol): Likewise. | |
1510 | * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. | |
1511 | * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. | |
1512 | * elf32-arc.c (get_replace_function): Assign replacement function | |
1513 | to func pointer. | |
1514 | * elf32-i370.c (i370_noop): Update prototype. | |
1515 | ||
6e5e9d58 AM |
1516 | 2018-02-13 Alan Modra <amodra@gmail.com> |
1517 | ||
1518 | PR 22836 | |
1519 | * elf.c (_bfd_elf_fixup_group_sections): Account for removed | |
1520 | relocation sections. If size reduces to just the flag word, | |
1521 | remove that too and mark with SEC_EXCLUDE. | |
1522 | * elflink.c (bfd_elf_final_link): Strip empty group sections. | |
1523 | ||
f2731e0c AM |
1524 | 2018-02-13 Alan Modra <amodra@gmail.com> |
1525 | ||
1526 | PR 22829 | |
1527 | * elf.c (assign_file_positions_for_non_load_sections): Rewrite | |
1528 | PT_GNU_RELRO setup. | |
1529 | ||
830db048 ZF |
1530 | 2018-02-12 Zebediah Figura <z.figura12@gmail.com> |
1531 | ||
1532 | * i386msdos.c (msdos_mkobject); New function. | |
1533 | (msdos_object_p): New function. | |
1534 | (i386_msdos_vec): Use msdos_object_p as the check_format | |
1535 | function. | |
1536 | * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and | |
1537 | NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and | |
1538 | IMAGE_NT_SIGNATURE. | |
1539 | * peXXigen.c: Likewise. | |
1540 | * coff-ia64.c: Likewise. | |
1541 | ||
94fe5757 NC |
1542 | 2018-02-12 Nick Clifton <nickc@redhat.com> |
1543 | ||
1544 | * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant | |
1545 | assignment. | |
0b8683b7 | 1546 | * elf32-arc.c (elf_arc_relocate_section): Likewise. |
94fe5757 | 1547 | |
d805612e | 1548 | 2018-02-09 Eric Botcazou <ebotcazou@adacore.com> |
a8735c82 EB |
1549 | |
1550 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions. | |
1551 | (sparc_elf_append_rela): Assert that there is enough room in section. | |
1552 | (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting. | |
1553 | (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak. | |
1554 | (allocate_dynrelocs): Remove outdated comments and reorder conditions. | |
1555 | For a symbol subject to a GOT relocation, reserve a slot in the | |
1556 | relocation section if the symbol isn't dynamic and we are in PIC mode. | |
1557 | (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation | |
1558 | is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation. | |
1559 | <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments. | |
1560 | <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion. | |
1561 | (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into | |
1562 | resolved_to_zero. Do not generate a dynamic GOT relocation for an | |
1563 | undefined weak symbol with non-default visibility. Remove superfluous | |
1564 | 'else' and fix formatting. | |
1565 | ||
3b4c3844 L |
1566 | 2018-02-09 H.J. Lu <hongjiu.lu@intel.com> |
1567 | ||
1568 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle | |
1569 | is_solaris. | |
1570 | (i386_elf32_sol2_vec): Don't declare. | |
1571 | (elf_i386_link_setup_gnu_properties): Also handle is_solaris. | |
1572 | Don't set need_global_offset_table. | |
1573 | (elf_i386_solaris_arch_bed): New. | |
1574 | (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for | |
1575 | Solaris. | |
1576 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check | |
1577 | target_os != is_nacl instead of target_os == is_normal. | |
1578 | (x86_64_elf64_sol2_vec): Don't declare. | |
1579 | (elf_x86_64_link_setup_gnu_properties): Check target_os != | |
1580 | is_nacl instead of target_os == is_normal. Don't set | |
1581 | need_global_offset_table. | |
1582 | (elf_x86_64_solaris_arch_bed): New. | |
1583 | (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for | |
1584 | Solaris. | |
1585 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep | |
1586 | _GLOBAL_OFFSET_TABLE_ for Solaris. | |
1587 | (_bfd_x86_elf_link_setup_gnu_properties): Don't copy | |
1588 | need_global_offset_table. | |
1589 | * elfxx-x86.h (elf_x86_target_os): Add is_solaris. | |
1590 | (elf_x86_link_hash_table): Remove need_global_offset_table. | |
1591 | (elf_x86_init_table): Likewise. | |
1592 | ||
15b23f36 L |
1593 | 2018-02-08 H.J. Lu <hongjiu.lu@intel.com> |
1594 | ||
1595 | * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): | |
1596 | Remove prototype. | |
1597 | (i386_elf32_sol2_vec): Declared. | |
1598 | (elf_i386_link_setup_gnu_properties): Set | |
1599 | need_global_offset_table with info->output_bfd->xvec. | |
1600 | * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): | |
1601 | Remove prototype. | |
1602 | (x86_64_elf64_sol2_vec): Declared. | |
1603 | (elf_x86_64_link_setup_gnu_properties): Set | |
1604 | need_global_offset_table with info->output_bfd->xvec. | |
1605 | ||
dc11dea2 L |
1606 | 2018-02-08 H.J. Lu <hongjiu.lu@intel.com> |
1607 | ||
1608 | * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): | |
1609 | New prototype. | |
1610 | (elf_i386_link_setup_gnu_properties): Set need_global_offset_table | |
1611 | for Solaris. | |
1612 | * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): | |
1613 | New prototype. | |
1614 | (elf_x86_64_link_setup_gnu_properties): Set | |
1615 | need_global_offset_table for Solaris. | |
1616 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the | |
1617 | unused _GLOBAL_OFFSET_TABLE_ for Solaris. | |
1618 | (_bfd_x86_elf_link_setup_gnu_properties): Copy | |
1619 | need_global_offset_table. | |
1620 | * elfxx-x86.h (elf_x86_link_hash_table): Add | |
1621 | need_global_offset_table. | |
1622 | (elf_x86_init_table): Likewise. | |
1623 | ||
3f48fe4a JW |
1624 | 2018-02-08 Jim Wilson <jimw@sifive.com> |
1625 | ||
1626 | * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous | |
1627 | change. | |
1628 | ||
ef135d43 NC |
1629 | 2018-02-08 Nick Clifton <nickc@redhat.com> |
1630 | ||
1631 | PR 22788 | |
1632 | * elf.c (elf_parse_notes): Reject notes with excessuively large | |
1633 | alignments. | |
1634 | ||
407aa07c AM |
1635 | 2018-02-07 Alan Modra <amodra@gmail.com> |
1636 | ||
1637 | Revert 2018-01-17 Alan Modra <amodra@gmail.com> | |
1638 | * elf32-ppc.c: Remove speculation barrier support. | |
1639 | * elf32-ppc.h: Likewise. | |
1640 | * elf64-ppc.c: Likewise. | |
1641 | * elf64-ppc.h: Likewise. | |
1642 | ||
ed01220c JW |
1643 | 2018-02-06 Jim Wilson <jimw@sifive.com> |
1644 | ||
1645 | * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used | |
1646 | callback to report an error. | |
1647 | ||
c20c30f6 EB |
1648 | 2018-02-06 Eric Botcazou <ebotcazou@adacore.com> |
1649 | ||
1650 | PR ld/22263 | |
1651 | * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic | |
1652 | into call to !bfd_link_executable and tidy up. | |
1653 | (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up. | |
1654 | <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to | |
1655 | !bfd_link_executable. | |
1656 | <R_SPARC_TLS_IE_HI22>: Likewise. | |
1657 | <GOT relocations>: Remove useless code, tidy and merge related blocks. | |
1658 | <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to | |
1659 | !bfd_link_executable. | |
1660 | <R_SPARC_WPLT30>: Tidy up. | |
1661 | (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to | |
1662 | !bfd_link_executable. | |
1663 | (allocate_dynrelocs): Likewise. | |
1664 | (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up. | |
1665 | <R_SPARC_TLS_GD_HI22>: Merge into... | |
1666 | <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to | |
1667 | sparc_elf_tls_transition and remove redundant code. | |
1668 | <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to | |
1669 | !bfd_link_executable. | |
1670 | <R_SPARC_TLS_LDO_HIX22>: Likewise. | |
1671 | <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up. | |
1672 | <R_SPARC_TLS_LDM_CALL>: Likewise. | |
1673 | <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up. | |
1674 | <R_SPARC_TLS_GD_ADD>: Likewise. | |
1675 | <R_SPARC_TLS_LDM_ADD>: Likewise. | |
1676 | <R_SPARC_TLS_LDO_ADD>: Likewise. | |
1677 | <R_SPARC_TLS_IE_LD>: Likewise. | |
1678 | ||
46d09186 NC |
1679 | 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com> |
1680 | ||
1681 | PR 22789 | |
1682 | * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf | |
1683 | functions failed to find the function name, try the generic elf | |
1684 | find function instead. | |
1685 | ||
8278e7ce SDJ |
1686 | 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com> |
1687 | ||
1688 | * coff-rs6000.c (xcoff_write_archive_contents_old): Use | |
1689 | 'memcpy' instead of 'strncpy' when writing the magic number. | |
1690 | ||
64e234d4 NC |
1691 | 2018-02-06 Nick Clifton <nickc@redhat.com> |
1692 | ||
1693 | PR 22794 | |
1694 | * opncls.c (bfd_get_debug_link_info_1): Check the size of the | |
1695 | section before attempting to read it in. | |
1696 | (bfd_get_alt_debug_link_info): Likewise. | |
1697 | ||
422f3d3d PC |
1698 | 2018-02-06 Paul Carroll <pcarroll@codesourcery.com> |
1699 | ||
1700 | * bfd/dwarf2.c (find_abstract_name): Modified to return file and | |
1701 | line information in addition to name, if they can be found. | |
1702 | ||
279b2f94 RL |
1703 | 2018-02-05 Renlin Li <renlin.li@arm.com> |
1704 | ||
1705 | PR ld/22764 | |
1706 | * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the | |
1707 | R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the | |
1708 | check for writeable section as well. | |
1709 | ||
cd048363 L |
1710 | 2018-02-05 H.J. Lu <hongjiu.lu@intel.com> |
1711 | ||
1712 | PR ld/22782 | |
1713 | * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if | |
1714 | _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve | |
1715 | undefined weak symbol to 0. | |
1716 | * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced | |
1717 | if _GLOBAL_OFFSET_TABLE_ is referenced. | |
1718 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check | |
1719 | got_referenced instead of ref_regular_nonweak. Remove the | |
1720 | unused _GLOBAL_OFFSET_TABLE_ from symbol table. | |
1721 | * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced. | |
1722 | ||
e65b1a78 MR |
1723 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
1724 | ||
1725 | * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to | |
1726 | initialize `hi_reloc'. | |
1727 | ||
2d6dda71 MR |
1728 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
1729 | ||
1730 | * elfxx-mips.c (_bfd_mips_elf_section_processing): For | |
1731 | SHT_MIPS_REGINFO sections don't assert the correct size and | |
1732 | report an error instead. | |
1733 | ||
75506100 MR |
1734 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
1735 | ||
1736 | * elf.c (_bfd_elf_write_object_contents): Propagate a failure | |
1737 | status from `->elf_backend_section_processing'. | |
1738 | ||
7f02625e JW |
1739 | 2018-02-02 Jim Wilson <jimw@sifive.com> |
1740 | ||
1741 | PR ld/22756 | |
1742 | * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info. | |
1743 | If link_info->wrap_hash, check for a duplicate symbol and ignore. | |
1744 | (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le): | |
1745 | Pass new argument to riscv_relax_delete_bytes. | |
1746 | (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove | |
1747 | ATTRIBUTE_UNUSED from link_info parameter. | |
1748 | ||
d830549d AM |
1749 | 2018-02-02 Alan Modra <amodra@gmail.com> |
1750 | ||
1751 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops | |
1752 | emitted for toc sequence optimization. Set and use "howto" later. | |
1753 | ||
e99955cd SM |
1754 | 2018-02-01 Simon Marchi <simon.marchi@ericsson.com> |
1755 | ||
1756 | * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer | |
1757 | arithmetic on NULL pointer. | |
1758 | * elflink.c (_bfd_elf_archive_symbol_lookup, | |
1759 | elf_link_add_archive_symbols): Likewise. | |
1760 | ||
bf3077a6 MM |
1761 | 2018-01-31 Michael Matz <matz@suse.de> |
1762 | ||
1763 | * elflink.c (bfd_elf_define_start_stop): Fix check of | |
1764 | def_dynamic. | |
1765 | ||
823143c6 L |
1766 | 2018-01-31 H.J. Lu <hongjiu.lu@intel.com> |
1767 | ||
1768 | PR ld/21964 | |
1769 | * elflink.c (bfd_elf_define_start_stop): Check if __start and | |
1770 | __stop symbols are referenced by shared objects. | |
1771 | ||
76cb3a89 AM |
1772 | 2018-01-30 Alan Modra <amodra@gmail.com> |
1773 | ||
1774 | PR 22758 | |
1775 | * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new | |
1776 | segment when demand paged with lma on the same page. Test this | |
1777 | before load/non-load, executable/non-executable, | |
1778 | writable/non-writable tests and simplify. Delete bogus relro | |
1779 | condition in writable/non-writable test. Delete outdated | |
1780 | comment. Formatting. | |
1781 | ||
36b8fda5 AM |
1782 | 2018-01-30 Alan Modra <amodra@gmail.com> |
1783 | ||
1784 | * elflink.c (bfd_elf_define_start_stop): Make __start and __stop | |
1785 | symbols dynamic. | |
1786 | ||
eb77f6a4 AM |
1787 | 2018-01-29 Alan Modra <amodra@gmail.com> |
1788 | ||
1789 | PR 22741 | |
1790 | * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in | |
1791 | range before converting to a symbol table pointer. | |
1792 | ||
7d73b4c8 NC |
1793 | 2018-01-27 Nick Clifton <nickc@redhat.com> |
1794 | ||
1795 | * po/ru.po: Updated Russian translation. | |
1796 | ||
32253bb7 AM |
1797 | 2018-01-26 Alan Modra <amodra@gmail.com> |
1798 | ||
1799 | * elflink.c (bfd_elf_define_start_stop): Override symbols when | |
1800 | they are defined dynamically. | |
1801 | ||
ba21f564 AM |
1802 | 2018-01-26 Alan Modra <amodra@gmail.com> |
1803 | ||
1804 | * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when | |
1805 | .branch_lt changes size. | |
1806 | ||
38e64b0e AM |
1807 | 2018-01-25 Alan Modra <amodra@gmail.com> |
1808 | ||
1809 | PR 22746 | |
1810 | * elfcode.h (elf_object_p): Avoid integer overflow. | |
1811 | ||
bb363086 EB |
1812 | 2018-01-25 Eric Botcazou <ebotcazou@adacore.com> |
1813 | ||
1814 | PR ld/22727 | |
1815 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
1816 | Do a mere lookup of the __tls_get_addr symbol instead of adding it. | |
1817 | ||
1818 | Revert | |
1819 | 2017-10-19 H.J. Lu <hongjiu.lu@intel.com> | |
1820 | ||
1821 | PR ld/22263 | |
1822 | * elfxx-sparc.c (sparc_elf_tls_transition): Replace | |
1823 | bfd_link_pic with !bfd_link_executable, !bfd_link_pic with | |
1824 | bfd_link_executable for TLS check. | |
1825 | (_bfd_sparc_elf_check_relocs): Likewise. | |
1826 | (allocate_dynrelocs): Likewise. | |
1827 | (_bfd_sparc_elf_relocate_section): Likewise. | |
1828 | ||
1daf502a RL |
1829 | 2018-01-24 Renlin Li <renlin.li@arm.com> |
1830 | ||
1831 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for | |
1832 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
1833 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
1834 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
1835 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
1836 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
1837 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
1838 | ||
32247401 RL |
1839 | 2018-01-24 Renlin Li <renlin.li@arm.com> |
1840 | ||
1841 | * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0, | |
1842 | BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1, | |
1843 | BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2, | |
1844 | BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
1845 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for | |
1846 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
1847 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
1848 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
1849 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
1850 | * bfd-in2.h: Regenerate. | |
1851 | * libbfd.h: Regenerate. | |
1852 | ||
1c5e4ee9 MR |
1853 | 2018-01-23 Maciej W. Rozycki <macro@mips.com> |
1854 | ||
1855 | * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale | |
1856 | `mips_elf32_section_processing' comment reference. | |
1857 | ||
8a1b824a L |
1858 | 2018-01-20 H.J. Lu <hongjiu.lu@intel.com> |
1859 | ||
1860 | PR ld/22721 | |
1861 | * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the | |
1862 | versioned __tls_get_addr symbol. | |
1863 | ||
ee3fbc1e NC |
1864 | 2018-01-19 Nick Clifton <nickc@redhat.com> |
1865 | ||
1866 | * po/fr.po: Updated French translation. | |
1867 | ||
691d2e9a AM |
1868 | 2018-01-18 Alan Modra <amodra@gmail.com> |
1869 | ||
1870 | * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink. | |
1871 | * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align. | |
1872 | (ppc64_elf_build_stubs): Likewise. | |
1873 | ||
4bfce128 NC |
1874 | 2018-01-17 Nick Clifton <nickc@redhat.com> |
1875 | ||
1876 | * po/ru.po: Updated Russian translation. | |
1877 | * po/uk/po: Updated Ukranian translation. | |
1878 | ||
c75bc4f7 AM |
1879 | 2018-01-17 Alan Modra <amodra@gmail.com> |
1880 | ||
1881 | * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning. | |
1882 | ||
1be5d8d3 AM |
1883 | 2018-01-17 Alan Modra <amodra@gmail.com> |
1884 | ||
1885 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier. | |
1886 | (CRSETEQ, BEQCTRM): Define. | |
1887 | (is_nonpic_glink_stub): Don't check bctr. | |
1888 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
1889 | (ppc_elf_relax_section): Size speculation barrier. | |
1890 | (output_bctr): New function. | |
1891 | (write_glink_stub): Use output_bctr. | |
1892 | (ppc_elf_relocate_section): Use output_bctr for long branch stub. | |
1893 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
1894 | (ppc_elf_finish_dynamic_sections): Use output_bctr. | |
1895 | * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps. | |
1896 | * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define. | |
1897 | (GLINK_PLTRESOLVE_SIZE): Size speculation barrier. | |
1898 | (size_global_entry_stubs): Handle speculation barrier sizing. | |
1899 | (plt_stub_size): Likewise. | |
1900 | (output_bctr): New function. | |
1901 | (build_plt_stub, build_tls_get_addr_stub): Output speculation | |
1902 | barrier. | |
1903 | (ppc_build_one_stub): Likewise for ppc_stub_plt_branch. | |
1904 | (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch. | |
1905 | (build_global_entry_stubs): Output speculation barrier. | |
1906 | (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub. | |
1907 | * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps. | |
1908 | ||
9e390558 AM |
1909 | 2018-01-17 Alan Modra <amodra@gmail.com> |
1910 | ||
1911 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle | |
1912 | __tls_get_addr_opt, and alignment sizing. | |
1913 | (TLS_GET_ADDR_GLINK_SIZE): Delete. | |
1914 | (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE. | |
1915 | (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6, | |
1916 | or 8 insns. | |
1917 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
1918 | (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE. | |
1919 | (ppc_elf_size_dynamic_sections): Likewise. Size branch table | |
1920 | by PLT reloc count. | |
1921 | (write_glink_stub): Handle __tls_get_addr_opt stub. | |
1922 | Pad out to size given by GLINK_ENTRY_SIZE. | |
1923 | (ppc_elf_relocate_section): Adjust write_glink_stub call. | |
1924 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
1925 | (ppc_elf_finish_dynamic_sections): Write PLTresolve without using | |
1926 | insn array since so many need rewriting. | |
1927 | * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align. | |
1928 | * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from | |
1929 | GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without | |
1930 | nops. Adjust all uses. | |
1931 | (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE | |
1932 | in glink_vma calculation. | |
1933 | (struct ppc_link_hash_table): Add global_entry section pointer. | |
1934 | (create_linkage_sections): Create separate section for global | |
1935 | entry stubs. | |
1936 | (PPC_LO, PPC_HI, PPC_HA): Move earlier. | |
1937 | (size_global_entry_stubs): Handle sizing for aligned stubs. | |
1938 | (ppc64_elf_size_dynamic_sections): Handle global_entry alloc, | |
1939 | and don't stash end of glink branch table in rawsize. | |
1940 | (ppc_build_one_stub): Rewrite stub size calculations. | |
1941 | (build_global_entry_stubs): Use new section. | |
1942 | (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops. | |
1943 | Build lazy link stubs out to end of section. Build global entry | |
1944 | stubs in new section. | |
1945 | ||
616dcb87 NC |
1946 | 2018-01-15 Nick Clifton <nickc@redhat.com> |
1947 | ||
1948 | * po/uk.po: Updated Ukranian translation. | |
1949 | ||
3957a496 NC |
1950 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
1951 | ||
1952 | * po/bfd.pot: Regenerated. | |
1953 | ||
769c7ea5 NC |
1954 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
1955 | ||
1956 | * version.m4: Bump version to 2.30.51 | |
1957 | * configure: Regenerate. | |
1958 | ||
faf766e3 NC |
1959 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
1960 | ||
1961 | 2.30 branch created. | |
1962 | ||
564e11c9 JW |
1963 | 2018-01-12 Jens Widell <jl@opera.com> |
1964 | ||
1965 | * elf.c (setup_group): Optimize search for group by remembering | |
1966 | last found group and restarting search at that index. | |
1967 | * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field. | |
1968 | ||
a78eea16 AM |
1969 | 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net> |
1970 | ||
1971 | * aoutx.h (aout_link_check_ar_symbols): Remove default and handle | |
1972 | bfd_link_common_skip_none in switch. | |
1973 | ||
87e79a65 AM |
1974 | 2018-01-12 Alan Modra <amodra@gmail.com> |
1975 | ||
1976 | PR ld/22649 | |
1977 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic | |
1978 | references on forced local symbols. | |
1979 | ||
58807c48 VI |
1980 | 2018-01-12 Vlad Ivanov <vlad@ivanov.email> |
1981 | ||
1982 | * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when | |
1983 | .reginfo section has wrong size. | |
1984 | ||
2888249f L |
1985 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1986 | ||
1987 | PR ld/22393 | |
1988 | * elf.c (_bfd_elf_map_sections_to_segments): When generating | |
1989 | separate code and read-only data LOAD segments, create a new | |
1990 | LOAD segment if the previous section contains text and the | |
1991 | current section doesn't or vice versa. Don't put a writable | |
1992 | section in a read-only segment if there is a RELRO segment. | |
1993 | ||
d664fd41 L |
1994 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1995 | ||
1996 | PR ld/22649 | |
1997 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic | |
1998 | references on forced local symbols. | |
1999 | ||
8b6f4cd3 L |
2000 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
2001 | ||
2002 | PR ld/22677 | |
2003 | * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY, | |
2004 | INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section. | |
2005 | ||
9c70c522 | 2006 | 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
6cef73f9 KLC |
2007 | |
2008 | PR 22662 | |
2009 | * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error. | |
2010 | ||
ddb2bbcf JB |
2011 | 2018-01-03 John Baldwin <jhb@FreeBSD.org> |
2012 | ||
2013 | * elf.c (elfcore_grok_freebsd_note): Handle | |
2014 | NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and | |
2015 | NT_FREEBSD_PROCSTAT_VMMAP. | |
2016 | ||
219d1afa AM |
2017 | 2018-01-03 Alan Modra <amodra@gmail.com> |
2018 | ||
2019 | Update year range in copyright notice of all files. | |
2020 | ||
1e563868 | 2021 | For older changes see ChangeLog-2017 |
3499769a | 2022 | \f |
1e563868 | 2023 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
2024 | |
2025 | Copying and distribution of this file, with or without modification, | |
2026 | are permitted in any medium without royalty provided the copyright | |
2027 | notice and this notice are preserved. | |
2028 | ||
2029 | Local Variables: | |
2030 | mode: change-log | |
2031 | left-margin: 8 | |
2032 | fill-column: 74 | |
2033 | version-control: never | |
2034 | End: |