PowerPC section flag tidy
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2019-10-07 Alan Modra <amodra@gmail.com>
2
3 * elf32-ppc.c (nomark_tls_get_addr): Rename from has_tls_get_addr_call
4 throughout.
5 * elf64-ppc.c (nomark_tls_get_addr): Likewise.
6
7 2019-10-04 Alan Modra <amodra@gmail.com>
8
9 * elf64-ppc.c (ppc64_elf_check_relocs): Move initialisation of vars.
10 (ppc64_elf_tls_optimize): Correct is_local condition.
11 (allocate_got): Don't reserve dynamic relocations for any of the
12 tls got relocs in PIEs when the symbol is local.
13 (allocate_dynrelocs): Correct validity test for local sym using
14 tlsld_got slot.
15 (ppc64_elf_size_dynamic_sections): Don't reserve dynamic relocations
16 for any of the tls got relocs in PIEs.
17 (ppc64_elf_layout_multitoc): Likewise.
18 (ppc64_elf_relocate_section): Correct validity test for local sym
19 using tlsld_got slot. Don't emit dynamic relocations for any of
20 the tls got relocs in PIEs when the symbol is local.
21 * elf32-ppc.c (ppc_elf_tls_optimize): Correct is_local condition.
22 (got_relocs_needed): Delete.
23 (allocate_dynrelocs): Correct validity test for local sym using
24 tlsld_got slot. Don't reserve dynamic relocations for any of the
25 tls got relocs in PIEs when the symbol is local.
26 (ppc_elf_size_dynamic_sections): Don't reserve dynamic relocations
27 for any of the tls got relocs in PIEs.
28 (ppc_elf_relocate_section): Correct validity test for local sym
29 using tlsld_got slot. Don't emit dynamic relocations for any of
30 the tls got relocs in PIEs when the symbol is local.
31
32 2019-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
33
34 PR ld/22263
35 PR ld/25056
36 * elf32-arm.c (elf32_arm_tls_transition): Use bfd_link_dll instead of
37 bfd_link_pic for TLS checks.
38 (elf32_arm_final_link_relocate): Likewise.
39 (allocate_dynrelocs_for_symbol): Likewise.
40
41 2019-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
42
43 PR ld/25062
44 * elf32-arm.c (elf32_arm_final_link_relocate): Sign extend data.
45
46 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
47
48 * elf-bfd.h (bfd_section_is_ctf): New inline function.
49 * elf.c (special_sections_c): Add ".ctf".
50 (assign_file_positions_for_non_load_sections): Note that
51 compressed debugging sections etc are not assigned here. Treat
52 CTF sections like SEC_ELF_COMPRESS sections when is_linker_output:
53 sh_offset -1.
54 (assign_file_positions_except_relocs): Likewise.
55 (find_section_in_list): Note that debugging and CTF sections, as
56 well as reloc sections, are assigned later.
57 (_bfd_elf_assign_file_positions_for_non_load): CTF sections get
58 their size and contents updated.
59 (_bfd_elf_set_section_contents): Skip CTF sections: unlike
60 compressed sections, they have no uncompressed content to copy at
61 this stage.
62 * elflink.c (elf_link_swap_symbols_out): Call the examine_strtab
63 callback right before the strtab is written out.
64 (bfd_elf_final_link): Don't cache the section contents of CTF
65 sections: they are not populated yet. Call the emit_ctf callback
66 right at the end, after all the symbols and strings are flushed
67 out.
68
69 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
70
71 * elf-strtab.c (_bfd_elf_strtab_len): New.
72 (_bfd_elf_strtab_str): Likewise.
73 * bfd-elf.h: Declare them.
74
75 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
76
77 * elf-bfd.h (bfd_elf_get_str_section): Add.
78 * elf.c (bfd_elf_get_str_section): No longer static.
79
80 2019-09-26 Alan Modra <amodra@gmail.com>
81
82 PR 24262
83 * Makefile.am (AM_CPPFLAGS): Add -DLIBDIR.
84 * plugin.c (load_plugin): Search both ${libdir}/bfd-plugins and
85 ${bindir}/../lib/bfd-plugins if different.
86 * Makefile.in: Regenerate.
87
88 2019-09-23 Alan Modra <amodra@gmail.com>
89
90 * elf64-ppc.c (ppc64_elf_check_relocs): Use bfd_link_executable
91 in choosing between different actions for shared library and
92 non-shared library cases. Delete ELIMINATE_COPY_RELOCS test.
93 (dec_dynrel_count): Likewise. Account for ifunc special case.
94 (ppc64_elf_adjust_dynamic_symbol): Copy relocs are for executables,
95 not non-pic.
96 (allocate_dynrelocs): Comment fixes. Delete ELIMINATE_COPY_RELOCS
97 test.
98
99 2019-09-23 Alan Modra <amodra@gmail.com>
100
101 * Makefile.am (SOURCE_HFILES): Add many missing .h files.
102 * Makefile.in: Regenerate.
103 * po/SRC-POTFILES.in: Regenerate.
104
105 2019-09-23 Alan Modra <amodra@gmail.com>
106
107 * bfd-in.h (bfd_symbol, bfd_section_already_linked),
108 (bfd_elf_version_tree): Delete forward declarations.
109 Move other forward decls and remaining elf function decl later.
110 (bfd_section_already_linked_table_init),
111 (bfd_section_already_linked_table_free),
112 (_bfd_handle_already_linked, _bfd_nearby_section),
113 (_bfd_fix_excluded_sec_syms): Move to bfdlink.h.
114
115 2019-09-23 Alan Modra <amodra@gmail.com>
116
117 * bfd-in.h: Move ecoff function declarations..
118 * ecoff-bfd.h: ..to here, new file.
119 * ecoff.c: Include ecoff-bfd.h.
120 * ecofflink.c: Likewise.
121 * elf64-alpha.c: Likewise.
122 * elfxx-mips.c: Likewise.
123 * bfd-in2.h: Regenerate.
124
125 2019-09-23 Alan Modra <amodra@gmail.com>
126
127 * bfd-in.h (enum notice_asneeded_action): Move to bfdlink.h.
128 Move most other elf declarations..
129 * elf-bfd.h: ..to here.
130 * bfd-in2.h: Regenerate.
131
132 2019-09-23 Alan Modra <amodra@gmail.com>
133
134 * bfd-in.h: Move m68k function declaration..
135 * cpu-m68k.h: ..to here, new file..
136 * elf32-m68k.h: ..and here, new file.
137 * elf32-m68k.c: Include cpu-m68k.h and elf32-m68k.h.
138 * bfd-in2.h: Regenerate.
139
140 2019-09-23 Alan Modra <amodra@gmail.com>
141
142 * bfd-in.h: Move bfin function declaration..
143 * elf32-bfin.h: ..to here, new file.
144 * elf32-bfin.c: Include elf32-bfin.h.
145 * bfd-in2.h: Regenerate.
146
147 2019-09-23 Alan Modra <amodra@gmail.com>
148
149 * bfd-in.h: Move cr16 function declaration..
150 * elf32-cr16.h: ..to here, new file.
151 * elf32-cr16.c: Include elf32-cr16.h.
152 * bfd-in2.h: Regenerate.
153
154 2019-09-23 Alan Modra <amodra@gmail.com>
155
156 * bfd-in.h (bfd_sunos_get_needed_list),
157 (bfd_sunos_record_link_assignment),
158 (bfd_sunos_size_dynamic_sections),
159 (bfd_i386linux_size_dynamic_sections),
160 (bfd_sparclinux_size_dynamic_sections): Delete obsolete decls.
161 * bfd-in2.h: Regenerate.
162
163 2019-09-23 Alan Modra <amodra@gmail.com>
164
165 * bfd-in.h: Move xcoff function declarations..
166 * xcofflink.h: ..to here, new file.
167 * xcofflink.c: Include xcofflink.h.
168 * coff-rs6000.c (bfd_xcoff_ar_archive_set_magic): Delete unused func.
169 * bfd-in2.h: Regenerate.
170
171 2019-09-23 Alan Modra <amodra@gmail.com>
172
173 * bfd-in.h: Delete coff forward refs and move coff declaration..
174 * coff-bfd.h: ..to here.
175 * bfd-in2.h: Regenerate.
176
177 2019-09-23 Alan Modra <amodra@gmail.com>
178
179 * bfd-in.h: Move arm declaraions..
180 * cpu-arm.h: ..to here, new file..
181 * coff-arm.h: ..and here, new file..
182 * elf32-arm.h: ..and here, new file.
183 * cpu-arm.c: Include cpu-arm.h.
184 * coff-arm.c: Include cpu-arm.h and coff-arm.h.
185 * elf32-arm.c: Include cpu-arm.h and elf32-arm.h.
186 * pe-arm.c: Move function rename defines later.
187 * pe-arm-wince.c: Likewise and include sysdep.h and bfd.h early.
188 * bfd-in2.h: Regenerate.
189
190 2019-09-23 Alan Modra <amodra@gmail.com>
191
192 * bfd-in.h: Move tic6x function declaration..
193 * elf32-tic6x.h: ..to here.
194 * bfd-in2.h: Regenerate.
195
196 2019-09-23 Alan Modra <amodra@gmail.com>
197
198 * bfd-in.h: Move aarch64 declarations and defines..
199 * cpu-aarch64.h: ..to here, new file..
200 * elfxx-aarch64.h: ..and here.
201 * cpu-aarch64.c: Include cpu-aarch64.h.
202 * elfnn-aarch64.c: Likewise.
203 * bfd-in2.h: Regenerate.
204
205 2019-09-23 Alan Modra <amodra@gmail.com>
206
207 * bfd-in.h: Delete ticoff function declarations.
208 * coff-tic54x.c (bfd_ticoff_set_section_load_page),
209 (bfd_ticoff_get_section_load_page): Make static.
210 * bfd-in2.h: Regenerate.
211
212 2019-09-23 Alan Modra <amodra@gmail.com>
213
214 * bfd-in.h: Move h8300 function declaration to..
215 * cpu-h8300.h: ..here, new file.
216 * cpu-h8300.c: Include cpu-h8300.h.
217 * elf32-h8300.c: Likewise.
218 * bfd-in2.h: Regenerate.
219
220 2019-09-23 Alan Modra <amodra@gmail.com>
221
222 * bfd-in.h: Move ia64 function declarations..
223 * elfxx-ia64.h: ..to here.
224 * bfd-in2.h: Regenerate.
225
226 2019-09-23 Alan Modra <amodra@gmail.com>
227
228 * bfd-in.h: Move v850 function declarations..
229 * elf32-v850.h: ..to here, new file.
230 * elf32-v850.c: Include elf32-v850.h.
231 * bfd-in2.h: Regenerate.
232
233 2019-09-23 Alan Modra <amodra@gmail.com>
234
235 * bfd-in.h: Move mips function declaration to..
236 * elfxx-mips.h: ..here.
237 * bfd-in2.h: Regenerate.
238
239 2019-09-23 Alan Modra <amodra@gmail.com>
240
241 * bfd-in.h: Move csky function declarations to..
242 * elf32-csky.h: ..here, new file.
243 * elf32-csky.c: Include elf32-csky.h.
244 * bfd-in2.h: Regenerate.
245
246 2019-09-20 Nelson Chu <nelson.chu@sifive.com>
247
248 * elfnn-riscv.c (riscv_pcgp_hi_reloc): Add new field undefined_weak.
249 (riscv_record_pcgp_hi_reloc): New parameter undefined_weak.
250 Set undefined_weak field from it.
251 (relax_func_t): New parameter undefined_weak.
252 (_bfd_riscv_relax_call): New ignored parameter undefined_weak.
253 (_bfd_riscv_relax_tls_le): Likewise.
254 (_bfd_riscv_relax_align): Likewise.
255 (_bfd_riscv_relax_delete): Likewise.
256 (_bfd_riscv_relax_lui): New parameter undefined_weak. If true,
257 allow relaxing. For LO12* relocs, set rs1 to x0 when undefined_weak.
258 (_bfd_riscv_relax_pc): New parameter undefined_weak. For LO12* relocs,
259 set undefined_weak from hi_reloc. If true, allow relaxing. For LO12*
260 relocs, set rs1 to x0 when undefined_weak and change to non-pcrel
261 reloc.
262 (_bfd_riscv_relax_section): New local undefined_weak. Set for
263 undef weak relocs that can be relaxed. Pass to relax_func call.
264
265 2019-09-20 Alan Modra <amodra@gmail.com>
266
267 * bfd-in.h (bfd_section_name, bfd_section_size, bfd_section_vma),
268 (bfd_section_lma, bfd_section_alignment, bfd_section_flags),
269 (bfd_section_userdata, bfd_is_com_section, discarded_section),
270 (bfd_get_section_limit_octets, bfd_get_section_limit): Delete macros.
271 * bfd.c (bfd_get_section_limit_octets, bfd_get_section_limit),
272 (bfd_section_list_remove, bfd_section_list_append),
273 (bfd_section_list_prepend, bfd_section_list_insert_after),
274 (bfd_section_list_insert_before, bfd_section_removed_from_list):
275 New inline functions.
276 * section.c (bfd_is_und_section, bfd_is_abs_section),
277 (bfd_is_ind_section, bfd_is_const_section, bfd_section_list_remove),
278 (bfd_section_list_append, bfd_section_list_prepend),
279 (bfd_section_list_insert_after, bfd_section_list_insert_before),
280 (bfd_section_removed_from_list): Delete macros.
281 (bfd_section_name, bfd_section_size, bfd_section_vma),
282 (bfd_section_lma, bfd_section_alignment, bfd_section_flags),
283 (bfd_section_userdata, bfd_is_com_section, bfd_is_und_section),
284 (bfd_is_abs_section, bfd_is_ind_section, bfd_is_const_section),
285 (discarded_section): New inline functions.
286 * bfd-in2.h: Regenerate.
287
288 2019-09-20 Alan Modra <amodra@gmail.com>
289
290 * bfd-in.h (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
291 (bfd_asymbol_bfd, bfd_asymbol_flavour, bfd_set_asymbol_name): Delete.
292 * bfd.c (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
293 (bfd_asymbol_bfd, bfd_set_asymbol_name): New inline functions.
294 * targets.c (bfd_asymbol_flavour): Likewise.
295 * bfd-in2.h: Regenerate.
296
297 2019-09-20 Alan Modra <amodra@gmail.com>
298
299 * archive.c (bfd_generic_archive_p): Use bfd_set_thin_archive.
300 * bfd-in.h (bfd_get_filename, bfd_get_cacheable, bfd_get_format),
301 (bfd_get_target, bfd_get_flavour, bfd_family_coff, bfd_big_endian),
302 (bfd_little_endian, bfd_header_big_endian, bfd_header_little_endian),
303 (bfd_get_file_flags, bfd_applicable_file_flags),
304 (bfd_applicable_section_flags, bfd_has_map, bfd_is_thin_archive),
305 (bfd_valid_reloc_types, bfd_usrdata, bfd_get_start_address),
306 (bfd_get_symcount, bfd_get_outsymbols, bfd_count_sections),
307 (bfd_get_dynamic_symcount, bfd_get_symbol_leading_char): Delete.
308 * bfd/bfd.c (bfd_get_filename, bfd_get_cacheable, bfd_get_format),
309 (bfd_get_file_flags, bfd_get_start_address, bfd_get_symcount),
310 (bfd_get_dynamic_symcount, bfd_get_outsymbols, bfd_count_sections),
311 (bfd_has_map, bfd_is_thin_archive, bfd_set_thin_archive),
312 (bfd_usrdata, bfd_set_usrdata): New inline functions.
313 * targets.c (bfd_get_target, bfd_get_flavour),
314 (bfd_applicable_file_flags, bfd_family_coff, bfd_big_endian),
315 (bfd_little_endian, bfd_header_big_endian),
316 (bfd_header_little_endian, bfd_applicable_section_flags),
317 (bfd_get_symbol_leading_char): New inline functions.
318 * bfd-in2.h: Regenerate.
319
320 2019-09-20 Alan Modra <amodra@gmail.com>
321
322 * elf64-ppc.c (ppc64_glibc_dynamic_reloc): New function.
323 (ppc64_elf_relocate_section): Warn if emitting unsupported dynamic
324 relocations.
325
326 2019-09-18 Alan Modra <amodra@gmail.com>
327
328 * bfd-in.h (bfd_get_section_name, bfd_get_section_vma),
329 (bfd_get_section_lma, bfd_get_section_alignment),
330 (bfd_get_section_size, bfd_get_section_flags),
331 (bfd_get_section_userdata): Delete.
332 (bfd_section_name, bfd_section_size, bfd_section_vma),
333 (bfd_section_lma, bfd_section_alignment): Lose bfd parameter.
334 (bfd_section_flags, bfd_section_userdata): New.
335 (bfd_is_com_section): Rename parameter.
336 * section.c (bfd_set_section_userdata, bfd_set_section_vma),
337 (bfd_set_section_alignment, bfd_set_section_flags, bfd_rename_section),
338 (bfd_set_section_size): Delete bfd parameter, rename section parameter.
339 (bfd_set_section_lma): New.
340 * bfd-in2.h: Regenerate.
341 * mach-o.c (bfd_mach_o_init_section_from_mach_o): Delete bfd param,
342 update callers.
343 * aoutx.h, * bfd.c, * coff-alpha.c, * coff-arm.c, * coff-mips.c,
344 * coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
345 * compress.c, * ecoff.c, * elf-eh-frame.c, * elf-hppa.h,
346 * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-properties.c,
347 * elf-s390-common.c, * elf-vxworks.c, * elf.c, * elf32-arc.c,
348 * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c, * elf32-cr16.c,
349 * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c, * elf32-csky.c,
350 * elf32-d10v.c, * elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c,
351 * elf32-ft32.c, * elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c,
352 * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
353 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c,
354 * elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c,
355 * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
356 * elf32-nios2.c, * elf32-or1k.c, * elf32-ppc.c, * elf32-pru.c,
357 * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
358 * elf32-score7.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
359 * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c, * elf32-visium.c,
360 * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
361 * elf64-bpf.c, * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c,
362 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
363 * elflink.c, * elfnn-aarch64.c, * elfnn-ia64.c, * elfnn-riscv.c,
364 * elfxx-aarch64.c, * elfxx-mips.c, * elfxx-sparc.c,
365 * elfxx-tilegx.c, * elfxx-x86.c, * i386msdos.c, * linker.c,
366 * mach-o.c, * mmo.c, * opncls.c, * pdp11.c, * pei-x86_64.c,
367 * peicode.h, * reloc.c, * section.c, * syms.c, * vms-alpha.c,
368 * xcofflink.c: Update throughout for bfd section macro and function
369 changes.
370
371 2019-09-18 Alan Modra <amodra@gmail.com>
372
373 * bfd-in.h (bfd_asymbol_section): Rename from bfd_get_section.
374 (bfd_get_output_section): Delete.
375 (bfd_asymbol_base): Delete.
376 (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
377 (bfd_asymbol_bfd, bfd_asymbol_flavour): Tidy.
378 (bfd_set_asymbol_name): New macro.
379 * bfd-in2.h: Regenerate.
380 * aout-cris.c: Update throughout to use bfd_asymbol_section.
381 * aoutx.h: Likewise.
382 * cofflink.c: Likewise.
383 * dwarf2.c: Likewise.
384 * ecoff.c: Likewise.
385 * elf.c: Likewise.
386 * elf32-arm.c: Likewise.
387 * elf32-mips.c: Likewise.
388 * elf32-score.c: Likewise.
389 * elf32-score7.c: Likewise.
390 * elfn32-mips.c: Likewise.
391 * elfnn-aarch64.c: Likewise.
392 * elfxx-mips.c: Likewise.
393 * linker.c: Likewise.
394 * pdp11.c: Likewise.
395 * elf64-mmix.c (mmix_elf_reloc): Part expand bfd_get_output_section.
396
397 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
398
399 * Makefile.in: Re-generate.
400 * configure: Re-generate.
401 * doc/Makefile.in: Re-generate.
402
403 2019-09-18 Alan Modra <amodra@gmail.com>
404
405 * aoutx.h (slurp_symbol_table): Don't set symcount using bfd_get
406 macros.
407 * pdp11.c (slurp_symbol_table): Likewise.
408 * som.c (som_slurp_symbol_table): Likewise.
409 * coff-ppc.c (ppc_bfd_coff_final_link): Likewise.
410 * coffcode.h (coff_slurp_symbol_table): Likewise.
411 * cofflink.c (_bfd_coff_final_link): Likewise.
412 * ecoff.c (ecoff_slurp_symbolic_header): Likewise.
413 (_bfd_ecoff_slurp_symbolic_info): Likewise.
414 (_bfd_ecoff_slurp_symbol_table): Likewise.
415 (_bfd_ecoff_bfd_final_link): Likewise.
416 * elf.c (_bfd_elf_canonicalize_symtab): Likewise.
417 * elflink.c (elf_link_output_symstrtab): Likewise.
418 (bfd_elf_final_link): Likewise.
419 * peicode.h (pe_ILF_build_a_bfd): Likewise.
420 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
421 * aoutx.h (some_aout_object_p, slurp_symbol_table): Don't set
422 start_address or symcount using bfd_get macros.
423 * coffgen.c (coff_real_object_p): Likewise.
424 * pdp11.c (some_aout_object_p, slurp_symbol_table): Likewise.
425 * som.c (som_object_setup, som_slurp_symbol_table): Likewise.
426 * elfcore.h (elf_core_file_p): Don't set start_address using
427 bfd_get macro.
428 * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Don't set dynsymcount
429 using bfd_get macro.
430 * bfd.c (bfd_set_file_flags): Don't set flags using bfd_get macro.
431 * linker.c (bfd_generic_link_read_symbols): Don't set outsymbols
432 or symcount using bfd_get macros.
433 (_bfd_generic_final_link, generic_add_output_symbol): Likewise.
434 * syms.c (bfd_set_symtab): Likewise.
435 * vms-alpha.c (alpha_vms_bfd_final_link): Likewise.
436 * archive.c (do_slurp_bsd_armap): Don't set has_armap using
437 bfd_has_map macro.
438 (do_slurp_coff_armap, bfd_slurp_armap): Likewise.
439 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
440 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Likewise.
441 * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
442 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
443 * som.c (som_slurp_armap): Likewise.
444
445 2019-09-18 Alan Modra <amodra@gmail.com>
446
447 * archures.c (bfd_get_arch): Make param const.
448 (bfd_get_mach, bfd_arch_bits_per_byte): Likewise.
449 (bfd_arch_bits_per_address, bfd_octets_per_byte): Likewise.
450 * bfd-in2.h: Regenerate.
451
452 2019-09-18 Alan Modra <amodra@gmail.com>
453
454 * bfd-in.h (carsym.name): Make const.
455 * reloc.c (struct reloc_howto_struct.name): Likewise.
456 * targets.c (bfd_target.name): Likewise.!
457 * bfd.c (bfd_get_sign_extend_vma): Make variable const.
458 * som.c (som_bfd_fill_in_ar_symbols): Use an intermediary variable
459 when setting carsym.name.
460 * bfd-in2.h: Regenerate.
461
462 2019-09-18 Alan Modra <amodra@gmail.com>
463
464 * mach-o.c (bfd_mach_o_fat_member_init): Likewise. Replace
465 xstrdup and xmalloc with bfd_strdup and bfd_malloc. Return an
466 error status. Adjust calls.
467 * vms-lib.c (_bfd_vms_lib_get_module): Test mhd->id earlier.
468 Close bfd on failure. Replace xstrdup/bfd_alloc use with
469 bfd_malloc. Use bfd_set_filename.
470
471 2019-09-18 Alan Modra <amodra@gmail.com>
472
473 * elf64-ppc.c (must_be_dyn_reloc): Return 0 for TOC16 relocs.
474 (ppc64_elf_check_relocs): Support dynamic/copy relocs for TOC16.
475 (ppc64_elf_adjust_dynamic_symbol): Don't keep dynamic reloc when
476 needs_copy even if all relocs are in rw sections.
477 (dec_dynrel_count): Handle TOC16 relocs.
478 (ppc64_elf_relocate_section): Support dynamic relocs for TOC16.
479 (ppc64_elf_finish_dynamic_symbol): Adjust to handle needs_copy
480 semantic change.
481
482 2019-09-16 Phil Blundell <pb@pbcl.net>
483
484 * version.m4: Set version to 2.33.50.
485 * Makefile.in, configure, doc/Makefile.in: Regenerated.
486
487 2019-09-11 Tom Tromey <tom@tromey.com>
488
489 * opncls.c (bfd_set_filename): New function.
490 * bfd-in2.h: Regenerate.
491
492 2019-09-11 Alan Modra <amodra@gmail.com>
493
494 * targets.c (struct bfd_target): Add _bfd_group_name.
495 (BFD_JUMP_TABLE): Likewise.
496 * coffgen.c (bfd_coff_group_name): New function.
497 * elf.c (bfd_elf_group_name): New function.
498 * linker.c (_bfd_nolink_bfd_group_name): New function.
499 * section.c (bfd_generic_group_name): New function.
500 * elf-bfd.h (bfd_elf_group_name): Declare.
501 * libbfd-in.h (_bfd_nolink_bfd_group_name): Declare.
502 * libcoff-in.h (bfd_coff_group_name): Declare.
503 * aout-target.h (MY_bfd_group_name): Define.
504 * aout-tic30.c (MY_bfd_group_name): Define.
505 * bfd.c (bfd_group_name): Define.
506 * binary.c (binary_bfd_group_name): Define.
507 * coff-alpha.c (_bfd_ecoff_bfd_group_name): Define.
508 * coff-mips.c (_bfd_ecoff_bfd_group_name): Define.
509 * coff-rs6000.c (_bfd_xcoff_bfd_group_name): Define.
510 * coffcode.h (coff_bfd_group_name): Define.
511 * elfxx-target.h (bfd_elfNN_bfd_group_name): Define.
512 * i386msdos.c (msdos_bfd_group_name): Define.
513 * ihex.c (ihex_bfd_group_name): Define.
514 * mach-o-target.c (bfd_mach_o_bfd_group_name): Define.
515 * mmo.c (mmo_bfd_group_name): Define.
516 * pef.c (bfd_pef_bfd_group_name): Define.
517 * plugin.c (bfd_plugin_bfd_group_name): Define.
518 * ppcboot.c (ppcboot_bfd_group_name): Define.
519 * som.c (som_bfd_group_name): Define.
520 * srec.c (srec_bfd_group_name): Define.
521 * tekhex.c (tekhex_bfd_group_name): Define.
522 * verilog.c (verilog_bfd_group_name): Define.
523 * vms-alpha.c (vms_bfd_group_name, alpha_vms_bfd_group_name): Define.
524 * xsym.c (bfd_sym_bfd_group_name): Define.
525 * coff64-rs6000.c (rs6000_xcoff64_vec): Init new field.
526 (rs6000_xcoff64_aix_vec): Likewise.
527 * bfd-in2.h: Regenerate.
528 * libbfd.h: Regenerate.
529 * libcoff.h: Regenerate.
530
531 2019-09-10 Nick Clifton <nickc@redhat.com>
532
533 PR 24907
534 * archures.c (bfd_arch_info_type): Add max_reloc_offset_into_insn
535 field.
536 (bfd_default_arch_struct): Initialise the new field.
537 * bfd-in2.h: Regenerate.
538 * cpu-aarch64.c: Initialise the new field.
539 * cpu-alpha.c: Likewise.
540 * cpu-arc.c: Likewise.
541 * cpu-arm.c: Likewise.
542 * cpu-avr.c: Likewise.
543 * cpu-bfin.c: Likewise.
544 * cpu-bpf.c: Likewise.
545 * cpu-cr16.c: Likewise.
546 * cpu-cr16c.c: Likewise.
547 * cpu-cris.c: Likewise.
548 * cpu-crx.c: Likewise.
549 * cpu-csky.c: Likewise.
550 * cpu-d10v.c: Likewise.
551 * cpu-d30v.c: Likewise.
552 * cpu-dlx.c: Likewise.
553 * cpu-epiphany.c: Likewise.
554 * cpu-fr30.c: Likewise.
555 * cpu-frv.c: Likewise.
556 * cpu-ft32.c: Likewise.
557 * cpu-h8300.c: Likewise.
558 * cpu-hppa.c: Likewise.
559 * cpu-i386.c: Likewise.
560 * cpu-ia64.c: Likewise.
561 * cpu-iamcu.c: Likewise.
562 * cpu-ip2k.c: Likewise.
563 * cpu-iq2000.c: Likewise.
564 * cpu-k1om.c: Likewise.
565 * cpu-l1om.c: Likewise.
566 * cpu-lm32.c: Likewise.
567 * cpu-m10200.c: Likewise.
568 * cpu-m10300.c: Likewise.
569 * cpu-m32c.c: Likewise.
570 * cpu-m32r.c: Likewise.
571 * cpu-m68hc11.c: Likewise.
572 * cpu-m68hc12.c: Likewise.
573 * cpu-m68k.c: Likewise.
574 * cpu-m9s12x.c: Likewise.
575 * cpu-m9s12xg.c: Likewise.
576 * cpu-mcore.c: Likewise.
577 * cpu-mep.c: Likewise.
578 * cpu-metag.c: Likewise.
579 * cpu-microblaze.c: Likewise.
580 * cpu-mips.c: Likewise.
581 * cpu-mmix.c: Likewise.
582 * cpu-moxie.c: Likewise.
583 * cpu-msp430.c: Likewise.
584 * cpu-mt.c: Likewise.
585 * cpu-nds32.c: Likewise.
586 * cpu-nfp.c: Likewise.
587 * cpu-nios2.c: Likewise.
588 * cpu-ns32k.c: Likewise.
589 * cpu-or1k.c: Likewise.
590 * cpu-pdp11.c: Likewise.
591 * cpu-pj.c: Likewise.
592 * cpu-plugin.c: Likewise.
593 * cpu-powerpc.c: Likewise.
594 * cpu-pru.c: Likewise.
595 * cpu-riscv.c: Likewise.
596 * cpu-rl78.c: Likewise.
597 * cpu-rs6000.c: Likewise.
598 * cpu-rx.c: Likewise.
599 * cpu-s12z.c: Likewise.
600 * cpu-s390.c: Likewise.
601 * cpu-score.c: Likewise.
602 * cpu-sh.c: Likewise.
603 * cpu-sparc.c: Likewise.
604 * cpu-spu.c: Likewise.
605 * cpu-tic30.c: Likewise.
606 * cpu-tic4x.c: Likewise.
607 * cpu-tic54x.c: Likewise.
608 * cpu-tic6x.c: Likewise.
609 * cpu-tic80.c: Likewise.
610 * cpu-tilegx.c: Likewise.
611 * cpu-tilepro.c: Likewise.
612 * cpu-v850.c: Likewise.
613 * cpu-v850_rh850.c: Likewise.
614 * cpu-vax.c: Likewise.
615 * cpu-visium.c: Likewise.
616 * cpu-wasm32.c: Likewise.
617 * cpu-xc16x.c: Likewise.
618 * cpu-xgate.c: Likewise.
619 * cpu-xstormy16.c: Likewise.
620 * cpu-xtensa.c: Likewise.
621 * cpu-z80.c: Likewise.
622 * cpu-z8k.c: Likewise.
623
624 2019-09-09 Phil Blundell <pb@pbcl.net>
625
626 binutils 2.33 branch created.
627
628 2019-09-06 Alan Modra <amodra@gmail.com>
629
630 * aout-target.h (object_p): Formatting.
631 * bfd-in.h (bfd_get_filename): Don't cast to char*.
632 * corefile.c (generic_core_file_matches_executable_p): Constify
633 variables and remove cast.
634 * bfd-in2.h: Regenerate.
635
636 2019-09-05 Alan Modra <amodra@gmail.com>
637
638 * elf64-ppc.c (ppc64_elf_check_relocs): Interpret an addend in
639 GOT_PCREL and PLT_PCREL relocs as affecting the value stored
640 in the GOT/PLT entry rather than affecting the offset to that
641 GOI/PLT entry.
642 (ppc64_elf_edit_toc, ppc64_elf_relocate_section): Likewise.
643
644 2019-09-05 Alan Modra <amodra@gmail.com>
645
646 * elf64-ppc.c (xlate_pcrel_opt): Handle prefix loads and stores
647 in second instruction.
648 (ppc64_elf_relocate_section): Likewise.
649
650 2019-09-05 Alan Modra <amodra@gmail.com>
651
652 PR 24955
653 * libbfd-in.h (bfd_strdup): New inline function.
654 * archive.c (_bfd_get_elt_at_filepos): Use bfd_strdup. Close
655 bfd on error.
656 * elfcode.h (_bfd_elf_bfd_from_remote_memory): Use bfd_strdup.
657 * opncls.c (bfd_fopen): Use bfd_strdup. Close fd and stream
658 on error.
659 (bfd_openstreamr): Use bfd_strdup.
660 (bfd_openr_iovec, bfd_openw, bfd_create): Likewise.
661 * plugin.c (try_load_plugin): Use bfd_malloc.
662 * libbfd.h: Regenerate.
663
664 2019-09-02 Alan Modra <amodra@gmail.com>
665
666 PR 11983
667 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Free debug_filename
668 on success. Tidy.
669 (read_alt_indirect_string): Likewise.
670 (read_alt_indirect_ref): Likewise.
671
672 2019-08-31 Jim Wilson <jimw@sifive.com>
673
674 PR 23825
675 * elfnn-riscv.c (riscv_elf_create_dynamic_sections): Add SEC_LOAD,
676 SEC_DATA, and SEC_HAS_CONTENTS to .tdata.dyn section.
677
678 2019-08-30 Jim Wilson <jimw@sifive.com>
679
680 * elfnn-riscv.c (riscv_elf_relocate_section): For unresolvable reloc
681 error, call bfd_set_error, set ret to FALSE, and goto out label.
682
683 2019-08-30 H.J. Lu <hongjiu.lu@intel.com>
684
685 PR ld/24951
686 * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS,
687 BFD_DECOMPRESS and BFD_COMPRESS_GABI flags for thin archive.
688
689 2019-08-29 Alan Modra <amodra@gmail.com>
690
691 PR 24697
692 * elf32-ppc.c (ppc_elf_check_relocs): Call bad_shared_reloc
693 when !bfd_link_executable for R_PPC_EMB_SDA2I16 and
694 R_PPC_EMB_SDA2REL. Don't call bad_shared_reloc for any other
695 reloc.
696
697 2019-08-29 Alan Modra <amodra@gmail.com>
698
699 * elf64-ppc.c (xlate_pcrel_opt): Add poff parameter. Allow offset
700 on second insn, return it in poff.
701 (ppc64_elf_relocate_section): Add offset to paddi addend for
702 PCREL_OPT.
703
704 2019-08-28 Jim Wilson <jimw@sifive.com>
705
706 * elfnn-riscv.c (_bfd_riscv_relax_lui): Add check to exclude abs
707 section when setting max_alignment. Update comment.
708 (_bfd_riscv_relax_pc): Likewise.
709
710 2019-08-29 Alan Modra <amodra@gmail.com>
711
712 PR 24891
713 * bfd.c (struct bfd): Add no_element_cache.
714 * archive.c (_bfd_get_elt_at_filepos): Don't add element to
715 archive cache when no_element_cache.
716 (bfd_generic_archive_p): Set no_element_cache when opening first
717 element to check format. Close first element too.
718 (do_slurp_bsd_armap): Don't zero ardata->cache here.
719 * bfd-in2.h: Regenerate.
720
721 2019-08-24 Alan Modra <amodra@gmail.com>
722
723 * elf64-ppc.c (ppc64_elf_edit_toc): Exclude undefined weak
724 symbols from GOT optimisation.
725
726 2019-08-23 Stafford Horne <shorne@gmail.com>
727
728 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Use correct value for
729 PLT GOT entries.
730
731 2019-08-23 Nick Clifton <nickc@redhat.com>
732
733 PR 24456
734 * elf.c (bfd_section_from_shdr): Issue an informative warning
735 message and continue processing other sections after encountering
736 a reloc section for a section which already has other relocs
737 associated with it.
738
739 2019-08-23 Alan Modra <amodra@gmail.com>
740
741 PR 24933
742 * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Don't exit
743 on error without freeing plts[] contents.
744
745 2019-08-22 Dennis Zhang <dennis.zhang@arm.com>
746
747 * cpu-arm.c: New entries for Cortex-M35P, Cortex-A77, Cortex-A76AE.
748
749 2019-08-22 Nick Clifton <nickc@redhat.com>
750
751 PR 24922
752 * pei-x86_64.c (pex64_xdata_print_uwd_codes): Add checks before
753 reading data from extra records.
754
755 2019-08-22 Tamar Christina <tamar.christina@arm.com>
756
757 PR ld/24601
758 * elfnn-aarch64.c (aarch64_relocate): Handle weak TLS and undefined TLS.
759 Also Pass input_bfd to _bfd_aarch64_elf_resolve_relocation.
760 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use it.
761 * elfxx-aarch64.h (_bfd_aarch64_elf_resolve_relocation): Emit warning
762 for weak TLS.
763
764 2019-08-22 Alan Modra <amodra@gmail.com>
765
766 * elf32-arm.c (cmse_scan): Don't use ARM_GET_SYM_CMSE_SPCL,
767 instead recognize CMSE_PREFIX in symbol name.
768 (elf32_arm_gc_mark_extra_sections): Likewise.
769 (elf32_arm_filter_cmse_symbols): Don't test ARM_GET_SYM_CMSE_SPCL.
770 (elf32_arm_swap_symbol_in): Don't invoke ARM_SET_SYM_CMSE_SPCL.
771
772 2019-08-20 Dennis Zhang <dennis.zhang@arm.com>
773
774 * cpu-aarch64.c: New entries for Cortex-A34, Cortex-A65,
775 Cortex-A77, cortex-A65AE, and Cortex-A76AE.
776
777 2019-08-20 Tamar Christina <tamar.christina@arm.com>
778
779 * elf32-arm.c (elf32_thumb2_plt_entry, elf32_arm_plt_thumb_stub,
780 elf32_arm_stub_long_branch_v4t_thumb_thumb,
781 elf32_arm_stub_long_branch_v4t_thumb_arm,
782 elf32_arm_stub_short_branch_v4t_thumb_arm,
783 elf32_arm_stub_long_branch_v4t_thumb_arm_pic,
784 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic,
785 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): Change nop to branch to
786 previous instruction.
787
788 2019-08-19 Tom Tromey <tromey@adacore.com>
789
790 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Create hash table
791 holding symbols.
792
793 2019-08-19 Alan Modra <amodra@gmail.com>
794
795 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename has_gotrel
796 to has_optrel.
797 (struct _ppc64_elf_section_data): Likewise.
798 (ppc64_elf_check_relocs): Set has_optrel for more relocs.
799 (ppc64_elf_edit_toc): Do ha/lo insn checks in GOT loop rather
800 than TOC loop. Check PLT16 insns too.
801
802 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
803
804 PR ld/24905
805 * elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
806 PC-relative relocations back to ...
807 (elf_x86_64_relocate_section): Here.
808
809 2019-08-16 Martin Liska <mliska@suse.cz>
810
811 PR ld/24912
812 * elflink.c: Report error only for not relocatable.
813 * linker.c (_bfd_generic_link_add_one_symbol): Do not handle
814 here lto_slim_object as it's handled in caller.
815
816 2019-08-16 Alan Modra <amodra@gmail.com>
817
818 * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
819
820 2019-08-15 Jim Wilson <jimw@sifive.com>
821
822 * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If
823 RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction
824 to c.li instruction, and use ENCODE_RVC_IMM to set value.
825
826 2019-08-15 Tom Tromey <tromey@adacore.com>
827
828 * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end
829 of section.
830
831 2019-08-14 Alan Modra <amodra@gmail.com>
832
833 PR 24623
834 * dwarf2.c (stash_comp_unit): New function, extracted from..
835 (_bfd_dwarf2_find_nearest_line): ..here.
836 (find_abstract_instance): Parse comp units and decode line info
837 as needed.
838
839 2019-08-14 Alan Modra <amodra@gmail.com>
840
841 * dwarf2.c (comp_unit_maybe_decode_line_info): Declare.
842 (comp_unit_find_nearest_line): Use it here..
843 (_bfd_dwarf2_find_symbol_bias): ..and here.
844
845 2019-08-14 Alan Modra <amodra@gmail.com>
846
847 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter.
848 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
849 * coffgen.c (coff_find_nearest_line_with_names): Adjust
850 _bfd_dwarf2_find_nearest_line calls.
851 * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise.
852 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
853 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
854 * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise.
855 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
856 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
857 * libbfd.h: Regenerate.
858
859 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
860
861 * elf-bfd.h (struct elf_backend_data): New members.
862 * elflink.c (_bfd_elf_link_create_dynamic_sections): Create
863 .gnu.hash section if necessary.
864 (struct collect_gnu_hash_codes): New member.
865 (elf_gnu_hash_process_symidx): New function name.
866 (elf_renumber_gnu_hash_syms): Ignore local and undefined
867 symbols. Record xlat location for every symbol which should have
868 a .MIPS.xhash entry.
869 (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to
870 dynamic section if necessary.
871 (GNU_HASH_SECTION_NAME): New define.
872 (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section.
873 Update the section size info.
874 * elfxx-mips.c (struct mips_elf_hash_sort_data): New members.
875 (struct mips_elf_link_hash_entry): New member.
876 (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation
877 table location.
878 (mips_elf_sort_hash_table): Initialize the pointer to the
879 .MIPS.xhash section.
880 (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash
881 translation table entry with the symbol dynindx.
882 (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH.
883 (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section
884 info.
885 (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash
886 section.
887 (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to
888 dynamic section.
889 (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH.
890 (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section
891 sh_link info.
892 (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag.
893 (MIPS_LIBC_ABI_XHASH): New ABI version enum value.
894 (_bfd_mips_post_process_headers): Mark the ABI version as
895 MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section,
896 but not a .hash section.
897 (_bfd_mips_elf_record_xhash_symbol): New function. Record a
898 position in the translation table, associated with the hash
899 entry.
900 * elfxx-mips.h (literal_reloc_p): Define
901 elf_backend_record_xhash_symbol backend hook.
902 * elfxx-target.h: Initialize elf_backend_record_xhash_symbol
903 backend hook.
904
905 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
906
907 * elf64-bpf.c (bpf_elf_relocate_section): New function.
908 (bpf_elf_insn_disp_reloc): Delete function.
909 (elf_backend_relocate_section): Define.
910
911 2019-08-07 Alan Modra <amodra@gmail.com>
912
913 PR 24644
914 * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check
915 for overflow in expressions involving nsymz.
916
917 2019-08-01 Ilia Diachkov <ilia.diachkov@optimitech.com>
918
919 * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
920 two pages in relro presence.
921
922 2019-08-01 Max Filippov <jcmvbkbc@gmail.com>
923
924 * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode)
925 (get_wsr_lbeg_opcode): New functions.
926 (check_loop_aligned): Detect relaxed loops and adjust loop_len
927 and insn_len for the first actual instruction of the loop.
928
929 2019-07-30 Alan Modra <amodra@gmail.com>
930
931 PR 24768
932 * bfd.c (struct bfd): Add lto_slim_object flag.
933 * bfd-in2.h: Regenerate.
934
935 2019-07-29 Martin Liska <mliska@suse.cz>
936
937 PR 24768
938 * archive.c (_bfd_compute_and_write_armap): Come up with
939 report_plugin_err variable.
940 * bfd-in2.h (struct bfd): Add lto_slim_object flag.
941 * elf.c (struct lto_section): New.
942 (_bfd_elf_make_section_from_shdr): Parse content of
943 .gnu_lto_.lto section.
944 * elflink.c: Report error for a missing LTO plugin.
945 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
946
947 2019-07-28 Alan Modra <amodra@gmail.com>
948
949 PR 24857
950 PR 24339
951 * elflink.c (elf_link_add_object_symbols): Report an informative
952 error on finding local symbols with index equal or greater than
953 symbol table sh_info. Correct comment. Allow such symbols in
954 dynamic objects. Abort on NULL section for symbol.
955
956 2019-07-26 Alan Modra <amodra@gmail.com>
957
958 * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
959 (elf_linker): Don't define.
960 * elflink.c (bfd_elf_final_link): Don't set elf_linker.
961
962 2019-07-25 YunQiang Su <syq@debian.org>
963
964 PR 24832
965 * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
966 mips inputs.
967
968 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
969
970 * elf32-arc.c (bfd_get_32_me): Add a small description, fix
971 formating.
972 (reloc_type_to_name): Fix formating.
973 (arc_elf_object_p): Likewise.
974 (debug_arc_reloc): Likewise.
975 (arc_do_relocation): Likewise.
976
977 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
978
979 * elf32-arc.c (bfd_get_32_me): New function.
980 (bfd_put_32_me): Likewise.
981 (arc_elf_relax_section): Likewise.
982 (bfd_elf32_bfd_relax_section): Define.
983
984 2019-07-24 Alan Modra <amodra@gmail.com>
985
986 * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
987 elf_backend_final_write_processing, don't pass linker arg.
988 (_bfd_elf_final_write_processing): Update prototype.
989 * elf.c (_bfd_elf_write_object_contents): Adjust call.
990 (_bfd_elf_final_write_processing): Return error on incompatible
991 OSABI and has_gnu_osabi. Remove linker arg.
992 * elf-nacl.h (nacl_final_write_processing): Update prototype.
993 * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
994 * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
995 (_bfd_mips_elf_final_write_processing): Likewise.
996 * elf-hppa.h (elf_hppa_final_write_processing): Return status
997 and remove linker arg.
998 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
999 * elf-nacl.c (nacl_final_write_processing): Likewise.
1000 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
1001 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
1002 * elf32-arm.c (arm_final_write_processing): Likewise.
1003 (elf32_arm_final_write_processing): Likewise.
1004 (elf32_arm_nacl_final_write_processing): Likewise.
1005 (elf32_arm_vxworks_final_write_processing): Likewise.
1006 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
1007 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
1008 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
1009 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
1010 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
1011 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
1012 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
1013 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
1014 * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
1015 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
1016 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
1017 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
1018 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
1019 * elf32-ppc.c (ppc_final_write_processing): Likewise.
1020 (ppc_elf_final_write_processing): Likewise.
1021 (ppc_elf_vxworks_final_write_processing): Likewise.
1022 * elf32-sparc.c (sparc_final_write_processing): Likewise.
1023 (elf32_sparc_final_write_processing): Likewise.
1024 (elf32_sparc_vxworks_final_write_processing): Likewise.
1025 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
1026 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
1027 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
1028 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
1029 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
1030 * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
1031 (_bfd_mips_elf_final_write_processing): Likewise.
1032
1033 2019-07-24 Alan Modra <amodra@gmail.com>
1034
1035 * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
1036 early.
1037 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
1038 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
1039
1040 2019-07-24 Alan Modra <amodra@gmail.com>
1041
1042 * elf32-visium.c (visium_elf_post_process_headers): Don't set
1043 EI_OSABI header byte here.
1044 (ELF_OSABI): Define.
1045
1046 2019-07-23 Alan Modra <amodra@gmail.com>
1047
1048 * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
1049 * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
1050 (get_program_header_size): Formatting. Only test SH_GNU_MBIND
1051 when elf_gnu_osabi_mbind is set.
1052 (_bfd_elf_map_sections_to_segments): Likewise.
1053 (_bfd_elf_init_private_section_data): Likewise.
1054 (_bfd_elf_final_write_processing): Update comment.
1055 * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
1056 (elf_backend_special_sections): Define without .tbss for linux.
1057
1058 2019-07-23 Alan Modra <amodra@gmail.com>
1059
1060 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
1061 Remove none, any, all enums.
1062 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
1063 (_bfd_elf_final_write_processing): Declare.
1064 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
1065 elf_backend_final_write_processing.
1066 (_bfd_elf_post_process_headers): Move body of function to..
1067 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
1068 only when not already set. Adjust for rename.
1069 * elfxx-target.h (elf_backend_final_write_processing): Default to
1070 _bfd_elf_final_write_processing.
1071 * elf-hppa.h (elf_hppa_final_write_processing): Call
1072 _bfd_elf_final_write_processing.
1073 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
1074 * elf-nacl.c (nacl_final_write_processing): Likewise.
1075 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
1076 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
1077 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
1078 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
1079 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
1080 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
1081 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
1082 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
1083 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
1084 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
1085 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
1086 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
1087 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
1088 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
1089 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
1090 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
1091 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
1092 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
1093 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
1094 * elf32-arm.c (arm_final_write_processing): Split out from..
1095 (elf32_arm_final_write_processing): ..here. Call
1096 _bfd_elf_final_write_processing.
1097 (elf32_arm_nacl_final_write_processing): Adjust.
1098 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
1099 (_bfd_mips_elf_final_write_processing): ..here. Call
1100 _bfd_elf_final_write_processing.
1101 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
1102 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
1103 * elf32-ppc.c (ppc_final_write_processing): Split out from..
1104 (ppc_elf_final_write_processing): ..here. Call
1105 _bfd_elf_final_write_processing.
1106 (ppc_elf_vxworks_final_write_processing): Adjust.
1107 * elf32-sparc.c (sparc_final_write_processing): Split out from..
1108 (elf32_sparc_final_write_processing): ..here. Call
1109 _bfd_elf_final_write_processing.
1110 (elf32_sparc_vxworks_final_write_processing): Adjust.
1111 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
1112 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
1113 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
1114 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
1115 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
1116 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
1117 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1118 * elflink.c (elf_link_add_object_symbols): Likewise.
1119 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
1120 instead.
1121
1122 2019-07-23 Omar Majid <omajid@redhat.com>
1123
1124 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
1125 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
1126 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
1127 AMD64_NETBSD_MAGIC.
1128 * peXXigen.c: Add comment about source of .NET magic numbers.
1129
1130 2019-07-19 Alan Modra <amodra@gmail.com>
1131
1132 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
1133 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
1134 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
1135 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
1136 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
1137 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
1138 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
1139 (ppc64_elf_check_relocs): Support pcrel tls relocs.
1140 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
1141 * bfd-in2.h: Regenerate.
1142 * libbfd.h: Regenerate.
1143
1144 2019-07-18 Alan Modra <amodra@gmail.com>
1145
1146 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
1147 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
1148 match test.
1149
1150 2019-07-18 Alan Modra <amodra@gmail.com>
1151
1152 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
1153 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
1154 is more than 8 bits.
1155 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
1156 tls_type vars unsigned int.
1157 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
1158 to select r_type edit.
1159
1160 2019-07-18 Alan Modra <amodra@gmail.com>
1161
1162 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
1163 Correct comment.
1164 * elf64-ppc.c (TLS_GDIE): Likewise.
1165
1166 2019-07-18 Alan Modra <amodra@gmail.com>
1167
1168 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
1169 range of tp-relative offsets.
1170
1171 2019-07-15 Alan Modra <amodra@gmail.com>
1172
1173 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
1174 alias is no longer bfd_link_hash_defined, clear the alias.
1175
1176 2019-07-13 Alan Modra <amodra@gmail.com>
1177
1178 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
1179 tls_sec.
1180 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
1181 (_bfd_elf_init_2_index_sections): Likewise.
1182 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
1183 relocations for local TLS symbols, use STN_UNDEF as the relocation
1184 symbol.
1185 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
1186 leave TLS symbol value in the addend.
1187
1188 2019-07-08 Alan Modra <amodra@gmail.com>
1189
1190 PR 24785
1191 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
1192 size before reading first word.
1193
1194 2019-07-02 Nick Clifton <nickc@redhat.com>
1195
1196 PR 24717
1197 * elf.c (is_debuginfo_file): New function.
1198 (assign_file_positions_for_non_load_sections): Do not warn about
1199 allocated sections outside of loadable segments if they are found
1200 in a debuginfo file.
1201 * elf-bfd.h (is_debuginfo_file): Prototype.
1202
1203 2019-07-02 Nick Clifton <nickc@redhat.com>
1204
1205 PR 24753
1206 * compress.c (bfd_get_full_section_contents): Do not complain
1207 about linker created sections that are larger than the file size.
1208
1209 2019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
1210
1211 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
1212 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
1213 for CMSE stubs.
1214 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
1215
1216 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1217
1218 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
1219 sections when .text section contain secure entry functions
1220 is marked.
1221
1222 2019-07-01 Nick Clifton <nickc@redhat.com>
1223
1224 PR 23839
1225 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
1226 section VMA in the offset used to update exidx relocs.
1227
1228 2019-06-28 Nick Clifton <nickc@redhat.com>
1229
1230 PR 24708
1231 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
1232 large version reference section.
1233 * compress.c (bfd_get_full_section_contents): Check for an
1234 uncompressed section whose size is larger than the file size.
1235
1236 2019-06-28 Alan Modra <amodra@gmail.com>
1237
1238 * format.c (bfd_check_format_matches): Don't match plugin target
1239 if another target matches. Expand comment.
1240 * targets.c (_bfd_target_vector): Move plugin_vec after all other
1241 non-corefile targets, outside !SELECT_VECS.
1242 * config.bfd: Don't handle targ=plugin here.
1243 * configure.ac: Don't add plugin to enable_targets or handle in
1244 target loop setting selvecs and other target vars.
1245 * configure: Regenerate.
1246
1247 2019-06-26 Nick Clifton <nickc@redhat.com>
1248
1249 PR 24703
1250 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
1251 messages for failures.
1252 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
1253 if returning an error value.
1254
1255 2019-06-25 Jan Beulich <jbeulich@suse.com>
1256
1257 * elf-properties.c (elf_find_and_remove_property): Rename last
1258 parameter. Mention it in comment.
1259
1260 2019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
1261
1262 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
1263 SEC_MERGE or SEC_CODE flags are set.
1264 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
1265 symtype consistently. Don't include sec_addr (sym_sec) in symval.
1266 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
1267 Add sec_addr (sym_sec) after handling merge sections.
1268
1269 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
1270
1271 PR ld/24721
1272 * elf-properties.c (elf_merge_gnu_property_list): Remove the
1273 property after reporting property removal.
1274
1275 2019-06-23 Alan Modra <amodra@gmail.com>
1276
1277 PR 24704
1278 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
1279 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
1280 Reduce range of offsets allowed for other GOT relocs.
1281
1282 2019-06-23 Alan Modra <amodra@gmail.com>
1283
1284 PR 24689
1285 * elfcode.h (elf_object_p): Warning fix.
1286
1287 2019-06-21 Alan Modra <amodra@gmail.com>
1288
1289 PR 24689
1290 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
1291
1292 2019-06-19 Alan Modra <amodra@gmail.com>
1293
1294 PR 24697
1295 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
1296 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
1297
1298 2019-06-19 Alan Modra <amodra@gmail.com>
1299
1300 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
1301 functions that require r2 valid to use local entry.
1302 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
1303
1304 2019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
1305
1306 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
1307 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
1308 with elfNN_aarch64_allocate_local_dynrelocs.
1309
1310 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
1311
1312 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
1313
1314 2019-06-14 Alan Modra <amodra@gmail.com>
1315
1316 * Makefile.in: Regenerate.
1317 * configure: Regenerate.
1318
1319 2019-06-14 Alan Modra <amodra@gmail.com>
1320
1321 * elf64-ppc.c: Fix comments involving paddi.
1322
1323 2019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
1324
1325 PR 24643
1326 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
1327 absent, or the bfd is not in the ELF formart.
1328 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
1329
1330 2019-06-10 Christos Zoulas <christos@zoulas.com>
1331
1332 PR 24650
1333 * elf.c (elfcore_make_auxv_note_section): New function.
1334 (elfcore_grok_note): Use it.
1335 (elfcore_grok_freebsd_note): Likewise.
1336 (elfcore_grok_openbsd_note): Likewise.
1337 (elfcore_grok_netbsd_note): Likewise. Plus add support for
1338 NT_NETBSDCORE_AUXV notes.
1339
1340 2019-06-06 Sudakshina Das <sudi.das@arm.com>
1341
1342 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
1343 alignment of the new gnu property section.
1344
1345 2019-06-06 Sudakshina Das <sudi.das@arm.com>
1346
1347 * bfd-in.h: Change comment.
1348 * bfd-in2.h: Regenerate.
1349 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
1350 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
1351 Likwise.
1352
1353 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
1354
1355 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
1356 Remove overflow check.
1357
1358 2019-05-28 Alan Modra <amodra@gmail.com>
1359
1360 PR 24596
1361 * cofflink.c (coff_link_check_archive_element): Don't assume
1362 element is a coff object file after calling add_archive_element.
1363
1364 2019-05-28 Alan Modra <amodra@gmail.com>
1365
1366 PR 24596
1367 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
1368 attempt to set sh_entsize for excluded PLT section.
1369
1370 2019-05-28 Alan Modra <amodra@gmail.com>
1371
1372 PR 24596
1373 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
1374 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
1375 allocated in alpha_dynamic_entries_for_reloc.
1376
1377 2019-05-28 Alan Modra <amodra@gmail.com>
1378
1379 PR 24596
1380 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
1381 on NULL output_section.
1382 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
1383
1384 2019-05-28 Alan Modra <amodra@gmail.com>
1385
1386 PR 24596
1387 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
1388 entry when MUST_FIND. Abort when MUST_FIND not found.
1389 (elf_m68k_get_bfd2got_entry): Likewise.
1390 (elf_m68k_relocate_section): Remove now useless assert.
1391
1392 2019-05-28 Alan Modra <amodra@gmail.com>
1393
1394 PR 24596
1395 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
1396 from bfd_link_info, not an output section owner.
1397 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
1398 (elf_hppa_final_link_relocate): Likewise.
1399
1400 2019-05-28 Alan Modra <amodra@gmail.com>
1401
1402 PR 24596
1403 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
1404 create_object_symbols_section, obj_textsec, obj_datasec or
1405 obj_bsssec. Fix other errors in placement.
1406 * config.bfd: Obsolete tic30-aout.
1407
1408 2019-05-28 Alan Modra <amodra@gmail.com>
1409
1410 PR 24596
1411 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
1412 end of section list as well as section_count.
1413 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
1414 section list before returning error.
1415
1416 2019-05-27 Alan Modra <amodra@gmail.com>
1417
1418 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
1419
1420 2019-05-27 Alan Modra <amodra@gmail.com>
1421
1422 PR 24596
1423 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
1424
1425 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1426
1427 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
1428 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
1429 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
1430 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
1431 (elf_backend_merge_symbol_attribute): Define.
1432
1433 2019-05-24 Alan Modra <amodra@gmail.com>
1434
1435 * po/SRC-POTFILES.in: Regenerate.
1436
1437 2019-05-24 Alan Modra <amodra@gmail.com>
1438
1439 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
1440 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
1441 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
1442 (struct ppc_link_hash_table): Add powerxx_stubs.
1443 (ppc64_elf_check_relocs): Set powerxx_stubs.
1444 (build_powerxx_offset, size_powerxx_offset),
1445 (num_relocs_for_powerxx_offset),
1446 (emit_relocs_for_powerxx_offset): New functions.
1447 (plt_stub_size): Size powerxx stubs.
1448 (ppc_build_one_stub): Emit powerxx stubs.
1449 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
1450 powerxx stubs.
1451
1452 2019-05-24 Alan Modra <amodra@gmail.com>
1453
1454 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
1455 R_PPC64_GOT_PCREL34.
1456 (xlate_pcrel_opt): New function.
1457 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
1458 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1459 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
1460
1461 2019-05-24 Alan Modra <amodra@gmail.com>
1462
1463 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
1464 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
1465 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
1466 (BFD_RELOC_PPC64_PLT_PCREL34),
1467 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
1468 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
1469 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
1470 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
1471 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
1472 * elf64-ppc.c (PNOP): Define.
1473 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
1474 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
1475 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
1476 relocs.
1477 (ppc64_elf_prefix_reloc): New function.
1478 (struct ppc_link_hash_table): Add notoc_plt.
1479 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
1480 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
1481 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
1482 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
1483 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
1484 possible need for dynamic relocs on non-pcrel powerxx relocs.
1485 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
1486 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
1487 (toc_adjusting_stub_needed): Likewise.
1488 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
1489 (ppc64_elf_relocate_section): Handle new powerxx relocs.
1490 * bfd-in2.h: Regenerate.
1491 * libbfd.h: Regenerate.
1492
1493 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1494
1495 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
1496 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
1497 bpf_elf64_be_vec.
1498 * configure: Regenerate.
1499
1500 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1501
1502 * configure: Regenerated.
1503 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
1504 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
1505 (BFD64_BACKENDS): Add elf64-bpf.lo.
1506 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
1507 * Makefile.in (SOURCE_HFILES): Regenerate.
1508 * config.bfd (targ_cpu): Handle bpf-*-* targets.
1509 * cpu-bpf.c: New file.
1510 * elf64-bpf.c: Likewise.
1511 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
1512 bpf_elf64_le_vec.
1513 * archures.c: Define architecture bfd_arch_bpf and machine
1514 bfd_arch_bpf.
1515 * reloc.c: Define BFD relocations used by the BPF target.
1516 * bfd-in2.h: Regenerated.
1517 * libbfd.h: Likewise.
1518
1519 2019-05-22 Alan Modra <amodra@gmail.com>
1520
1521 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
1522 contents.
1523
1524 2019-05-22 Alan Modra <amodra@gmail.com>
1525
1526 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
1527 processing on "size error in section".
1528
1529 2019-05-22 Alan Modra <amodra@gmail.com>
1530
1531 * som.c (som_bfd_free_cached_info): Call
1532 _bfd_generic_close_and_cleanup.
1533
1534 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1535
1536 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
1537 for TLS_TPREL_HI16(/LO16) relocations in shared library.
1538
1539 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1540
1541 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
1542 checks. Search the RELA table for n64 relocations.
1543
1544 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
1545 Faraz Shahbazker <fshahbazker@wavecomp.com>
1546
1547 * elfxx-mips.c (LA25_BC): New macro.
1548 (mips_elf_link_hash_table)<compact_branches>: New field.
1549 (STUB_JALRC): New macro.
1550 (mipsr6_o32_exec_plt0_entry_compact): New array.
1551 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
1552 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
1553 (mipsr6_exec_plt_entry_compact): Likewise.
1554 (mips_elf_create_la25_stub): Use BC instead of J for stubs
1555 when compact_branches is true.
1556 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
1557 PLT for MIPSR6 with compact_branches. Do not reorder the
1558 compact branches PLT. Switch the lazy stub for MIPSR6
1559 with compact_branches to use JALRC.
1560 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
1561 when compact_branches is true.
1562 (_bfd_mips_elf_compact_branches): New function.
1563 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
1564
1565 2019-05-21 Tamar Christina <tamar.christina@arm.com>
1566
1567 PR ld/24373
1568 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
1569 Fix print formatter.
1570
1571 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
1572
1573 PR 24460
1574 * elf32-arm.c (get_value_helper): Remove.
1575 (elf32_arm_final_link_relocate): Fix branch future relocations.
1576
1577 2019-05-21 Tamar Christina <tamar.christina@arm.com>
1578
1579 PR ld/24373
1580 * bfd-in.h (enum erratum_84319_opts): New
1581 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
1582 int to enum erratum_84319_opts.
1583 * bfd-in2.h: Regenerate.
1584 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
1585 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
1586 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
1587 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
1588 (_bfd_aarch64_resize_stubs): Amend comment.
1589 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
1590 requested.
1591 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
1592 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
1593 erratum workaround.
1594 (clear_erratum_843419_entry): Update erratum conditional.
1595
1596 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1597
1598 PR ld/24571
1599 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
1600 when computing distance_short_enough.
1601
1602 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1603
1604 PR ld/24564
1605 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
1606 Wrap around even if distance equals avr_pc_wrap_around.
1607
1608 2019-05-20 Nick Clifton <nickc@redhat.com>
1609
1610 * po/fr.po: Updated French translation.
1611
1612 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
1613
1614 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
1615
1616 2019-05-16 Alan Modra <amodra@gmail.com>
1617
1618 * elf32-arm.c (elf32_arm_write_section): Revert last change.
1619
1620 2019-05-15 Alan Modra <amodra@gmail.com>
1621
1622 * elf32-arm.c (elf32_arm_write_section): Don't leave
1623 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
1624 unitialised section contents.
1625
1626 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
1627
1628 PR 19921
1629 * verilog.c: (VerilogDataWidth): New variable.
1630 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
1631
1632 2019-05-08 Nick Clifton <nickc@redhat.com>
1633
1634 PR 24523
1635 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
1636 rather than FALSE if encountering a non-ELF file.
1637
1638 2019-05-06 Alan Modra <amodra@gmail.com>
1639
1640 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
1641
1642 2019-05-06 Alan Modra <amodra@gmail.com>
1643
1644 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
1645 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
1646 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
1647 * libbfd.h: Regenerate.
1648 * bfd-in2.h: Regenerate.
1649
1650 2019-05-04 Alan Modra <amodra@gmail.com>
1651
1652 PR 24511
1653 * syms.c (coff_section_type): Only allow '.', '$' and numeric
1654 following the standard section names.
1655 (bfd_decode_symclass): Prioritize section flag tests in
1656 decode_section_type before name tests in coff_section_type.
1657 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
1658 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
1659 their names and choose standard .text section flags for
1660 fake_section.
1661
1662 2019-05-02 Nick Clifton <nickc@redhat.com>
1663
1664 PR 24493
1665 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
1666 .gnu.debugaltlink sections as debugging sections.
1667
1668 2019-04-30 Alan Modra <amodra@gmail.com>
1669
1670 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
1671 (struct _ppc64_elf_section_data): Likewise.
1672 (ppc64_elf_check_relocs): Set above fields.
1673 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
1674 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1675 when possible.
1676
1677 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
1678
1679 PR ld/24486
1680 * elflink.c (elf_link_output_extsym): Don't complain undefined
1681 weak dynamic reference.
1682
1683 2019-04-25 Sudakshina Das <sudi.das@arm.com>
1684
1685 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
1686 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
1687 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
1688 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
1689 (elfNN_aarch64_small_plt0_pac_entry): Remove.
1690 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
1691 (elfNN_aarch64_small_plt0_bti_entry): Update.
1692 (elfNN_aarch64_small_plt_bti_entry): Update.
1693 (elfNN_aarch64_small_plt_pac_entry): Update.
1694 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
1695 (setup_plt_values): Setup new entries.
1696 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
1697 (elfNN_aarch64_plt_sym_val): Likewise.
1698
1699 2019-04-22 Jim Wilson <jimw@sifive.com>
1700
1701 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
1702
1703 2019-04-19 Alan Modra <amodra@gmail.com>
1704
1705 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
1706
1707 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1708
1709 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
1710 building shared object.
1711 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
1712
1713 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1714
1715 PR ld/24458
1716 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
1717 linker_def.
1718
1719 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1720
1721 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
1722 relocation.
1723 * bfd-in2.h: Regenerate.
1724 * libbfd.h: Likewise.
1725
1726 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1727
1728 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
1729 * bfd-in2.h: Regenerated.
1730 * libbfd.h: Regenerated.
1731
1732 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1733
1734 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
1735 * bfd-in2.h: Regenerated.
1736 * libbfd.h: Likewise.
1737
1738 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1739
1740 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
1741 * bfd-in2.h: Regenerated.
1742 * libbfd.h: Regenerated.
1743 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
1744 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
1745 and R_ARM_THM_BF12 together.
1746 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
1747
1748 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1749
1750 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
1751 * libbfd.h: Regenerated.
1752 * bfd-in2.h: Regenerated.
1753 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
1754 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
1755 and R_ARM_THM_BF18 together.
1756 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
1757
1758 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1759
1760 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
1761 * bfd-in2.h: Regenerated.
1762 * libbfd.h: Regenerated.
1763 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
1764 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
1765 and R_ARM_THM_BF16 together.
1766 (get_value_helper): New reloc helper.
1767 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
1768
1769 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1770
1771 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
1772 * bfd-in2.h: Regenerate.
1773 * libbfd.h: Regenerate.
1774
1775 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1776
1777 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
1778 * bfd-in2.h: Regenerate.
1779 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
1780 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
1781 and update assert.
1782 (using_thumb2): Likewise.
1783 (using_thumb2_bl): Update assert.
1784 (arch_has_arm_nop): Likewise.
1785 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
1786 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
1787
1788 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1789
1790 * elf-linker-x86.h (elf_x86_cet_report): New.
1791 (elf_linker_x86_params): Add cet_report.
1792 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
1793 missing IBT and SHSTK properties if needed.
1794
1795 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1796
1797 PR ld/24436
1798 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
1799 "h != NULL". Don't check "h != NULL" before calling.
1800 bfd_elf_gc_record_vtentry.
1801 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1802 * elf32-bfin.c (bfin_check_relocs): Likewise.
1803 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1804 * elf32-csky.c (csky_elf_check_relocs): Likewise.
1805 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1806 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1807 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1808 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1809 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1810 * elf32-i386.c (elf_i386_check_relocs): Likewise.
1811 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1812 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1813 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1814 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1815 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1816 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1817 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1818 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1819 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1820 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1821 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1822 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1823 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1824 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1825 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1826 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1827 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1828 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
1829 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1830 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1831 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
1832 VTENTRY entry.
1833
1834 2019-04-11 Alan Modra <amodra@gmail.com>
1835
1836 PR 24435
1837 * elflink.c (elf_link_add_object_symbols): Don't read partial
1838 dynamic entries from fuzzed objects.
1839
1840 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1841
1842 PR ld/24302
1843 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
1844 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
1845 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
1846
1847 2019-04-10 Michael Forney <mforney@mforney.org>
1848
1849 PR 24427
1850 * doc/chew.c (free_words): Correctly free "push_text" strings.
1851
1852 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1853
1854 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
1855
1856 2019-04-08 Alan Modra <amodra@gmail.com>
1857
1858 * configure.ac (elfxx_x86): Define and use.
1859 * configure: Regenerate.
1860
1861 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1862
1863 * elf-linker-x86.h: New file.
1864 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
1865 to get x86-specific linker options.
1866 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
1867 (elf_x86_64_check_relocs): Likewise.
1868 (elf_x86_64_relocate_section): Likewise.
1869 (elf_x86_64_link_setup_gnu_properties): Likewise.
1870 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
1871 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
1872 (_bfd_elf_linker_x86_set_options): New function.
1873 * elfxx-x86.h: Include "elf-linker-x86.h".
1874 (elf_x86_link_hash_table): Add params.
1875
1876 2019-04-03 Alan Modra <amodra@gmail.com>
1877
1878 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
1879 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
1880 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
1881 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
1882 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
1883 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
1884
1885 2019-04-02 Jim Wilson <jimw@sifive.com>
1886
1887 PR 24389
1888 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
1889 ELF header flags to after check for ELF object file. Loop through
1890 sections looking for code sections, if none, then skip ABI checks.
1891
1892 2019-03-30 Andrew Waterman <andrew@sifive.com>
1893
1894 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
1895 rd == X_RA case.
1896
1897 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1898
1899 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
1900 info->export_dynamic to the conditional.
1901
1902 2019-03-28 Alan Modra <amodra@gmail.com>
1903
1904 PR 24392
1905 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
1906 * configure: Regenerate.
1907 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
1908 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
1909 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
1910 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
1911 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1912
1913 2019-03-21 Jim Wilson <jimw@sifive.com>
1914
1915 PR 24365
1916 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
1917 verify sym non-NULL before using. Add identical check using h.
1918
1919 2019-03-21 Sudakshina Das <sudi.das@arm.com>
1920
1921 * elf-bfd.h (struct elf_backend_data): Add argument to
1922 merge_gnu_properties.
1923 * elf-properties.c (elf_merge_gnu_properties): Add argument to
1924 itself and while calling bed->merge_gnu_properties.
1925 (elf_merge_gnu_property_list): Update the calls for
1926 elf_merge_gnu_properties.
1927 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
1928 of --force-bti warning and add argument.
1929 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
1930 warning.
1931 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
1932 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
1933 declaration.
1934
1935 2019-03-20 Sudakshina Das <sudi.das@arm.com>
1936
1937 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
1938 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
1939 (elf_backend_fixup_gnu_properties): Define for AArch64.
1940
1941 2019-03-18 Alan Modra <amodra@gmail.com>
1942
1943 PR 24355
1944 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
1945 for local iplt syms with ent->plt.offset == -1. Remove ineffective
1946 attempt at writing glink stubs only once.
1947
1948 2019-03-16 Alan Modra <amodra@gmail.com>
1949
1950 PR 24337
1951 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
1952 (_bfd_elf_rel_local_sym): Likewise.
1953 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
1954 section of symbols with unrecognized shndx.
1955
1956 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1957
1958 PR ld/24267
1959 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
1960 section.
1961 * cofflink.c (coff_link_add_symbols): Check for symbols defined
1962 in discarded section.
1963
1964 2019-03-15 Alan Modra <amodra@gmail.com>
1965
1966 PR 24339
1967 * elflink.c (elf_link_add_object_symbols): Bail out on a local
1968 symbol after globals if elf_bad_symtab is not set.
1969
1970 2019-03-15 Alan Modra <amodra@gmail.com>
1971
1972 PR 24337
1973 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
1974 (_bfd_elf_rel_local_sym): Likewise.
1975
1976 2019-03-15 Alan Modra <amodra@gmail.com>
1977
1978 PR 24336
1979 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
1980 object files with sh_size not a multiple of sh_entsize.
1981
1982 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1983
1984 PR ld/24338
1985 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
1986 input with bad relocation.
1987
1988 22019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
1991
1992 2019-03-14 Nick Clifton <nickc@redhat.com>
1993
1994 PR 24334
1995 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
1996 (save_section_vma): Initialise field to the number of entries in
1997 the sec_vma table.
1998 (section_vma_same): Check that the number of entries in the
1999 sec_vma table matches the number of sections in the bfd.
2000
2001 2019-03-14 Nick Clifton <nickc@redhat.com>
2002
2003 PR 24333
2004 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
2005 section owner pointer when adding the default symbol.
2006
2007 2019-03-14 Nick Clifton <nickc@redhat.com>
2008
2009 PR 24332
2010 * elflink.c (elf_link_add_object_symbols): Add new local variable
2011 extversym_end. Initialise it to point to the end of the version
2012 symbol table, if present. Check it when initialising and updating
2013 the ever pointer.
2014
2015 2019-03-13 Sudakshina Das <sudi.das@arm.com>
2016
2017 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
2018 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
2019 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
2020 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
2021 and PLT_PAC_PLT.
2022 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
2023 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
2024 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
2025
2026 2019-03-13 Sudakshina Das <sudi.das@arm.com>
2027 Szabolcs Nagy <szabolcs.nagy@arm.com>
2028
2029 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
2030 (aarch64_bti_pac_info): New.
2031 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
2032 (bfd_elf32_aarch64_set_options): Likewise.
2033 * bfd-in2.h: Regenerate
2034 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
2035 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
2036 (elfNN_aarch64_small_plt0_bti_entry): New.
2037 (elfNN_aarch64_small_plt_bti_entry): New.
2038 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
2039 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
2040 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
2041 tlsdesc_plt_entry_size fields.
2042 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
2043 (setup_plt_values): New helper function.
2044 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
2045 bti enable type.
2046 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
2047 fixed macros.
2048 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
2049 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
2050 to plt stubs instead of fixed ones and update filling them according
2051 to the need for bti.
2052 (elfNN_aarch64_init_small_plt0_entry): Likewise.
2053 (elfNN_aarch64_finish_dynamic_sections): Likewise.
2054 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
2055 (elfNN_aarch64_plt_sym_val): Update size accordingly.
2056 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
2057 is set.
2058 (bfd_elfNN_get_synthetic_symtab): Define.
2059 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
2060 and mising BTI NOTE SECTION.
2061
2062
2063 2019-03-13 Sudakshina Das <sudi.das@arm.com>
2064
2065 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
2066 linker created inputs from merge.
2067 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
2068 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
2069 (elfNN_aarch64_link_setup_gnu_properties): New.
2070 (elfNN_aarch64_merge_gnu_properties): New.
2071 (elf_backend_setup_gnu_properties): Define for AArch64.
2072 (elf_backend_merge_gnu_properties): Likewise.
2073 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
2074 (_bfd_aarch64_elf_parse_gnu_properties): Define.
2075 (_bfd_aarch64_elf_merge_gnu_properties): Define.
2076 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
2077 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
2078 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
2079 (elf_backend_parse_gnu_properties): Define for AArch64.
2080
2081 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
2082
2083 PR ld/24322
2084 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
2085 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
2086
2087 2019-03-12 Alan Modra <amodra@gmail.com>
2088
2089 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
2090 nmemb parameter. Use bfd_alloc2.
2091 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
2092 Delete assertion.
2093 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
2094 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
2095 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
2096 doesn't overflow.
2097 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
2098 (assign_section_numbers): Style fix.
2099 (swap_out_syms): Use bfd_malloc2.
2100 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
2101 overflow.
2102 (_bfd_elf_make_empty_symbol): Style fix.
2103 (elfobj_grok_stapsdt_note_1): Formatting.
2104 * elfcode.h (elf_object_p): Use bfd_alloc2.
2105 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
2106 (elf_slurp_symbol_table): Use bfd_zalloc2.
2107 (elf_slurp_reloc_table): Use bfd_alloc2.
2108 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
2109 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
2110 size calculation doesn't overflow.
2111 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
2112 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
2113 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
2114
2115 2019-03-08 Alan Modra <amodra@gmail.com>
2116
2117 PR 24311
2118 * merge.c (merge_strings): Return secinfo. Don't pad section
2119 to alignment here.
2120 (_bfd_merge_sections): Pad section to alignment here, if input
2121 sections contributing to merged output all pad to alignment.
2122 Formatting.
2123
2124 2019-03-06 Nick Clifton <nickc@redhat.com>
2125
2126 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
2127 table pointer.
2128 * coffgen.c (coff_find_nearest_line_with_names): Do not call
2129 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
2130
2131 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
2132
2133 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
2134 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2135
2136 PR 20113
2137 * elf32-s390.c (allocate_dynrelocs): Update comment.
2138
2139 2019-02-28 Tamar Christina <tamar.christina@arm.com>
2140
2141 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
2142
2143 2019-02-28 Nick Clifton <nickc@redhat.com>
2144
2145 PR 24273
2146 * elf.c (bfd_elf_string_from_elf_section): Check for a string
2147 section that is not NUL terminated.
2148
2149 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2150
2151 PR ld/24276
2152 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
2153 by linker when checking copy reloc on protected symbol.
2154
2155 2019-02-24 Alan Modra <amodra@gmail.com>
2156
2157 PR 24144
2158 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
2159
2160 2019-02-20 Eric Tsai <erictsai@cadence.com>
2161
2162 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
2163 sections between the call site and call destination and adjust
2164 call distance by the largest alignment.
2165
2166 2019-02-20 Alan Hayward <alan.hayward@arm.com>
2167
2168 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
2169 * elf.c (elfcore_grok_aarch_pauth): New function.
2170 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
2171 (elfcore_write_aarch_pauth): New function.
2172 (elfcore_write_register_note): Check for AArch64 pauth section.
2173
2174 2019-02-20 Alan Modra <amodra@gmail.com>
2175
2176 PR 24225
2177 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
2178 return value.
2179
2180 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
2181
2182 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
2183 Darwin hosts, not just or1k.
2184 * configure: Regenerate.
2185
2186 2019-02-20 Alan Modra <amodra@gmail.com>
2187
2188 PR 24236
2189 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
2190 sentinel NUL to string buffer nearer to loop where it is used.
2191 Don't go past sentinel when scanning strings, and don't write
2192 NUL again.
2193 * archive.c (do_slurp_coff_armap): Simplify string handling to
2194 archive64.c style.
2195
2196 2019-02-19 Alan Modra <amodra@gmail.com>
2197
2198 PR 24235
2199 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
2200 attempting to prevent read past end of section.
2201
2202 2019-02-18 Alan Modra <amodra@gmail.com>
2203
2204 PR 24225
2205 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
2206 PRIx64 to generate warning messages. Print local sym names too.
2207
2208 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
2209
2210 * elf32-arc (INIT_SYM_STRING): Delete.
2211 (FINI_SYM_STRING): Likewise.
2212 (init_str): Likewise.
2213 (fini_str): Likewise.
2214
2215 2019-02-08 Alan Modra <amodra@gmail.com>
2216
2217 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
2218 for bss-plt" warning to make it an error.
2219
2220 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
2221
2222 PR ld/18841
2223 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
2224 reloc_class_ifunc for ifunc symbols.
2225 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
2226
2227 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
2228
2229 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
2230 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
2231
2232 2019-02-07 Nick Clifton <nickc@redhat.com>
2233
2234 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
2235 into the definitely obsolete list.
2236
2237 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
2238
2239 PR ld/24151
2240 * elf64-x86-64.c (elf_x86_64_need_pic): Check
2241 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
2242 (elf_x86_64_relocate_section): Move PIC check for PC-relative
2243 relocations to ...
2244 (elf_x86_64_check_relocs): Here.
2245 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
2246 to check if a symbol is defined in a non-shared object.
2247 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
2248
2249 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
2250
2251 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
2252 of 'labs' (and fix GCC warning).
2253
2254 2019-01-25 Nick Clifton <nickc@redhat.com>
2255
2256 * po/ru.po: Updated Russian translation.
2257
2258 2019-01-23 Nick Clifton <nickc@redhat.com>
2259
2260 * po/fr.po: Updated French translation.
2261
2262 2019-01-21 Nick Clifton <nickc@redhat.com>
2263
2264 * po/pt.po: Updated Portuguese translation.
2265 * po/uk.po: Updated Ukranian translation.
2266
2267 2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
2268
2269 PR 24108
2270 * elf32-nds32.c (nds32_relocate_section): Add space between words
2271 in error message.
2272 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
2273 error message.
2274 (riscv_i_or_e_p): Likewise.
2275 (riscv_merge_arch_attr_info): Likewise.
2276
2277 2019-01-19 Nick Clifton <nickc@redhat.com>
2278
2279 * version.m4: Reset to 2.32.51
2280 * configure: Regenerate.
2281 * po/bfd.pot: Regenerate.
2282
2283 2018-06-24 Nick Clifton <nickc@redhat.com>
2284
2285 2.32 branch created.
2286
2287 2019-01-16 Kito Cheng <kito@andestech.com>
2288
2289 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
2290 for OBJ_ATTR_PROC.
2291
2292 2019-01-16 Kito Cheng <kito@andestech.com>
2293 Nelson Chu <nelson@andestech.com>
2294
2295 * elfnn-riscv.c (in_subsets): New.
2296 (out_subsets): Likewise.
2297 (merged_subsets): Likewise.
2298 (riscv_std_ext_p): Likewise.
2299 (riscv_non_std_ext_p): Likewise.
2300 (riscv_std_sv_ext_p): Likewise.
2301 (riscv_non_std_sv_ext_p): Likewise.
2302 (riscv_version_mismatch): Likewise.
2303 (riscv_i_or_e_p): Likewise.
2304 (riscv_merge_std_ext): Likewise.
2305 (riscv_merge_non_std_and_sv_ext): Likewise.
2306 (riscv_merge_arch_attr_info): Likewise.
2307 (riscv_merge_attributes): Likewise.
2308 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
2309
2310 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
2311 (elf_backend_obj_attrs_vendor): Define.
2312 (elf_backend_obj_attrs_section_type): Likewise.
2313 (elf_backend_obj_attrs_section): Likewise.
2314 (elf_backend_obj_attrs_arg_type): Define as
2315 riscv_elf_obj_attrs_arg_type.
2316 * elfxx-riscv.c (riscv_estimate_digit): New.
2317 (riscv_estimate_arch_strlen1): Likewise.
2318 (riscv_estimate_arch_strlen): Likewise.
2319 (riscv_arch_str1): Likewise.
2320 (riscv_arch_str): Likewise.
2321 * elfxx-riscv.h (riscv_arch_str): Declare.
2322
2323 2019-01-14 John Darrington <john@darrington.wattle.id.au>
2324
2325 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
2326 * libbfd.h: regen.
2327 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
2328 source field. (md_apply_fix): Apply final fix
2329 to BFD_RELOC_S12Z_OPR.
2330 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
2331
2332 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2333
2334 PR 20113
2335 * elf32-s390.c (allocate_dynrelocs): Update comment.
2336
2337 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
2338
2339 * warning.m4: Adjust egrep pattern for non-GNU compilers.
2340 * configure: Regenerate.
2341
2342 2019-01-08 Alan Modra <amodra@gmail.com>
2343
2344 PR 23699
2345 PR 24065
2346 * ihex.c (ihex_write_object_contents): Properly check 32-bit
2347 address range.
2348
2349 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
2350
2351 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
2352 * bfd/bfd-in2.h: Regenerate.
2353 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
2354 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
2355
2356 2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
2357
2358 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
2359 default target, little endian target is more suitable.
2360
2361 2019-01-04 Alan Modra <amodra@gmail.com>
2362
2363 PR 24061
2364 PR 21786
2365 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
2366 adjust all callers.
2367 (EQ_VALUE_IN_FIELD): Likewise.
2368 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
2369
2370 2019-01-01 Alan Modra <amodra@gmail.com>
2371
2372 Update year range in copyright notice of all files.
2373
2374 For older changes see ChangeLog-2018
2375 \f
2376 Copyright (C) 2019 Free Software Foundation, Inc.
2377
2378 Copying and distribution of this file, with or without modification,
2379 are permitted in any medium without royalty provided the copyright
2380 notice and this notice are preserved.
2381
2382 Local Variables:
2383 mode: change-log
2384 left-margin: 8
2385 fill-column: 74
2386 version-control: never
2387 End:
This page took 0.206016 seconds and 5 git commands to generate.