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