01539647b669c0a5443b6a4e908c08b24161a840
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2019-04-15 Sudakshina Das <sudi.das@arm.com>
2
3 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
4 * bfd-in2.h: Regenerated.
5 * libbfd.h: Likewise.
6
7 2019-04-15 Sudakshina Das <sudi.das@arm.com>
8
9 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
10 * bfd-in2.h: Regenerated.
11 * libbfd.h: Regenerated.
12 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
13 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
14 and R_ARM_THM_BF12 together.
15 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
16
17 2019-04-15 Sudakshina Das <sudi.das@arm.com>
18
19 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
20 * libbfd.h: Regenerated.
21 * bfd-in2.h: Regenerated.
22 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
23 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
24 and R_ARM_THM_BF18 together.
25 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
26
27 2019-04-15 Sudakshina Das <sudi.das@arm.com>
28
29 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
30 * bfd-in2.h: Regenerated.
31 * libbfd.h: Regenerated.
32 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
33 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
34 and R_ARM_THM_BF16 together.
35 (get_value_helper): New reloc helper.
36 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
37
38 2019-04-15 Sudakshina Das <sudi.das@arm.com>
39
40 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
41 * bfd-in2.h: Regenerate.
42 * libbfd.h: Regenerate.
43
44 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
45
46 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
47 * bfd-in2.h: Regenerate.
48 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
49 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
50 and update assert.
51 (using_thumb2): Likewise.
52 (using_thumb2_bl): Update assert.
53 (arch_has_arm_nop): Likewise.
54 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
55 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
56
57 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
58
59 * elf-linker-x86.h (elf_x86_cet_report): New.
60 (elf_linker_x86_params): Add cet_report.
61 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
62 missing IBT and SHSTK properties if needed.
63
64 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
65
66 PR ld/24436
67 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
68 "h != NULL". Don't check "h != NULL" before calling.
69 bfd_elf_gc_record_vtentry.
70 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
71 * elf32-bfin.c (bfin_check_relocs): Likewise.
72 * elf32-cris.c (cris_elf_check_relocs): Likewise.
73 * elf32-csky.c (csky_elf_check_relocs): Likewise.
74 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
75 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
76 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
77 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
78 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
79 * elf32-i386.c (elf_i386_check_relocs): Likewise.
80 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
81 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
82 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
83 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
84 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
85 * elf32-metag.c (elf_metag_check_relocs): Likewise.
86 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
87 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
88 * elf32-s390.c (elf_s390_check_relocs): Likewise.
89 * elf32-sh.c (sh_elf_check_relocs): Likewise.
90 * elf32-v850.c (v850_elf_check_relocs): Likewise.
91 * elf32-vax.c (elf_vax_check_relocs): Likewise.
92 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
93 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
94 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
95 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
96 * elf64-s390.c (elf_s390_check_relocs): Likewise.
97 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
98 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
99 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
100 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
101 VTENTRY entry.
102
103 2019-04-11 Alan Modra <amodra@gmail.com>
104
105 PR 24435
106 * elflink.c (elf_link_add_object_symbols): Don't read partial
107 dynamic entries from fuzzed objects.
108
109 2019-04-11 Tamar Christina <tamar.christina@arm.com>
110
111 PR ld/24302
112 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
113 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
114 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
115
116 2019-04-10 Michael Forney <mforney@mforney.org>
117
118 PR 24427
119 * doc/chew.c (free_words): Correctly free "push_text" strings.
120
121 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
122
123 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
124
125 2019-04-08 Alan Modra <amodra@gmail.com>
126
127 * configure.ac (elfxx_x86): Define and use.
128 * configure: Regenerate.
129
130 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
131
132 * elf-linker-x86.h: New file.
133 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
134 to get x86-specific linker options.
135 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
136 (elf_x86_64_check_relocs): Likewise.
137 (elf_x86_64_relocate_section): Likewise.
138 (elf_x86_64_link_setup_gnu_properties): Likewise.
139 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
140 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
141 (_bfd_elf_linker_x86_set_options): New function.
142 * elfxx-x86.h: Include "elf-linker-x86.h".
143 (elf_x86_link_hash_table): Add params.
144
145 2019-04-03 Alan Modra <amodra@gmail.com>
146
147 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
148 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
149 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
150 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
151 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
152 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
153
154 2019-04-02 Jim Wilson <jimw@sifive.com>
155
156 PR 24389
157 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
158 ELF header flags to after check for ELF object file. Loop through
159 sections looking for code sections, if none, then skip ABI checks.
160
161 2019-03-30 Andrew Waterman <andrew@sifive.com>
162
163 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
164 rd == X_RA case.
165
166 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
167
168 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
169 info->export_dynamic to the conditional.
170
171 2019-03-28 Alan Modra <amodra@gmail.com>
172
173 PR 24392
174 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
175 * configure: Regenerate.
176 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
177 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
178 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
179 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
180 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
181
182 2019-03-21 Jim Wilson <jimw@sifive.com>
183
184 PR 24365
185 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
186 verify sym non-NULL before using. Add identical check using h.
187
188 2019-03-21 Sudakshina Das <sudi.das@arm.com>
189
190 * elf-bfd.h (struct elf_backend_data): Add argument to
191 merge_gnu_properties.
192 * elf-properties.c (elf_merge_gnu_properties): Add argument to
193 itself and while calling bed->merge_gnu_properties.
194 (elf_merge_gnu_property_list): Update the calls for
195 elf_merge_gnu_properties.
196 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
197 of --force-bti warning and add argument.
198 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
199 warning.
200 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
201 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
202 declaration.
203
204 2019-03-20 Sudakshina Das <sudi.das@arm.com>
205
206 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
207 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
208 (elf_backend_fixup_gnu_properties): Define for AArch64.
209
210 2019-03-18 Alan Modra <amodra@gmail.com>
211
212 PR 24355
213 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
214 for local iplt syms with ent->plt.offset == -1. Remove ineffective
215 attempt at writing glink stubs only once.
216
217 2019-03-16 Alan Modra <amodra@gmail.com>
218
219 PR 24337
220 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
221 (_bfd_elf_rel_local_sym): Likewise.
222 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
223 section of symbols with unrecognized shndx.
224
225 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
226
227 PR ld/24267
228 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
229 section.
230 * cofflink.c (coff_link_add_symbols): Check for symbols defined
231 in discarded section.
232
233 2019-03-15 Alan Modra <amodra@gmail.com>
234
235 PR 24339
236 * elflink.c (elf_link_add_object_symbols): Bail out on a local
237 symbol after globals if elf_bad_symtab is not set.
238
239 2019-03-15 Alan Modra <amodra@gmail.com>
240
241 PR 24337
242 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
243 (_bfd_elf_rel_local_sym): Likewise.
244
245 2019-03-15 Alan Modra <amodra@gmail.com>
246
247 PR 24336
248 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
249 object files with sh_size not a multiple of sh_entsize.
250
251 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
252
253 PR ld/24338
254 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
255 input with bad relocation.
256
257 22019-03-15 H.J. Lu <hongjiu.lu@intel.com>
258
259 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
260
261 2019-03-14 Nick Clifton <nickc@redhat.com>
262
263 PR 24334
264 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
265 (save_section_vma): Initialise field to the number of entries in
266 the sec_vma table.
267 (section_vma_same): Check that the number of entries in the
268 sec_vma table matches the number of sections in the bfd.
269
270 2019-03-14 Nick Clifton <nickc@redhat.com>
271
272 PR 24333
273 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
274 section owner pointer when adding the default symbol.
275
276 2019-03-14 Nick Clifton <nickc@redhat.com>
277
278 PR 24332
279 * elflink.c (elf_link_add_object_symbols): Add new local variable
280 extversym_end. Initialise it to point to the end of the version
281 symbol table, if present. Check it when initialising and updating
282 the ever pointer.
283
284 2019-03-13 Sudakshina Das <sudi.das@arm.com>
285
286 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
287 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
288 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
289 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
290 and PLT_PAC_PLT.
291 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
292 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
293 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
294
295 2019-03-13 Sudakshina Das <sudi.das@arm.com>
296 Szabolcs Nagy <szabolcs.nagy@arm.com>
297
298 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
299 (aarch64_bti_pac_info): New.
300 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
301 (bfd_elf32_aarch64_set_options): Likewise.
302 * bfd-in2.h: Regenerate
303 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
304 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
305 (elfNN_aarch64_small_plt0_bti_entry): New.
306 (elfNN_aarch64_small_plt_bti_entry): New.
307 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
308 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
309 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
310 tlsdesc_plt_entry_size fields.
311 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
312 (setup_plt_values): New helper function.
313 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
314 bti enable type.
315 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
316 fixed macros.
317 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
318 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
319 to plt stubs instead of fixed ones and update filling them according
320 to the need for bti.
321 (elfNN_aarch64_init_small_plt0_entry): Likewise.
322 (elfNN_aarch64_finish_dynamic_sections): Likewise.
323 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
324 (elfNN_aarch64_plt_sym_val): Update size accordingly.
325 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
326 is set.
327 (bfd_elfNN_get_synthetic_symtab): Define.
328 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
329 and mising BTI NOTE SECTION.
330
331
332 2019-03-13 Sudakshina Das <sudi.das@arm.com>
333
334 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
335 linker created inputs from merge.
336 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
337 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
338 (elfNN_aarch64_link_setup_gnu_properties): New.
339 (elfNN_aarch64_merge_gnu_properties): New.
340 (elf_backend_setup_gnu_properties): Define for AArch64.
341 (elf_backend_merge_gnu_properties): Likewise.
342 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
343 (_bfd_aarch64_elf_parse_gnu_properties): Define.
344 (_bfd_aarch64_elf_merge_gnu_properties): Define.
345 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
346 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
347 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
348 (elf_backend_parse_gnu_properties): Define for AArch64.
349
350 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
351
352 PR ld/24322
353 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
354 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
355
356 2019-03-12 Alan Modra <amodra@gmail.com>
357
358 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
359 nmemb parameter. Use bfd_alloc2.
360 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
361 Delete assertion.
362 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
363 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
364 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
365 doesn't overflow.
366 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
367 (assign_section_numbers): Style fix.
368 (swap_out_syms): Use bfd_malloc2.
369 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
370 overflow.
371 (_bfd_elf_make_empty_symbol): Style fix.
372 (elfobj_grok_stapsdt_note_1): Formatting.
373 * elfcode.h (elf_object_p): Use bfd_alloc2.
374 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
375 (elf_slurp_symbol_table): Use bfd_zalloc2.
376 (elf_slurp_reloc_table): Use bfd_alloc2.
377 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
378 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
379 size calculation doesn't overflow.
380 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
381 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
382 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
383
384 2019-03-08 Alan Modra <amodra@gmail.com>
385
386 PR 24311
387 * merge.c (merge_strings): Return secinfo. Don't pad section
388 to alignment here.
389 (_bfd_merge_sections): Pad section to alignment here, if input
390 sections contributing to merged output all pad to alignment.
391 Formatting.
392
393 2019-03-06 Nick Clifton <nickc@redhat.com>
394
395 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
396 table pointer.
397 * coffgen.c (coff_find_nearest_line_with_names): Do not call
398 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
399
400 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
401
402 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
403 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
404
405 PR 20113
406 * elf32-s390.c (allocate_dynrelocs): Update comment.
407
408 2019-02-28 Tamar Christina <tamar.christina@arm.com>
409
410 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
411
412 2019-02-28 Nick Clifton <nickc@redhat.com>
413
414 PR 24273
415 * elf.c (bfd_elf_string_from_elf_section): Check for a string
416 section that is not NUL terminated.
417
418 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
419
420 PR ld/24276
421 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
422 by linker when checking copy reloc on protected symbol.
423
424 2019-02-24 Alan Modra <amodra@gmail.com>
425
426 PR 24144
427 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
428
429 2019-02-20 Eric Tsai <erictsai@cadence.com>
430
431 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
432 sections between the call site and call destination and adjust
433 call distance by the largest alignment.
434
435 2019-02-20 Alan Hayward <alan.hayward@arm.com>
436
437 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
438 * elf.c (elfcore_grok_aarch_pauth): New function.
439 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
440 (elfcore_write_aarch_pauth): New function.
441 (elfcore_write_register_note): Check for AArch64 pauth section.
442
443 2019-02-20 Alan Modra <amodra@gmail.com>
444
445 PR 24225
446 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
447 return value.
448
449 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
450
451 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
452 Darwin hosts, not just or1k.
453 * configure: Regenerate.
454
455 2019-02-20 Alan Modra <amodra@gmail.com>
456
457 PR 24236
458 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
459 sentinel NUL to string buffer nearer to loop where it is used.
460 Don't go past sentinel when scanning strings, and don't write
461 NUL again.
462 * archive.c (do_slurp_coff_armap): Simplify string handling to
463 archive64.c style.
464
465 2019-02-19 Alan Modra <amodra@gmail.com>
466
467 PR 24235
468 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
469 attempting to prevent read past end of section.
470
471 2019-02-18 Alan Modra <amodra@gmail.com>
472
473 PR 24225
474 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
475 PRIx64 to generate warning messages. Print local sym names too.
476
477 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
478
479 * elf32-arc (INIT_SYM_STRING): Delete.
480 (FINI_SYM_STRING): Likewise.
481 (init_str): Likewise.
482 (fini_str): Likewise.
483
484 2019-02-08 Alan Modra <amodra@gmail.com>
485
486 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
487 for bss-plt" warning to make it an error.
488
489 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
490
491 PR ld/18841
492 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
493 reloc_class_ifunc for ifunc symbols.
494 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
495
496 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
497
498 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
499 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
500
501 2019-02-07 Nick Clifton <nickc@redhat.com>
502
503 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
504 into the definitely obsolete list.
505
506 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
507
508 PR ld/24151
509 * elf64-x86-64.c (elf_x86_64_need_pic): Check
510 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
511 (elf_x86_64_relocate_section): Move PIC check for PC-relative
512 relocations to ...
513 (elf_x86_64_check_relocs): Here.
514 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
515 to check if a symbol is defined in a non-shared object.
516 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
517
518 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
519
520 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
521 of 'labs' (and fix GCC warning).
522
523 2019-01-25 Nick Clifton <nickc@redhat.com>
524
525 * po/ru.po: Updated Russian translation.
526
527 2019-01-23 Nick Clifton <nickc@redhat.com>
528
529 * po/fr.po: Updated French translation.
530
531 2019-01-21 Nick Clifton <nickc@redhat.com>
532
533 * po/pt.po: Updated Portuguese translation.
534 * po/uk.po: Updated Ukranian translation.
535
536 2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
537
538 PR 24108
539 * elf32-nds32.c (nds32_relocate_section): Add space between words
540 in error message.
541 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
542 error message.
543 (riscv_i_or_e_p): Likewise.
544 (riscv_merge_arch_attr_info): Likewise.
545
546 2019-01-19 Nick Clifton <nickc@redhat.com>
547
548 * version.m4: Reset to 2.32.51
549 * configure: Regenerate.
550 * po/bfd.pot: Regenerate.
551
552 2018-06-24 Nick Clifton <nickc@redhat.com>
553
554 2.32 branch created.
555
556 2019-01-16 Kito Cheng <kito@andestech.com>
557
558 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
559 for OBJ_ATTR_PROC.
560
561 2019-01-16 Kito Cheng <kito@andestech.com>
562 Nelson Chu <nelson@andestech.com>
563
564 * elfnn-riscv.c (in_subsets): New.
565 (out_subsets): Likewise.
566 (merged_subsets): Likewise.
567 (riscv_std_ext_p): Likewise.
568 (riscv_non_std_ext_p): Likewise.
569 (riscv_std_sv_ext_p): Likewise.
570 (riscv_non_std_sv_ext_p): Likewise.
571 (riscv_version_mismatch): Likewise.
572 (riscv_i_or_e_p): Likewise.
573 (riscv_merge_std_ext): Likewise.
574 (riscv_merge_non_std_and_sv_ext): Likewise.
575 (riscv_merge_arch_attr_info): Likewise.
576 (riscv_merge_attributes): Likewise.
577 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
578
579 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
580 (elf_backend_obj_attrs_vendor): Define.
581 (elf_backend_obj_attrs_section_type): Likewise.
582 (elf_backend_obj_attrs_section): Likewise.
583 (elf_backend_obj_attrs_arg_type): Define as
584 riscv_elf_obj_attrs_arg_type.
585 * elfxx-riscv.c (riscv_estimate_digit): New.
586 (riscv_estimate_arch_strlen1): Likewise.
587 (riscv_estimate_arch_strlen): Likewise.
588 (riscv_arch_str1): Likewise.
589 (riscv_arch_str): Likewise.
590 * elfxx-riscv.h (riscv_arch_str): Declare.
591
592 2019-01-14 John Darrington <john@darrington.wattle.id.au>
593
594 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
595 * libbfd.h: regen.
596 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
597 source field. (md_apply_fix): Apply final fix
598 to BFD_RELOC_S12Z_OPR.
599 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
600
601 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
602
603 PR 20113
604 * elf32-s390.c (allocate_dynrelocs): Update comment.
605
606 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
607
608 * warning.m4: Adjust egrep pattern for non-GNU compilers.
609 * configure: Regenerate.
610
611 2019-01-08 Alan Modra <amodra@gmail.com>
612
613 PR 23699
614 PR 24065
615 * ihex.c (ihex_write_object_contents): Properly check 32-bit
616 address range.
617
618 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
619
620 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
621 * bfd/bfd-in2.h: Regenerate.
622 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
623 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
624
625 2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
626
627 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
628 default target, little endian target is more suitable.
629
630 2019-01-04 Alan Modra <amodra@gmail.com>
631
632 PR 24061
633 PR 21786
634 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
635 adjust all callers.
636 (EQ_VALUE_IN_FIELD): Likewise.
637 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
638
639 2019-01-01 Alan Modra <amodra@gmail.com>
640
641 Update year range in copyright notice of all files.
642
643 For older changes see ChangeLog-2018
644 \f
645 Copyright (C) 2019 Free Software Foundation, Inc.
646
647 Copying and distribution of this file, with or without modification,
648 are permitted in any medium without royalty provided the copyright
649 notice and this notice are preserved.
650
651 Local Variables:
652 mode: change-log
653 left-margin: 8
654 fill-column: 74
655 version-control: never
656 End:
This page took 0.087825 seconds and 4 git commands to generate.