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