]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
4c836627
AM
12020-03-25 Alan Modra <amodra@gmail.com>
2
3 * readelf.c (process_archive): Prevent endless loop.
4
1081065c
L
52020-03-24 H.J. Lu <hongjiu.lu@intel.com>
6
7 PR binutils/25708
8 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
9 with bfd_get_symbol_version_string.
10 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
11 * objdump.c (objdump_print_symname): Likewise.
12
7e6e972f
L
132020-03-24 H.J. Lu <hongjiu.lu@intel.com>
14
15 PR binutils/25708
16 * nm.c (SYM_NAME): Removed.
17 (print_symname): Add a pointer to struct extended_symbol_info
18 argument. Call _bfd_elf_get_symbol_version_name to get symbol
19 version.
20 (print_symdef_entry): Pass NULL to print_symname.
21 (print_symbol_info_bsd): Update call to print_symname.
22 (print_symbol_info_sysv): Likewise.
23 (print_symbol_info_posix): Likewise.
24
5a814d6d
AM
252020-03-24 Alan Modra <amodra@gmail.com>
26
27 * readelf.c (process_mips_specific): Free iconf on error path.
28
0636b245
NC
292020-03-23 Nick Clifton <nickc@redhat.com>
30
31 PR 25714
32 * wrstabs.c (stab_pop_type): Replace assertion with error return.
33 * write_stabs_in_sections_debugging_info: Likewise.
34 * stab_enum_type: Likewise.
35 * stab_modify_type: Likewise.
36 * stab_struct_field: Likewise.
37 * stab_end_struct_type: Likewise.
38 * stab_start_class_type: Likewise.
39 * stab_class_static_member: Likewise.
40 * stab_class_baseclass: Likewise.
41 * stab_class_start_method: Likewise.
42 * stab_class_method_var: Likewise.
43 * stab_class_end_method: Likewise.
44 * stab_end_class_type: Likewise.
45 * stab_typedef_type: Likewise.
46 * stab_start_function: Likewise.
47 * stab_end_block: Likewise.
48 * stab_lineno: Likewise.
49
5844b465
NC
502020-03-20 Nick Clifton <nickc@redhat.com>
51
52 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
53 (process_section_headers): Check the return value from
54 get_compression_header.
55 (dump_section_as_strings): Likewise.
56 (dump_section_as_bytes): Likewise.
57 (load_specific_debug_section): Likewise.
58
3d98c460
L
592020-03-20 H.J. Lu <hongjiu.lu@intel.com>
60
61 * ar.c (main): Update bfd_plugin_set_program_name call.
62 * nm.c (main): Likewise.
63
f3a08f77
NC
642020-03-19 Nick Clifton <nickc@redhat.com>
65
66 PR 25676
67 * testsuite/binutils-all/dw4.s: New test source file.
68 * testsuite/binutils-all/nm.exp: Run the new test.
69
ef3df110
L
702020-03-19 H.J. Lu <hongjiu.lu@intel.com>
71
72 * readelf.c (process_symbol_table): Use unsigned long for si.
73
81a65eb3
AM
742020-03-19 Alan Modra <amodra@gmail.com>
75
76 * elfcomm.c: Don't include bfd.h or bucomm.h.
77 (program_name): Declare.
78 (process_archive_index_and_symbols): Replace bfd_boolean with int,
79 and substitute FALSE and TRUE.
80 (setup_archive, setup_nested_archive): Likewise.
81 * elfcomm.h: Likewise.
82
1cb7d8b1
AM
832020-03-19 Alan Modra <amodra@gmail.com>
84
85 * readelf.c (process_archive): Always return via path freeing
86 memory. Formatting.
87
b966f55f
AM
882020-03-19 Alan Modra <amodra@gmail.com>
89
90 * readelf.c (process_netbsd_elf_note): Validate descsz before
91 accessing descdata. Formatting.
92
645ba681
AM
932020-03-19 Alan Modra <amodra@gmail.com>
94
95 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
96 * elfcomm.h (setup_archive): Update prototype.
97
28d13567
AM
982020-03-16 Alan Modra <amodra@gmail.com>
99
100 * readelf.c (get_symbols): New function.
101 (process_relocs, ia64_process_unwind, hppa_process_unwind),
102 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
103
60e63c3e
AM
1042020-03-16 Alan Modra <amodra@gmail.com>
105
106 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
107 Detect shift overflows and check that terminating byte is found.
108 Print an error on a bad uleb128.
109
1bd6175a
AM
1102020-03-14 Alan Modra <amodra@gmail.com>
111
112 * readelf.c (process_file): Clean ba_cache.
113
780f96ae
AM
1142020-03-14 Alan Modra <amodra@gmail.com>
115
116 * elfcomm.h (setup_archive): Update prototype.
117 * elfcomm.c (setup_archive): Add file_size parameter and sanity
118 check longnames_size.
119 (setup_nested_archive): Get file size and pass to setup_archive.
120 * elfedit.c (process_archive): Likewise.
121 * readelf.c (process_archive): Pass filedata->file_size to
122 setup_archive.
123
f761cb13
AM
1242020-03-14 Alan Modra <amodra@gmail.com>
125
126 * readelf.c (dump_section_as_strings): Free memory on error exit.
127 (dump_section_as_bytes, process_notes_at): Likewise.
128 (get_build_id): Free enote.
129
06d949ec
KR
1302020-03-13 Kamil Rytarowski <n54@gmx.com>
131
132 * readelf.c (get_netbsd_elfcore_note_type): Add support for
133 NT_NETBSDCORE_LWPSTATUS notes.
134
fd486f32
AM
1352020-03-13 Alan Modra <amodra@gmail.com>
136
137 * elfcomm.c (get_archive_member_name): Always return malloc'd
138 string or NULL.
139 * elfedit.c (process_archive): Tidy memory on all return paths.
140 * readelf.c (process_archive): Likewise.
141 (process_symbol_table): Likewise.
142 (ba_cache): New, replacing ..
143 (get_symbol_for_build_attribute): ..static vars here. Free
144 strtab and symtab before loading new ones. Reject symtab without
145 valid strtab in loop, breaking out of loop on valid symtab.
146 (process_file): Free ba_cache symtab and strtab here, resetting
147 ba_cache.
148
8fb879cd
AM
1492020-03-12 Alan Modra <amodra@gmail.com>
150
151 * readelf.c (process_section_headers): Don't just set
152 filedata->section_headers NULL, free it first. Similarly for
153 dynamic_symbols, dynamic_strings, dynamic_syminfo and
154 symtab_shndx_list. Zero associated counts too.
155 (process_object): Free symtab_shndx_list.
156 (process_file): Free various allocated filedata tables.
157
5496f3c6
NC
1582020-03-11 Nick Clifton <nickc@redhat.com>
159
160 PR 25611
161 PR 25614
162 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
163 li_segment_size fields.
164 * dwarf.c (read_debug_line_header): Record the address size and
165 segment selector size values (if present) in the lineinfo
166 structure.
167 (display_formatted_table): Warn if the format count is empty but
168 the table itself is not empty.
169 Display the format count and entry count at the start of the table
170 dump.
171 (display_debug_lines_raw): Display the address size and segement
172 selector size fields, if present.
173 * testsuite/binutils-all/dw5.W: Update expected output.
174
9cc89dc0
AM
1752020-03-11 Alan Modra <amodra@gmail.com>
176
177 PR 25651
178 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
179 pad_to_set on second block of code dealing with padding.
180 Replace "c" with "num_sec" and don't recalculate number of
181 sections on second block. Size arrays using sizeof (element)
182 rather than sizeof (element type).
183
41da0822
AM
1842020-03-10 Alan Modra <amodra@gmail.com>
185
186 * objdump.c (disassemble_section): Don't call qsort unless
187 sym count is at least two.
188 (disassemble_data): Don't call memcpy with NULL src.
189
95099889
AM
1902020-03-09 Alan Modra <amodra@gmail.com>
191
192 PR 25645
193 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
194 to get_data rather than multiplying.
195 (dump_ia64_vms_dynamic_relocs): Likewise.
196 (process_version_sections): Correct order of size and nmemb args
197 in get_data call.
198 (process_mips_specific): Likewise.
199
a15de1f5
L
2002020-03-08 H.J. Lu <hongjiu.lu@intel.com>
201
202 * readelf.c (get_dynamic_data): Replace "memory chekers" with
203 "memory checkers" in comments.
204
9979ab66
SM
2052020-03-06 Simon Marchi <simon.marchi@efficios.com>
206
207 PR 25491
208 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
209 * doc/Makefile.in: Re-generate.
210
a0dcf297
NC
2112020-03-06 Nick Clifton <nickc@redhat.com>
212
213 * objcopy.c (check_new_section_flags): New function. Reject the
214 SEC_COFF_SHARED flag if the target is not a COFF binary.
215 (copy_object): Call check_new_section_flags.
216 (setup_section): Likewise.
217 * doc/binutils.texi (objcopy): Add a note that the 'share' section
218 flag cannot be applied to ELF binaries.
219
a9b90127
AM
2202020-03-06 Alan Modra <amodra@gmail.com>
221
222 PR 25637
223 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
224
d1faf7ca
AM
2252020-03-05 Alan Modra <amodra@gmail.com>
226
227 PR 25629
228 * objcopy.c (filter_symbols): Don't segfault on NULL
229 prefix_symbols_string.
230
eef64366
CE
2312020-03-04 Christian Eggers <ceggers@gmx.de>
232
233 * objcopy.c (copy_object): Convert from bytes to octets for
234 --gap-fill and --pad-to.
235
5be2b2f5
NC
2362020-03-03 Nick Clifton <nickc@redhat.com>
237
238 PR 25625
239 * prdbg.c (pr_tag_type): Remove call to abort.
240
b312fea1
AM
2412020-03-02 Aaron Merey <amerey@redhat.com>
242
243 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
244 selection.
245
ba3265d0
NC
2462020-03-02 Nick Clifton <nickc@redhat.com>
247
248 PR 25543
249 * readelf.c (dump_section_as_strings): Display new-line characters
250 as \n and then insert a line break.
251 * testsuite/binutils-all/pr25543.s: New test.
252 * testsuite/binutils-all/pr25543.d: Test driver.
253 * testsuite/binutils-all/readelf.exp: Run the new test.
254
736990c4
NC
2552020-02-27 Nick Clifton <nickc@redhat.com>
256
257 PR 25526
258 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
259 get_data is unable to load the string table.
260
dc1e8a47
AM
2612020-02-26 Alan Modra <amodra@gmail.com>
262
263 * elfedit.c: Indent labels correctly.
264 * readelf.c: Likewise.
265 * resres.c: Likewise.
266
ecda9016
L
2672020-02-25 H.J. Lu <hongjiu.lu@intel.com>
268
269 PR binutils/25584
270 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
271 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
272
83d4d556
NC
2732020-02-24 Nick Clifton <nickc@redhat.com>
274
275 PR 25499
276 * doc/binutils.texi (objdump): Fix typo in description of
277 objdump's -g option.
278
bd0cf5a6
NC
2792020-02-20 Nelson Chu <nelson.chu@sifive.com>
280
281 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
282 is changed.
283
741cb839
EC
2842020-02-19 Jordan Rupprecht <rupprecht@google.com>
285
286 * objdump.c (show_line): call bfd_demangle when using do_demangle.
287
9f1528a1
AB
2882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * configure: Regenerate.
291
3a5d12fb
FS
2922020-02-10 Fangrui Song <maskray@google.com>
293
294 * objcopy.c (parse_flags): Handle "exclude".
295 * doc/binutils.texi: Document the support.
296
678d457f
AM
2972020-02-10 Aaron Merey <amerey@redhat.com>
298
299 * binutils/testsuite/binutils-all/debuginfod.exp:
300 Replace set ::env with setenv.
46471187
AM
301 Start server before setting environment variable.
302 Specify tmpdir as the location of the server's
303 database.
304 Check additional server metrics at start-up.
678d457f 305
e8319fde
NC
3062020-02-07 Nick Clifton <nickc@redhat.com>
307
308 * README-how-to-make-a-release: Add note about updating the
309 GAS/NEWS URL in the next release.
310
9fc0b501
SB
3112020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
312
313 PR 25469
314 * readelf.c (get_machine_flags): Add support for Z80N machine
315 number.
316
e1104d08
NC
3172020-02-07 Nick Clifton <nickc@redhat.com>
318
319 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
320 of the truncated file name.
321
c2e6f744 3222020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
323
324 * objdump.c (print_jump_visualisation): New function.
325 (disassemble_bytes): Call new function.
326
02e0be69
AM
3272020-02-06 Alan Modra <amodra@gmail.com>
328
329 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
330 TCL procedure.
331 (supports_gnu_osabi): New procedure.
332 (is_generic): New, from ld-lib.exp.
333 (supports_gnu_unique): Use the above.
334
e8b79122
AM
3352020-02-04 Alan Modra <amodra@gmail.com>
336
337 * Makefile.am (CFILES): Add od-elf32_avr.c.
338 * Makefile.in: Regenerate.
339 * po/POTFILES.in: Regenerate.
340
27a45f42
AS
3412020-02-03 Andreas Schwab <schwab@linux-m68k.org>
342
343 * readelf.c (dump_relocations, dump_relocations)
344 (decode_arm_unwind_bytecode, process_dynamic_section)
345 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
346 error message.
347
0b398d69
ST
3482020-02-03 Sergei Trofimovich <siarheit@google.com>
349
350 * coffdump.c (program_name): Drop redundant definition.
351 * srconv.c (program_name): Likewise
352 * sysdump.c (program_name): Likewise
353
a8c4d40b
L
3542020-02-02 H.J. Lu <hongjiu.lu@intel.com>
355
356 PR gas/25380
357 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
358 same file with different section pointers.
359
cb6ad9bb
NC
3602020-02-01 Nick Clifton <nickc@redhat.com>
361
362 * README-how-to-make-a-release: Update with more details on the
363 release making process.
364
53943f32
NC
3652020-01-31 Nick Clifton <nickc@redhat.com>
366
367 * po/sv.po: Updated Swedish translation.
368
55be8fd0
NC
3692020-01-28 Nick Clifton <nickc@redhat.com>
370
371 * readelf.c (get_build_id): Simplify warning message about corrupt
372 notes encountered whilst scanning for the build-id.
373
82ef9cad
RM
3742020-01-27 Roland McGrath <mcgrathr@google.com>
375
376 * objcopy.c (compare_gnu_build_notes): Fix comparison results
377 for overlapping ranges so that (A == B) == (B == A) holds.
378
e3696f67
AM
3792020-01-27 Alan Modra <amodra@gmail.com>
380
381 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
382 case statement with switch statement.
383
2f796de6
NC
3842020-01-24 Nick Clifton <nickc@redhat.com>
385
386 * readelf.c (get_build_id): Fix warning messages about corrupt
387 notes.
388
24e648d4
NC
3892020-01-23 Nick Clifton <nickc@redhat.com>
390
391 * po/fr.po: Updated French translation.
392
c48acf6f
YC
3932020-01-22 Yuri Chornoivan <yurchor@mageia.org>
394
395 PR 25417
396 * readelf.c (get_alpha_symbol_other): Fix error message typo.
397
26916852
NC
3982020-01-20 Nick Clifton <nickc@redhat.com>
399
400 * po/pt.po: Updated Portuguese translation.
401 * po/uk.po: Updated Ukranian translation.
402
b248e9ce
NC
4032020-01-18 Nick Clifton <nickc@redhat.com>
404
405 * README-how-to-make-a-release: Update notes on how to cut a
406 branch for a release.
407
1b1bb2c6
NC
4082020-01-18 Nick Clifton <nickc@redhat.com>
409
410 * configure: Regenerate.
411 * po/binutils.pot: Regenerate.
412
ae774686
NC
4132020-01-18 Nick Clifton <nickc@redhat.com>
414
415 Binutils 2.34 branch created.
416
82a9ed20
TT
4172020-01-17 Thomas Troeger <tstroege@gmx.de>
418
419 * objdump.c (jump_info_visualize_address): Discard jumps that are
420 no longer needed.
421 (disassemble_bytes): Only compute the maximum level if jumps were
422 detected.
423
6a1939f5
NC
4242020-01-13 Nick Clifton <nickc@redhat.com>
425
c87c17c1 426 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
427 * testsuite/binutils-all/debuginfod.exp: New tests.
428
1d67fe3b
TT
4292020-01-13 Thomas Troeger <tstroege@gmx.de>
430
431 * objdump.c (visualize_jumps, color_output, extended_color_output)
432 (detected_jumps): New variables.
433 (usage): Add the new jump visualization options.
434 (option_values): Add new option value.
435 (long_options): Add the new option.
436 (jump_info_new, jump_info_free): New functions.
437 (jump_info_min_address, jump_info_max_address): Likewise.
438 (jump_info_end_address, jump_info_is_start_address): Likewise.
439 (jump_info_is_end_address, jump_info_size): Likewise.
440 (jump_info_unlink, jump_info_insert): Likewise.
441 (jump_info_add_front, jump_info_move_linked): Likewise.
442 (jump_info_intersect, jump_info_merge): Likewise.
443 (jump_info_sort, jump_info_visualize_address): Likewise.
444 (disassemble_jumps): New function - used to locate jumps.
445 (disassemble_bytes): Add ascii art generation.
446 (disassemble_section): Add scan to locate jumps.
447 (main): Parse the new visualization option.
448 * doc/binutils.texi: Document the new feature.
449 * NEWS: Mention the new feature.
450
a788aedd
AM
4512020-01-13 Alan Modra <amodra@gmail.com>
452
a4f2b7c5
AM
453 PR 25360
454 PR 25361
a788aedd
AM
455 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
456 fde_fc col_type and col_offset.
457 * readelf.c (apply_relocations): Move symsec check earlier.
458 (free_debug_section): Free reloc_info.
459 (process_notes_at): Free pnotes on error path.
460 (process_object): Free dump_sects here..
461 (process_archive): ..not here.
462
805f38bc
AM
4632020-01-13 Alan Modra <amodra@gmail.com>
464
465 PR 25362
466 * nm.c (display_rel_file): Free dyn_syms.
467
ffebb0bb
NC
4682020-01-09 Nick Clifton <nickc@redhat.com>
469
470 PR 25220
471 * objcopy.c (empty_name): New variable.
472 (need_sym_before): Prevent an attempt to free a static variable.
473 (filter_symbols): Avoid strcmp test by checking for pointer
474 equality.
475
ade4fd9b
NC
4762020-01-09 Nick Clifton <nickc@redhat.com>
477
478 * po/zh_TW.po: Updated Traditional Chinese translation.
479
4802020-01-09 Aaron Merey <amerey@redhat.com>
481
482 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
483 * Makefile.in: Regenerate.
484 * NEWS: Update.
485 * config.in: Regenerate.
486 * configure: Regenerate.
487 * configure.ac: Call AC_DEBUGINFOD.
488 * doc/Makefile.in: Regenerate.
489 * doc/binutils.texi: Add section on using binutils
490 with debuginfod.
491 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
492 Query debuginfod servers for the target debug file.
493 (load_separate_debug_info): Call
494 debuginfod_fetch_separate_debug_info if configured with
495 debuginfod.
496 (load_separate_debug_files): Add file argument to
497 load_separate_debug_info calls.
498 * dwarf.h (get_build_id): Add declaration.
499 * objdump.c (get_build_id): New function. Get build-id of file.
500 * readelf.c (get_build_id): Likewise.
501 * testsuite/binutils-all/debuginfod.exp: New tests.
502 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
503 section.
504
6655dba2
SB
5052020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
506
507 * readelf.c: Add support for new Z*) relocations and machine
508 types.
509
b14ce8bf
AM
5102020-01-01 Alan Modra <amodra@gmail.com>
511
512 Update year range in copyright notice of all files.
513
0b114740 514For older changes see ChangeLog-2019
3499769a 515\f
0b114740 516Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
517
518Copying and distribution of this file, with or without modification,
519are permitted in any medium without royalty provided the copyright
520notice and this notice are preserved.
521
522Local Variables:
523mode: change-log
524left-margin: 8
525fill-column: 74
526version-control: never
527End: