]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
[PowerPC] Fix debug register issues in ppc-linux-nat
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
0a6a8b59
AM
12020-03-28 Alan Modra <amodra@gmail.com>
2
3 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
4 clear_xfail hppa*-*-*elf*. Revert mips xfails.
5
6a81c59b
AM
62020-03-28 Alan Modra <amodra@gmail.com>
7
8 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
9 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
10 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
11 test. Pass "-p" to objcopy for the executable test.
12
1fafefd5
JL
132020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14
15 PR binutils/25662
16 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
17 specify whether an object file or executable should be built and tested.
18 Change test names to report whether an object file or executable is
19 being tested.
20 * testsuite/binutils-all/pr25662.ld: New test.
21 * testsuite/binutils-all/pr25662.s: New test.
22
80e2a3b6
AM
232020-03-27 Alan Modra <amodra@gmail.com>
24
25 * readelf.c (process_archive): Don't double free qualified_name.
26 Don't break out of loop with "negative" archive_file_size, just
27 set file offset to max.
28
4c836627
AM
292020-03-25 Alan Modra <amodra@gmail.com>
30
31 * readelf.c (process_archive): Prevent endless loop.
32
1081065c
L
332020-03-24 H.J. Lu <hongjiu.lu@intel.com>
34
35 PR binutils/25708
36 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
37 with bfd_get_symbol_version_string.
38 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
39 * objdump.c (objdump_print_symname): Likewise.
40
7e6e972f
L
412020-03-24 H.J. Lu <hongjiu.lu@intel.com>
42
43 PR binutils/25708
44 * nm.c (SYM_NAME): Removed.
45 (print_symname): Add a pointer to struct extended_symbol_info
46 argument. Call _bfd_elf_get_symbol_version_name to get symbol
47 version.
48 (print_symdef_entry): Pass NULL to print_symname.
49 (print_symbol_info_bsd): Update call to print_symname.
50 (print_symbol_info_sysv): Likewise.
51 (print_symbol_info_posix): Likewise.
52
5a814d6d
AM
532020-03-24 Alan Modra <amodra@gmail.com>
54
55 * readelf.c (process_mips_specific): Free iconf on error path.
56
0636b245
NC
572020-03-23 Nick Clifton <nickc@redhat.com>
58
59 PR 25714
60 * wrstabs.c (stab_pop_type): Replace assertion with error return.
61 * write_stabs_in_sections_debugging_info: Likewise.
62 * stab_enum_type: Likewise.
63 * stab_modify_type: Likewise.
64 * stab_struct_field: Likewise.
65 * stab_end_struct_type: Likewise.
66 * stab_start_class_type: Likewise.
67 * stab_class_static_member: Likewise.
68 * stab_class_baseclass: Likewise.
69 * stab_class_start_method: Likewise.
70 * stab_class_method_var: Likewise.
71 * stab_class_end_method: Likewise.
72 * stab_end_class_type: Likewise.
73 * stab_typedef_type: Likewise.
74 * stab_start_function: Likewise.
75 * stab_end_block: Likewise.
76 * stab_lineno: Likewise.
77
5844b465
NC
782020-03-20 Nick Clifton <nickc@redhat.com>
79
80 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
81 (process_section_headers): Check the return value from
82 get_compression_header.
83 (dump_section_as_strings): Likewise.
84 (dump_section_as_bytes): Likewise.
85 (load_specific_debug_section): Likewise.
86
3d98c460
L
872020-03-20 H.J. Lu <hongjiu.lu@intel.com>
88
89 * ar.c (main): Update bfd_plugin_set_program_name call.
90 * nm.c (main): Likewise.
91
f3a08f77
NC
922020-03-19 Nick Clifton <nickc@redhat.com>
93
94 PR 25676
95 * testsuite/binutils-all/dw4.s: New test source file.
96 * testsuite/binutils-all/nm.exp: Run the new test.
97
ef3df110
L
982020-03-19 H.J. Lu <hongjiu.lu@intel.com>
99
100 * readelf.c (process_symbol_table): Use unsigned long for si.
101
81a65eb3
AM
1022020-03-19 Alan Modra <amodra@gmail.com>
103
104 * elfcomm.c: Don't include bfd.h or bucomm.h.
105 (program_name): Declare.
106 (process_archive_index_and_symbols): Replace bfd_boolean with int,
107 and substitute FALSE and TRUE.
108 (setup_archive, setup_nested_archive): Likewise.
109 * elfcomm.h: Likewise.
110
1cb7d8b1
AM
1112020-03-19 Alan Modra <amodra@gmail.com>
112
113 * readelf.c (process_archive): Always return via path freeing
114 memory. Formatting.
115
b966f55f
AM
1162020-03-19 Alan Modra <amodra@gmail.com>
117
118 * readelf.c (process_netbsd_elf_note): Validate descsz before
119 accessing descdata. Formatting.
120
645ba681
AM
1212020-03-19 Alan Modra <amodra@gmail.com>
122
123 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
124 * elfcomm.h (setup_archive): Update prototype.
125
28d13567
AM
1262020-03-16 Alan Modra <amodra@gmail.com>
127
128 * readelf.c (get_symbols): New function.
129 (process_relocs, ia64_process_unwind, hppa_process_unwind),
130 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
131
60e63c3e
AM
1322020-03-16 Alan Modra <amodra@gmail.com>
133
134 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
135 Detect shift overflows and check that terminating byte is found.
136 Print an error on a bad uleb128.
137
1bd6175a
AM
1382020-03-14 Alan Modra <amodra@gmail.com>
139
140 * readelf.c (process_file): Clean ba_cache.
141
780f96ae
AM
1422020-03-14 Alan Modra <amodra@gmail.com>
143
144 * elfcomm.h (setup_archive): Update prototype.
145 * elfcomm.c (setup_archive): Add file_size parameter and sanity
146 check longnames_size.
147 (setup_nested_archive): Get file size and pass to setup_archive.
148 * elfedit.c (process_archive): Likewise.
149 * readelf.c (process_archive): Pass filedata->file_size to
150 setup_archive.
151
f761cb13
AM
1522020-03-14 Alan Modra <amodra@gmail.com>
153
154 * readelf.c (dump_section_as_strings): Free memory on error exit.
155 (dump_section_as_bytes, process_notes_at): Likewise.
156 (get_build_id): Free enote.
157
06d949ec
KR
1582020-03-13 Kamil Rytarowski <n54@gmx.com>
159
160 * readelf.c (get_netbsd_elfcore_note_type): Add support for
161 NT_NETBSDCORE_LWPSTATUS notes.
162
fd486f32
AM
1632020-03-13 Alan Modra <amodra@gmail.com>
164
165 * elfcomm.c (get_archive_member_name): Always return malloc'd
166 string or NULL.
167 * elfedit.c (process_archive): Tidy memory on all return paths.
168 * readelf.c (process_archive): Likewise.
169 (process_symbol_table): Likewise.
170 (ba_cache): New, replacing ..
171 (get_symbol_for_build_attribute): ..static vars here. Free
172 strtab and symtab before loading new ones. Reject symtab without
173 valid strtab in loop, breaking out of loop on valid symtab.
174 (process_file): Free ba_cache symtab and strtab here, resetting
175 ba_cache.
176
8fb879cd
AM
1772020-03-12 Alan Modra <amodra@gmail.com>
178
179 * readelf.c (process_section_headers): Don't just set
180 filedata->section_headers NULL, free it first. Similarly for
181 dynamic_symbols, dynamic_strings, dynamic_syminfo and
182 symtab_shndx_list. Zero associated counts too.
183 (process_object): Free symtab_shndx_list.
184 (process_file): Free various allocated filedata tables.
185
5496f3c6
NC
1862020-03-11 Nick Clifton <nickc@redhat.com>
187
188 PR 25611
189 PR 25614
190 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
191 li_segment_size fields.
192 * dwarf.c (read_debug_line_header): Record the address size and
193 segment selector size values (if present) in the lineinfo
194 structure.
195 (display_formatted_table): Warn if the format count is empty but
196 the table itself is not empty.
197 Display the format count and entry count at the start of the table
198 dump.
199 (display_debug_lines_raw): Display the address size and segement
200 selector size fields, if present.
201 * testsuite/binutils-all/dw5.W: Update expected output.
202
9cc89dc0
AM
2032020-03-11 Alan Modra <amodra@gmail.com>
204
205 PR 25651
206 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
207 pad_to_set on second block of code dealing with padding.
208 Replace "c" with "num_sec" and don't recalculate number of
209 sections on second block. Size arrays using sizeof (element)
210 rather than sizeof (element type).
211
41da0822
AM
2122020-03-10 Alan Modra <amodra@gmail.com>
213
214 * objdump.c (disassemble_section): Don't call qsort unless
215 sym count is at least two.
216 (disassemble_data): Don't call memcpy with NULL src.
217
95099889
AM
2182020-03-09 Alan Modra <amodra@gmail.com>
219
220 PR 25645
221 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
222 to get_data rather than multiplying.
223 (dump_ia64_vms_dynamic_relocs): Likewise.
224 (process_version_sections): Correct order of size and nmemb args
225 in get_data call.
226 (process_mips_specific): Likewise.
227
a15de1f5
L
2282020-03-08 H.J. Lu <hongjiu.lu@intel.com>
229
230 * readelf.c (get_dynamic_data): Replace "memory chekers" with
231 "memory checkers" in comments.
232
9979ab66
SM
2332020-03-06 Simon Marchi <simon.marchi@efficios.com>
234
235 PR 25491
236 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
237 * doc/Makefile.in: Re-generate.
238
a0dcf297
NC
2392020-03-06 Nick Clifton <nickc@redhat.com>
240
241 * objcopy.c (check_new_section_flags): New function. Reject the
242 SEC_COFF_SHARED flag if the target is not a COFF binary.
243 (copy_object): Call check_new_section_flags.
244 (setup_section): Likewise.
245 * doc/binutils.texi (objcopy): Add a note that the 'share' section
246 flag cannot be applied to ELF binaries.
247
a9b90127
AM
2482020-03-06 Alan Modra <amodra@gmail.com>
249
250 PR 25637
251 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
252
d1faf7ca
AM
2532020-03-05 Alan Modra <amodra@gmail.com>
254
255 PR 25629
256 * objcopy.c (filter_symbols): Don't segfault on NULL
257 prefix_symbols_string.
258
eef64366
CE
2592020-03-04 Christian Eggers <ceggers@gmx.de>
260
261 * objcopy.c (copy_object): Convert from bytes to octets for
262 --gap-fill and --pad-to.
263
5be2b2f5
NC
2642020-03-03 Nick Clifton <nickc@redhat.com>
265
266 PR 25625
267 * prdbg.c (pr_tag_type): Remove call to abort.
268
b312fea1
AM
2692020-03-02 Aaron Merey <amerey@redhat.com>
270
271 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
272 selection.
273
ba3265d0
NC
2742020-03-02 Nick Clifton <nickc@redhat.com>
275
276 PR 25543
277 * readelf.c (dump_section_as_strings): Display new-line characters
278 as \n and then insert a line break.
279 * testsuite/binutils-all/pr25543.s: New test.
280 * testsuite/binutils-all/pr25543.d: Test driver.
281 * testsuite/binutils-all/readelf.exp: Run the new test.
282
736990c4
NC
2832020-02-27 Nick Clifton <nickc@redhat.com>
284
285 PR 25526
286 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
287 get_data is unable to load the string table.
288
dc1e8a47
AM
2892020-02-26 Alan Modra <amodra@gmail.com>
290
291 * elfedit.c: Indent labels correctly.
292 * readelf.c: Likewise.
293 * resres.c: Likewise.
294
ecda9016
L
2952020-02-25 H.J. Lu <hongjiu.lu@intel.com>
296
297 PR binutils/25584
298 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
299 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
300
83d4d556
NC
3012020-02-24 Nick Clifton <nickc@redhat.com>
302
303 PR 25499
304 * doc/binutils.texi (objdump): Fix typo in description of
305 objdump's -g option.
306
bd0cf5a6
NC
3072020-02-20 Nelson Chu <nelson.chu@sifive.com>
308
309 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
310 is changed.
311
741cb839
EC
3122020-02-19 Jordan Rupprecht <rupprecht@google.com>
313
314 * objdump.c (show_line): call bfd_demangle when using do_demangle.
315
9f1528a1
AB
3162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * configure: Regenerate.
319
3a5d12fb
FS
3202020-02-10 Fangrui Song <maskray@google.com>
321
322 * objcopy.c (parse_flags): Handle "exclude".
323 * doc/binutils.texi: Document the support.
324
678d457f
AM
3252020-02-10 Aaron Merey <amerey@redhat.com>
326
327 * binutils/testsuite/binutils-all/debuginfod.exp:
328 Replace set ::env with setenv.
46471187
AM
329 Start server before setting environment variable.
330 Specify tmpdir as the location of the server's
331 database.
332 Check additional server metrics at start-up.
678d457f 333
e8319fde
NC
3342020-02-07 Nick Clifton <nickc@redhat.com>
335
336 * README-how-to-make-a-release: Add note about updating the
337 GAS/NEWS URL in the next release.
338
9fc0b501
SB
3392020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
340
341 PR 25469
342 * readelf.c (get_machine_flags): Add support for Z80N machine
343 number.
344
e1104d08
NC
3452020-02-07 Nick Clifton <nickc@redhat.com>
346
347 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
348 of the truncated file name.
349
c2e6f744 3502020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
351
352 * objdump.c (print_jump_visualisation): New function.
353 (disassemble_bytes): Call new function.
354
02e0be69
AM
3552020-02-06 Alan Modra <amodra@gmail.com>
356
357 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
358 TCL procedure.
359 (supports_gnu_osabi): New procedure.
360 (is_generic): New, from ld-lib.exp.
361 (supports_gnu_unique): Use the above.
362
e8b79122
AM
3632020-02-04 Alan Modra <amodra@gmail.com>
364
365 * Makefile.am (CFILES): Add od-elf32_avr.c.
366 * Makefile.in: Regenerate.
367 * po/POTFILES.in: Regenerate.
368
27a45f42
AS
3692020-02-03 Andreas Schwab <schwab@linux-m68k.org>
370
371 * readelf.c (dump_relocations, dump_relocations)
372 (decode_arm_unwind_bytecode, process_dynamic_section)
373 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
374 error message.
375
0b398d69
ST
3762020-02-03 Sergei Trofimovich <siarheit@google.com>
377
378 * coffdump.c (program_name): Drop redundant definition.
379 * srconv.c (program_name): Likewise
380 * sysdump.c (program_name): Likewise
381
a8c4d40b
L
3822020-02-02 H.J. Lu <hongjiu.lu@intel.com>
383
384 PR gas/25380
385 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
386 same file with different section pointers.
387
cb6ad9bb
NC
3882020-02-01 Nick Clifton <nickc@redhat.com>
389
390 * README-how-to-make-a-release: Update with more details on the
391 release making process.
392
53943f32
NC
3932020-01-31 Nick Clifton <nickc@redhat.com>
394
395 * po/sv.po: Updated Swedish translation.
396
55be8fd0
NC
3972020-01-28 Nick Clifton <nickc@redhat.com>
398
399 * readelf.c (get_build_id): Simplify warning message about corrupt
400 notes encountered whilst scanning for the build-id.
401
82ef9cad
RM
4022020-01-27 Roland McGrath <mcgrathr@google.com>
403
404 * objcopy.c (compare_gnu_build_notes): Fix comparison results
405 for overlapping ranges so that (A == B) == (B == A) holds.
406
e3696f67
AM
4072020-01-27 Alan Modra <amodra@gmail.com>
408
409 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
410 case statement with switch statement.
411
2f796de6
NC
4122020-01-24 Nick Clifton <nickc@redhat.com>
413
414 * readelf.c (get_build_id): Fix warning messages about corrupt
415 notes.
416
24e648d4
NC
4172020-01-23 Nick Clifton <nickc@redhat.com>
418
419 * po/fr.po: Updated French translation.
420
c48acf6f
YC
4212020-01-22 Yuri Chornoivan <yurchor@mageia.org>
422
423 PR 25417
424 * readelf.c (get_alpha_symbol_other): Fix error message typo.
425
26916852
NC
4262020-01-20 Nick Clifton <nickc@redhat.com>
427
428 * po/pt.po: Updated Portuguese translation.
429 * po/uk.po: Updated Ukranian translation.
430
b248e9ce
NC
4312020-01-18 Nick Clifton <nickc@redhat.com>
432
433 * README-how-to-make-a-release: Update notes on how to cut a
434 branch for a release.
435
1b1bb2c6
NC
4362020-01-18 Nick Clifton <nickc@redhat.com>
437
438 * configure: Regenerate.
439 * po/binutils.pot: Regenerate.
440
ae774686
NC
4412020-01-18 Nick Clifton <nickc@redhat.com>
442
443 Binutils 2.34 branch created.
444
82a9ed20
TT
4452020-01-17 Thomas Troeger <tstroege@gmx.de>
446
447 * objdump.c (jump_info_visualize_address): Discard jumps that are
448 no longer needed.
449 (disassemble_bytes): Only compute the maximum level if jumps were
450 detected.
451
6a1939f5
NC
4522020-01-13 Nick Clifton <nickc@redhat.com>
453
c87c17c1 454 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
455 * testsuite/binutils-all/debuginfod.exp: New tests.
456
1d67fe3b
TT
4572020-01-13 Thomas Troeger <tstroege@gmx.de>
458
459 * objdump.c (visualize_jumps, color_output, extended_color_output)
460 (detected_jumps): New variables.
461 (usage): Add the new jump visualization options.
462 (option_values): Add new option value.
463 (long_options): Add the new option.
464 (jump_info_new, jump_info_free): New functions.
465 (jump_info_min_address, jump_info_max_address): Likewise.
466 (jump_info_end_address, jump_info_is_start_address): Likewise.
467 (jump_info_is_end_address, jump_info_size): Likewise.
468 (jump_info_unlink, jump_info_insert): Likewise.
469 (jump_info_add_front, jump_info_move_linked): Likewise.
470 (jump_info_intersect, jump_info_merge): Likewise.
471 (jump_info_sort, jump_info_visualize_address): Likewise.
472 (disassemble_jumps): New function - used to locate jumps.
473 (disassemble_bytes): Add ascii art generation.
474 (disassemble_section): Add scan to locate jumps.
475 (main): Parse the new visualization option.
476 * doc/binutils.texi: Document the new feature.
477 * NEWS: Mention the new feature.
478
a788aedd
AM
4792020-01-13 Alan Modra <amodra@gmail.com>
480
a4f2b7c5
AM
481 PR 25360
482 PR 25361
a788aedd
AM
483 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
484 fde_fc col_type and col_offset.
485 * readelf.c (apply_relocations): Move symsec check earlier.
486 (free_debug_section): Free reloc_info.
487 (process_notes_at): Free pnotes on error path.
488 (process_object): Free dump_sects here..
489 (process_archive): ..not here.
490
805f38bc
AM
4912020-01-13 Alan Modra <amodra@gmail.com>
492
493 PR 25362
494 * nm.c (display_rel_file): Free dyn_syms.
495
ffebb0bb
NC
4962020-01-09 Nick Clifton <nickc@redhat.com>
497
498 PR 25220
499 * objcopy.c (empty_name): New variable.
500 (need_sym_before): Prevent an attempt to free a static variable.
501 (filter_symbols): Avoid strcmp test by checking for pointer
502 equality.
503
ade4fd9b
NC
5042020-01-09 Nick Clifton <nickc@redhat.com>
505
506 * po/zh_TW.po: Updated Traditional Chinese translation.
507
5082020-01-09 Aaron Merey <amerey@redhat.com>
509
510 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
511 * Makefile.in: Regenerate.
512 * NEWS: Update.
513 * config.in: Regenerate.
514 * configure: Regenerate.
515 * configure.ac: Call AC_DEBUGINFOD.
516 * doc/Makefile.in: Regenerate.
517 * doc/binutils.texi: Add section on using binutils
518 with debuginfod.
519 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
520 Query debuginfod servers for the target debug file.
521 (load_separate_debug_info): Call
522 debuginfod_fetch_separate_debug_info if configured with
523 debuginfod.
524 (load_separate_debug_files): Add file argument to
525 load_separate_debug_info calls.
526 * dwarf.h (get_build_id): Add declaration.
527 * objdump.c (get_build_id): New function. Get build-id of file.
528 * readelf.c (get_build_id): Likewise.
529 * testsuite/binutils-all/debuginfod.exp: New tests.
530 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
531 section.
532
6655dba2
SB
5332020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
534
535 * readelf.c: Add support for new Z*) relocations and machine
536 types.
537
b14ce8bf
AM
5382020-01-01 Alan Modra <amodra@gmail.com>
539
540 Update year range in copyright notice of all files.
541
0b114740 542For older changes see ChangeLog-2019
3499769a 543\f
0b114740 544Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
545
546Copying and distribution of this file, with or without modification,
547are permitted in any medium without royalty provided the copyright
548notice and this notice are preserved.
549
550Local Variables:
551mode: change-log
552left-margin: 8
553fill-column: 74
554version-control: never
555End: