aix: implement TLS relocation for gas and ld
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2021-03-12 Clément Chigot <clement.chigot@atos.net>
2
3 * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
4 BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
5 BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
6 BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
7 BFD_RELOC_PPC64_TLS_ML): New relocations.
8 * bfd-in2.h: Regenerate.
9 * libbfd.h: Regenerate.
10 * coff-rs6000.c (xcoff_calculate_relocation): Call
11 xcoff_reloc_type_tls for TLS relocations.
12 (xcoff_howto_table): Implement TLS relocations.
13 (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
14 (xcoff_reloc_type_tls): New function.
15 * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
16 (xcoff_howto_table): Likewise.
17 (_bfd_xcoff_reloc_type_lookup): Likewise.
18 * coffcode.h (sec_to_styp_flags): Handle TLS sections.
19 (styp_to_sec_flags): Likewise.
20 (coff_compute_section_file_positions): Avoid file offset
21 optimisation for .data when the previous section is .tdata.
22 (coff_write_object_contents): Handle TLS sections.
23 * coffswap.h (coff_swap_aouthdr_out): Add support for
24 new fields in aouthdr.
25 * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
26 * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
27 (xcoff_need_ldrel_p): Add cases for TLS relocations.
28 (xcoff_create_ldrel): Add l_symndx for TLS sections.
29
30 2021-03-12 Clément Chigot <clement.chigot@atos.net>
31
32 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
33 New relocations.
34 * bfd-in2.h: Regenerate.
35 * libbfd.h: Regenerate.
36 * coff-rs6000.c (xcoff_calculate_relocation): Call
37 xcoff_reloc_type_toc for R_TOCU and R_TOCL.
38 (xcoff_howto_table): Remove src_mask for TOC relocations.
39 Add R_TOCU and R_TOCL howtos.
40 (_bfd_xcoff_reloc_type_lookup): Add cases for
41 BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
42 (xcoff_reloc_type_toc): Compute the whole offset.
43 Implement R_TOCU and R_TOCL.
44 * coff64-rs6000.c (xcoff64_calculate_relocation):
45 Likewise.
46 (xcoff64_howto_table): Likewise.
47 (xcoff64_reloc_type_lookup): Likewise.
48
49 2021-03-12 Clément Chigot <clement.chigot@atos.net>
50
51 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
52 add new relocations.
53 (xcoff_howto_table): Likewise.
54 (xcoff_rtype2howto): Increase r_type maximum value.
55 (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
56 of create a new one from scratch. Enable only some relocations
57 to have a changing r_size.
58 * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
59 (xcoff64_howto_table): Likewise.
60 (xcoff64_rtype2howto): Likewise.
61 (xcoff64_ppc_relocate_section): Likewise.
62 * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
63
64 2021-03-12 Clément Chigot <clement.chigot@atos.net>
65
66 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
67
68 2021-03-12 Clément Chigot <clement.chigot@atos.net>
69
70 * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
71 * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
72 support for o_cputype field. Avoid creating an empty a.out header
73 for XCOFF64.
74
75 2021-03-12 Clément Chigot <clement.chigot@atos.net>
76
77 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
78 missing smclass.
79
80 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
81
82 * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
83 restart_relax, used to check if we need to run the whole
84 relaxations from relax pass 0 to 2 again.
85 (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
86 (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
87 (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
88 (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
89 after_allocation to check if we need to run the whole relaxations again.
90 (_bfd_riscv_relax_section): We will only enter into the relax pass 3
91 when the restart_relax is FALSE; At last set restart_relax to TRUE if
92 again is TRUE, too.
93 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
94 (bfd_elf64_riscv_restart_relax_sections): Likewise.
95
96 2021-03-10 Jan Beulich <jbeulich@suse.com>
97
98 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
99 offset.
100
101 2021-03-10 Alan Modra <amodra@gmail.com>
102 Jan Beulich <jbeulich@suse.com>
103
104 * elf.c (bfd_elf_generic_reloc): Make references between debug
105 sections use section relative values.
106
107 2021-03-09 Jan Beulich <jbeulich@suse.com>
108
109 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
110
111 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
112
113 PR ld/27425
114 PR ld/27432
115 * bfd.c (_bfd_get_link_info): New function.
116 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
117 (elf_link_info): New.
118 * libbfd-in.h (_bfd_get_link_info): New prototype.
119 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
120 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
121 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
122 (pex64_link_add_symbols): New function.
123 (coff_bfd_link_add_symbols): New macro.
124 * libbfd.h: Regenerated.
125
126 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
127 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
130 * elf.c (elfcore_grok_riscv_csr): New function.
131 (elfcore_grok_note): Handle NT_RISCV_CSR.
132 (elfcore_write_riscv_csr): New function.
133 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
134
135 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
136 Andrew Burgess <andrew.burgess@embecosm.com>
137
138 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
139 (PRPSINFO_PR_PSARGS_LENGTH): Define.
140 (riscv_write_core_note): New function.
141 (riscv_elf_grok_psinfo): Make use of two new length defines.
142 (elf_backend_write_core_note): Define.
143
144 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
145 Andrew Burgess <andrew.burgess@embecosm.com>
146
147 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
148 * elf.c (elfcore_grok_gdb_tdesc): New function.
149 (elfcore_grok_note): Handle NT_GDB_TDESC.
150 (elfcore_write_gdb_tdesc): New function.
151 (elfcore_write_register_note): Handle NT_GDB_TDESC.
152
153 2021-03-05 Nick Clifton <nickc@redhat.com>
154
155 PR 27521
156 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
157 (read_indexed_string): Placeholder function.
158 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
159 forms.
160
161 2021-03-05 Alan Modra <amodra@gmail.com>
162
163 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
164 2020-09-16 changes.
165 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
166 adjustments here instead. Separate pc-relative adjustments
167 from symbol related adjustments. Tidy comments and formatting.
168
169 2021-03-04 Jan Beulich <jbeulich@suse.com>
170
171 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
172 final PE images.
173
174 2021-03-04 Alan Modra <amodra@gmail.com>
175
176 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
177
178 2021-03-03 Alan Modra <amodra@gmail.com>
179
180 PR 27500
181 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
182 processing not when start/stop symbol section is unmarked but
183 on first time a start/stop symbol is processed.
184
185 2021-03-03 Alan Modra <amodra@gmail.com>
186
187 * reloc.c: Include x86_64.h rather than internal.h.
188
189 2021-03-02 Nick Clifton <nickc@redhat.com>
190
191 PR 27484
192 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
193 function and variable tags and a second time to resolve their
194 attributes.
195
196 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
197
198 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
199
200 2021-03-02 Alan Modra <amodra@gmail.com>
201
202 PR 27451
203 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
204 linker defined start/stop symbols when start_stop_gc.
205
206 2021-03-02 Alan Modra <amodra@gmail.com>
207
208 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
209 indirect to pc-relative or toc-relative for undefined symbols.
210
211 2021-03-01 Alan Modra <amodra@gmail.com>
212 Fangrui Song <maskray@google.com>
213
214 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
215 defined start/stop symbols when start_stop_gc.
216 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
217 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
218 * linker.c (bfd_generic_define_start_stop): Likewise.
219
220 2021-02-25 Alan Modra <amodra@gmail.com>
221
222 PR 27441
223 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
224 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
225 use when deciding an as-needed library should be loaded instead
226 of using the binding of the library definition.
227
228 2021-02-24 Alan Modra <amodra@gmail.com>
229
230 PR 27459
231 * coff-stgo32.c (go32exe_check_format): Sanity check size of
232 header to avoid a buffer overflow.
233
234 2021-02-22 Alan Modra <amodra@gmail.com>
235
236 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
237 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
238
239 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
240
241 PR 27158
242 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
243 (_bfd_riscv_relax_call): Likewise.
244 (_bfd_riscv_relax_lui): Likewise.
245 * elfxx-riscv.c (howto_table): Likewise.
246
247 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
248
249 * Makefile.am: Added cpu-riscv.h.
250 * Makefile.in: Regenerated.
251 * po/SRC-POTFILES.in: Regenerated.
252 * cpu-riscv.h: Added to support spec versions controlling.
253 Also added extern arrays and functions for cpu-riscv.c.
254 (enum riscv_spec_class): Define all spec classes here uniformly.
255 (struct riscv_spec): Added for all specs.
256 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
257 (RISCV_GET_SPEC_NAME): Likewise.
258 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
259 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
260 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
261 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
262 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
263 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
264 (riscv_priv_specs): Moved below.
265 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
266 (riscv_isa_specs): Moved from include/opcode/riscv.h.
267 * elfnn-riscv.c: Included cpu-riscv.h.
268 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
269 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
270 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
271 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
272
273 2021-02-17 Alan Modra <amodra@gmail.com>
274
275 * wasm-module.c: Guard include of limits.h.
276 (CHAR_BIT): Provide backup define.
277 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
278 Correct signed overflow checking.
279
280 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
281
282 PR 27200
283 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
284 copying the elf flags from input BFD to output BFD, until we have
285 checked if the input BFD has no code section or not. Also fix the
286 problem that we only check the first section rather than the entire
287 sections for input BFD.
288
289 2021-02-16 Alan Modra <amodra@gmail.com>
290
291 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
292 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
293
294 2021-02-15 Jan Beulich <jbeulich@suse.com>
295
296 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
297 * doc/Makefile.in: Re-generate.
298
299 2021-02-15 Alan Modra <amodra@gmail.com>
300
301 * elf32-nds32.c (nds32_get_section_contents): Replace
302 bfd_malloc_and_get_section with bfd_get_full_section_contents.
303 (nds32_elf_relax_delete_blanks): Init contents.
304 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
305
306 2021-02-15 Alan Modra <amodra@gmail.com>
307
308 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
309 bfd_get_full_section_contents.
310
311 2021-02-14 Alan Modra <amodra@gmail.com>
312
313 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
314 all fixes to bfd_generic_get_relocated_section_contents since this
315 function was split out.
316
317 2021-02-11 Alan Modra <amodra@gmail.com>
318
319 * config.bfd: Remove ia64 from obsolete list.
320
321 2021-02-11 Alan Modra <amodra@gmail.com>
322
323 PR ld/22269
324 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
325
326 2021-02-11 Alan Modra <amodra@gmail.com>
327
328 PR 27294
329 * elf32-avr.c (avr_elf32_load_records_from_section): Use
330 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
331 unnecessary casts.
332
333 2021-02-11 Alan Modra <amodra@gmail.com>
334
335 PR 27291
336 * section.c (bfd_get_section_contents): Avoid possible overflow
337 when range checking offset and count.
338 (bfd_set_section_contents): Likewise.
339
340 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
341
342 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
343 favour of LIBINTL.
344 * configure: Regenerated.
345
346 2021-02-09 Alan Modra <amodra@gmail.com>
347
348 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
349 * configure.ac: Delete symbian entries.
350 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
351 * elf32-arm.c: Remove symbian support. Formatting.
352 * targets.c: Delete symbian entries.
353 * configure: Regenerate.
354
355 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
356
357 PR ld/19609
358 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
359 info when failed to convert GOTPCREL relocation.
360
361 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
362
363 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
364
365 2021-02-04 Alan Modra <amodra@gmail.com>
366
367 PR 27311
368 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
369 libraries for IR references on pass over libraries after LTO
370 recompilation.
371
372 2021-02-03 Alan Modra <amodra@gmail.com>
373
374 PR 27311
375 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
376 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
377 libraries when H is an indirect symbol after calling
378 _bfd_elf_add_default_symbol.
379
380 2021-02-03 Alan Modra <amodra@gmail.com>
381
382 PR 27311
383 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
384 undecorated symbol will have a different version.
385
386 2021-02-02 Alan Modra <amodra@gmail.com>
387
388 PR 27311
389 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
390 Use when handling default versioned symbol. Rename existing
391 override variable to nondef_override and use for non-default
392 versioned symbol.
393 (elf_link_add_object_symbols): Adjust call to suit. Don't
394 pull in as-needed libraries when override is set.
395
396 2021-02-01 Emery Hemingway <ehmry@posteo.net>
397
398 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
399
400 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
401
402 PR 27254
403 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
404 offset for the R_RL78_RH_SADDR relocation.
405
406 2021-01-29 Alan Modra <amodra@gmail.com>
407
408 PR 27271
409 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
410 on symbols defined in absolute or other special sections.
411
412 2021-01-28 Alan Modra <amodra@gmail.com>
413
414 PR 27259
415 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
416 prevent endless looping of linked-to sections.
417
418 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
419
420 * bfd-elf.h (elfcore_write_file_note): New function.
421 * elf.c (elfcore_write_file_note): New function.
422
423 2021-01-26 Alan Modra <amodra@gmail.com>
424
425 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
426
427 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
428
429 PR binutils/27231
430 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
431 number tables.
432
433 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
434
435 PR binutils/27231
436 * dwarf2.c (read_rnglists): Advance rngs_ptr after
437 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
438
439 2021-01-20 Alan Modra <amodra@gmail.com>
440
441 * elf32-ppc.c: Delete outdated comment.
442 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
443 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
444
445 2021-01-20 Alan Modra <amodra@gmail.com>
446
447 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
448 section symbols are present.
449
450 2021-01-19 Alan Modra <amodra@gmail.com>
451
452 * elf64-ppc.c (elf_hash_entry): New inline function. Use
453 throughout to replace casts.
454 (branch_reloc_hash_match): Remove const from params.
455 (use_local_plt): New function.
456 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
457 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
458 Use use_local_plt.
459 * elf32-ppc.c (use_local_plt): New function.
460 (allocate_dynrelocs, ppc_elf_relocate_section),
461 (write_global_sym_plt): Use use_local_plt.
462
463 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
464
465 PR ld/27193
466 * elflink.c (elf_create_symbuf): Also ignore section symbols.
467
468 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
469
470 PR ld/23169
471 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
472 check pointer_equality_needed.
473
474 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
475
476 * elf-linker-x86.h (elf_linker_x86_params): Add
477 report_relative_reloc.
478 * elf32-i386.c (elf_i386_relocate_section): Call
479 _bfd_x86_elf_link_report_relative_reloc to report relative
480 relocations for -z report-relative-reloc.
481 (elf_i386_finish_dynamic_symbol): Likewse.
482 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
483 (elf_x86_64_finish_dynamic_symbol): Likewse.
484 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
485 function.
486 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
487 prototype.
488
489 2021-01-16 Alan Modra <amodra@gmail.com>
490
491 * compress.c (decompress_contents): Tidy inflateEnd result test.
492
493 2021-01-16 Alan Modra <amodra@gmail.com>
494
495 PR 26002
496 * elflink.c (elf_link_output_extsym): Use version 1 in
497 .gnu.version for undefined unversioned symbols.
498
499 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
500
501 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
502 caused the by previous commit accidentally.
503
504 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
505
506 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
507 also aligned the code.
508
509 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
510
511 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
512
513 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
514
515 * elfnn-riscv.c: Comments tidy and improvement.
516 * elfxx-riscv.c: Likewise.
517 * elfxx-riscv.h: Likewise.
518
519 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
520
521 PR ld/26688
522 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
523 section for R_BFIN_FUNCDESC.
524
525 2021-01-14 Nick Clifton <nickc@redhat.com>
526
527 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
528
529 2021-01-13 Alan Modra <amodra@gmail.com>
530
531 * Makefile.in: Regenerate.
532 * doc/Makefile.in: Regenerate.
533
534 2021-01-13 Alan Modra <amodra@gmail.com>
535
536 PR 27160
537 * section.c (struct bfd_section): Remove pattern field.
538 (BFD_FAKE_SECTION): Adjust to suit.
539 * bfd-in2.h: Regenerate.
540 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
541 (bfd_elf_final_link): Don't call elf_fixup_link_order.
542
543 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
544
545 PR binutils/26792
546 * configure.ac: Use GNU_MAKE_JOBSERVER.
547 * aclocal.m4: Regenerated.
548 * configure: Likewise.
549
550 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
551
552 PR ld/27171
553 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
554 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
555
556 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
557
558 PR ld/27173
559 * configure: Regenerated.
560
561 2021-01-11 Nick Clifton <nickc@redhat.com>
562
563 * po/fr.po: Updated French translation.
564 * po/pt.po: Updated Portuguese translation.
565 * po/sr.po: Updated Serbian translation.
566 * po/uk.po: Updated Ukranian translation.
567
568 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
569
570 * configure: Regenerated.
571
572 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
573
574 PR ld/27166
575 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
576 -z lam-u48 and -z lam-u57.
577
578 2021-01-09 Nick Clifton <nickc@redhat.com>
579
580 * version.m4: Change to 2.36.50.
581 * configure: Regenerate.
582 * po/bfd.pot: Regenerate.
583
584 2021-01-09 Nick Clifton <nickc@redhat.com>
585
586 * 2.36 release branch crated.
587
588 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
589
590 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
591 LAM_U57 when setting LAM_U48.
592
593 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
594
595 PR ld/26256
596 PR ld/27160
597 * elflink.c (elf_fixup_link_order): Verify that fixing up
598 SHF_LINK_ORDER doesn't increase the output section size.
599
600 2021-01-09 Alan Modra <amodra@gmail.com>
601
602 * configure: Regenerate.
603
604 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
605
606 * configure: Regenerate.
607
608 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
609
610 PR 27109
611 * aix386-core.c (core_aix386_vec): Initialize
612 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
613 * aout-target.h (MY (vec)): Likewise.
614 * binary.c (binary_vec): Likewise.
615 * cisco-core.c (core_cisco_be_vec): Likewise.
616 (core_cisco_le_vec): Likewise.
617 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
618 * coff-i386.c (TARGET_SYM): Likewise.
619 (TARGET_SYM_BIG): Likewise.
620 * coff-ia64.c (TARGET_SYM): Likewise.
621 * coff-mips.c (mips_ecoff_le_vec): Likewise.
622 (mips_ecoff_be_vec): Likewise.
623 (mips_ecoff_bele_vec): Likewise.
624 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
625 (powerpc_xcoff_vec): Likewise.
626 * coff-sh.c (sh_coff_small_vec): Likewise.
627 (sh_coff_small_le_vec): Likewise.
628 * coff-tic30.c (tic30_coff_vec): Likewise.
629 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
630 (tic54x_coff0_beh_vec): Likewise.
631 (tic54x_coff1_vec): Likewise.
632 (tic54x_coff1_beh_vec): Likewise.
633 (tic54x_coff2_vec): Likewise.
634 (tic54x_coff2_beh_vec): Likewise.
635 * coff-x86_64.c (TARGET_SYM): Likewise.
636 (TARGET_SYM_BIG): Likewise.
637 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
638 (rs6000_xcoff64_aix_vec): Likewise.
639 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
640 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
641 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
642 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
643 (TARGET_LITTLE_SYM): Likewise.
644 * hppabsd-core.c (core_hppabsd_vec): Likewise.
645 * hpux-core.c (core_hpux_vec): Likewise.
646 * i386msdos.c (i386_msdos_vec): Likewise.
647 * ihex.c (ihex_vec): Likewise.
648 * irix-core.c (core_irix_vec): Likewise.
649 * mach-o-target.c (TARGET_NAME): Likewise.
650 * mmo.c (mmix_mmo_vec): Likewise.
651 * netbsd-core.c (core_netbsd_vec): Likewise.
652 * osf-core.c (core_osf_vec): Likewise.
653 * pdp11.c (MY (vec)): Likewise.
654 * pef.c (pef_vec): Likewise.
655 (pef_xlib_vec): Likewise.
656 * plugin.c (plugin_vec): Likewise.
657 * ppcboot.c (powerpc_boot_vec): Likewise.
658 * ptrace-core.c (core_ptrace_vec): Likewise.
659 * sco5-core.c (core_sco5_vec): Likewise.
660 * som.c (hppa_som_vec): Likewise.
661 * srec.c (srec_vec): Likewise.
662 (symbolsrec_vec): Likewise.
663 * tekhex.c (tekhex_vec): Likewise.
664 * trad-core.c (core_trad_vec): Likewise.
665 * verilog.c (verilog_vec): Likewise.
666 * vms-alpha.c (alpha_vms_vec): Likewise.
667 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
668 * wasm-module.c (wasm_vec): Likewise.
669 * xsym.c (sym_vec): Likewise.
670 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
671 isn't set.
672 (elf_map_symbols): Don't include ignored section symbols.
673 * elfcode.h (elf_slurp_symbol_table): Also set
674 BSF_SECTION_SYM_USED on STT_SECTION symbols.
675 * elflink.c (bfd_elf_final_link): Generated section symbols only
676 when emitting relocations or reqired.
677 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
678 * syms.c (BSF_SECTION_SYM_USED): New.
679 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
680 (bfd_target): Add keep_unused_section_symbols.
681 (bfd_keep_unused_section_symbols): New.
682 * bfd-in2.h: Regenerated.
683
684 2021-01-07 Nick Clifton <nickc@redhat.com>
685
686 PR 25713
687 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
688 absolute paths and check to see if they are longer than MAX_PATH.
689
690 2021-01-07 Philipp Tomsich <prt@gnu.org>
691
692 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
693
694 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
695 Jim Wilson <jimw@sifive.com>
696 Andrew Waterman <andrew@sifive.com>
697 Maxim Blinov <maxim.blinov@embecosm.com>
698 Kito Cheng <kito.cheng@sifive.com>
699 Nelson Chu <nelson.chu@sifive.com>
700
701 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
702
703 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
704
705 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
706 (bfinfdpic_check_relocs): Likewise.
707
708 2021-01-06 Alan Modra <amodra@gmail.com>
709
710 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
711 on unknown r_type.
712 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
713
714 2021-01-06 Alan Modra <amodra@gmail.com>
715
716 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
717 (sparc64-*-solaris2*): Add sparc_elf64_vec and
718 sparc_elf32_vec.
719
720 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
721
722 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
723 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
724 * configure.ac: Handle riscv_elf[32|64]_be_vec.
725 * configure: Regenerate.
726 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
727 riscv_is_insn_reloc.
728 (riscv_get_insn): RISC-V instructions are always little endian, but
729 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
730 the insturctions.
731 (riscv_put_insn): Likewsie.
732 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
733 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
734 use riscv_[get|put]_insn or bfd_[get|put].
735 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
736 or bfd_[get|put]l16 for code.
737 (riscv_elf_relocate_section): Likewise.
738 (riscv_elf_finish_dynamic_symbol): Likewise.
739 (riscv_elf_finish_dynamic_sections): Likewise.
740 (_bfd_riscv_relax_call): Likewise.
741 (_bfd_riscv_relax_lui): Likewise.
742 (_bfd_riscv_relax_align): Likewise.
743 (_bfd_riscv_relax_pc): Likewise.
744 (riscv_elf_object_p): Handled for big endian.
745 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
746 * targets.c: Add riscv_elf[32|64]_be_vec.
747 (_bfd_target_vector): Likewise.
748
749 2021-01-05 Alan Modra <amodra@gmail.com>
750
751 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
752 for relocatable executable.
753
754 2021-01-05 Alan Modra <amodra@gmail.com>
755
756 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
757
758 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
759
760 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
761 make sure gp symbol is output as a dynamic symbol.
762
763 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
764
765 PR ld/26256
766 * elflink.c (compare_link_order): Place unordered sections before
767 ordered sections.
768 (elf_fixup_link_order): Add a link info argument. Allow mixed
769 ordered and unordered input sections for non-relocatable link.
770 Sort the consecutive bfd_indirect_link_order sections with the
771 same pattern. Change the offsets of the bfd_indirect_link_order
772 sections only.
773 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
774 * section.c (bfd_section): Add pattern.
775 (BFD_FAKE_SECTION): Initialize pattern to NULL.
776 * bfd-in2.h: Regenerated.
777
778 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
779
780 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
781 of private flags with 0x.
782 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
783
784 2021-01-04 Alan Modra <amodra@gmail.com>
785
786 PR 26822
787 * elflink.c (elf_link_input_bfd): Use the file base name in
788 linker generated STT_FILE symbols.
789
790 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
791
792 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
793 * elfxx-riscv.h: Add declaration.
794 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
795 riscv_compare_subsets to check the orders.
796 (riscv_skip_prefix): Removed.
797 (riscv_prefix_cmp): Removed.
798
799 2021-01-04 Alan Modra <amodra@gmail.com>
800
801 PR 26741
802 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
803 calculating subset version length.
804
805 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
806
807 * xcofflink.c: Correct spelling in comments.
808
809 2021-01-01 Alan Modra <amodra@gmail.com>
810
811 Update year range in copyright notice of all files.
812
813 For older changes see ChangeLog-2020
814 \f
815 Copyright (C) 2021 Free Software Foundation, Inc.
816
817 Copying and distribution of this file, with or without modification,
818 are permitted in any medium without royalty provided the copyright
819 notice and this notice are preserved.
820
821 Local Variables:
822 mode: change-log
823 left-margin: 8
824 fill-column: 74
825 version-control: never
826 End:
This page took 0.044557 seconds and 4 git commands to generate.