]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/ChangeLog
Avoid trigger an assertion failure in the STABS parser by replacing the abort with...
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
1 2020-03-23 Nick Clifton <nickc@redhat.com>
2
3 PR 25714
4 * wrstabs.c (stab_pop_type): Replace assertion with error return.
5 * write_stabs_in_sections_debugging_info: Likewise.
6 * stab_enum_type: Likewise.
7 * stab_modify_type: Likewise.
8 * stab_struct_field: Likewise.
9 * stab_end_struct_type: Likewise.
10 * stab_start_class_type: Likewise.
11 * stab_class_static_member: Likewise.
12 * stab_class_baseclass: Likewise.
13 * stab_class_start_method: Likewise.
14 * stab_class_method_var: Likewise.
15 * stab_class_end_method: Likewise.
16 * stab_end_class_type: Likewise.
17 * stab_typedef_type: Likewise.
18 * stab_start_function: Likewise.
19 * stab_end_block: Likewise.
20 * stab_lineno: Likewise.
21
22 2020-03-20 Nick Clifton <nickc@redhat.com>
23
24 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
25 (process_section_headers): Check the return value from
26 get_compression_header.
27 (dump_section_as_strings): Likewise.
28 (dump_section_as_bytes): Likewise.
29 (load_specific_debug_section): Likewise.
30
31 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
32
33 * ar.c (main): Update bfd_plugin_set_program_name call.
34 * nm.c (main): Likewise.
35
36 2020-03-19 Nick Clifton <nickc@redhat.com>
37
38 PR 25676
39 * testsuite/binutils-all/dw4.s: New test source file.
40 * testsuite/binutils-all/nm.exp: Run the new test.
41
42 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
43
44 * readelf.c (process_symbol_table): Use unsigned long for si.
45
46 2020-03-19 Alan Modra <amodra@gmail.com>
47
48 * elfcomm.c: Don't include bfd.h or bucomm.h.
49 (program_name): Declare.
50 (process_archive_index_and_symbols): Replace bfd_boolean with int,
51 and substitute FALSE and TRUE.
52 (setup_archive, setup_nested_archive): Likewise.
53 * elfcomm.h: Likewise.
54
55 2020-03-19 Alan Modra <amodra@gmail.com>
56
57 * readelf.c (process_archive): Always return via path freeing
58 memory. Formatting.
59
60 2020-03-19 Alan Modra <amodra@gmail.com>
61
62 * readelf.c (process_netbsd_elf_note): Validate descsz before
63 accessing descdata. Formatting.
64
65 2020-03-19 Alan Modra <amodra@gmail.com>
66
67 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
68 * elfcomm.h (setup_archive): Update prototype.
69
70 2020-03-16 Alan Modra <amodra@gmail.com>
71
72 * readelf.c (get_symbols): New function.
73 (process_relocs, ia64_process_unwind, hppa_process_unwind),
74 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
75
76 2020-03-16 Alan Modra <amodra@gmail.com>
77
78 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
79 Detect shift overflows and check that terminating byte is found.
80 Print an error on a bad uleb128.
81
82 2020-03-14 Alan Modra <amodra@gmail.com>
83
84 * readelf.c (process_file): Clean ba_cache.
85
86 2020-03-14 Alan Modra <amodra@gmail.com>
87
88 * elfcomm.h (setup_archive): Update prototype.
89 * elfcomm.c (setup_archive): Add file_size parameter and sanity
90 check longnames_size.
91 (setup_nested_archive): Get file size and pass to setup_archive.
92 * elfedit.c (process_archive): Likewise.
93 * readelf.c (process_archive): Pass filedata->file_size to
94 setup_archive.
95
96 2020-03-14 Alan Modra <amodra@gmail.com>
97
98 * readelf.c (dump_section_as_strings): Free memory on error exit.
99 (dump_section_as_bytes, process_notes_at): Likewise.
100 (get_build_id): Free enote.
101
102 2020-03-13 Kamil Rytarowski <n54@gmx.com>
103
104 * readelf.c (get_netbsd_elfcore_note_type): Add support for
105 NT_NETBSDCORE_LWPSTATUS notes.
106
107 2020-03-13 Alan Modra <amodra@gmail.com>
108
109 * elfcomm.c (get_archive_member_name): Always return malloc'd
110 string or NULL.
111 * elfedit.c (process_archive): Tidy memory on all return paths.
112 * readelf.c (process_archive): Likewise.
113 (process_symbol_table): Likewise.
114 (ba_cache): New, replacing ..
115 (get_symbol_for_build_attribute): ..static vars here. Free
116 strtab and symtab before loading new ones. Reject symtab without
117 valid strtab in loop, breaking out of loop on valid symtab.
118 (process_file): Free ba_cache symtab and strtab here, resetting
119 ba_cache.
120
121 2020-03-12 Alan Modra <amodra@gmail.com>
122
123 * readelf.c (process_section_headers): Don't just set
124 filedata->section_headers NULL, free it first. Similarly for
125 dynamic_symbols, dynamic_strings, dynamic_syminfo and
126 symtab_shndx_list. Zero associated counts too.
127 (process_object): Free symtab_shndx_list.
128 (process_file): Free various allocated filedata tables.
129
130 2020-03-11 Nick Clifton <nickc@redhat.com>
131
132 PR 25611
133 PR 25614
134 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
135 li_segment_size fields.
136 * dwarf.c (read_debug_line_header): Record the address size and
137 segment selector size values (if present) in the lineinfo
138 structure.
139 (display_formatted_table): Warn if the format count is empty but
140 the table itself is not empty.
141 Display the format count and entry count at the start of the table
142 dump.
143 (display_debug_lines_raw): Display the address size and segement
144 selector size fields, if present.
145 * testsuite/binutils-all/dw5.W: Update expected output.
146
147 2020-03-11 Alan Modra <amodra@gmail.com>
148
149 PR 25651
150 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
151 pad_to_set on second block of code dealing with padding.
152 Replace "c" with "num_sec" and don't recalculate number of
153 sections on second block. Size arrays using sizeof (element)
154 rather than sizeof (element type).
155
156 2020-03-10 Alan Modra <amodra@gmail.com>
157
158 * objdump.c (disassemble_section): Don't call qsort unless
159 sym count is at least two.
160 (disassemble_data): Don't call memcpy with NULL src.
161
162 2020-03-09 Alan Modra <amodra@gmail.com>
163
164 PR 25645
165 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
166 to get_data rather than multiplying.
167 (dump_ia64_vms_dynamic_relocs): Likewise.
168 (process_version_sections): Correct order of size and nmemb args
169 in get_data call.
170 (process_mips_specific): Likewise.
171
172 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
173
174 * readelf.c (get_dynamic_data): Replace "memory chekers" with
175 "memory checkers" in comments.
176
177 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
178
179 PR 25491
180 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
181 * doc/Makefile.in: Re-generate.
182
183 2020-03-06 Nick Clifton <nickc@redhat.com>
184
185 * objcopy.c (check_new_section_flags): New function. Reject the
186 SEC_COFF_SHARED flag if the target is not a COFF binary.
187 (copy_object): Call check_new_section_flags.
188 (setup_section): Likewise.
189 * doc/binutils.texi (objcopy): Add a note that the 'share' section
190 flag cannot be applied to ELF binaries.
191
192 2020-03-06 Alan Modra <amodra@gmail.com>
193
194 PR 25637
195 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
196
197 2020-03-05 Alan Modra <amodra@gmail.com>
198
199 PR 25629
200 * objcopy.c (filter_symbols): Don't segfault on NULL
201 prefix_symbols_string.
202
203 2020-03-04 Christian Eggers <ceggers@gmx.de>
204
205 * objcopy.c (copy_object): Convert from bytes to octets for
206 --gap-fill and --pad-to.
207
208 2020-03-03 Nick Clifton <nickc@redhat.com>
209
210 PR 25625
211 * prdbg.c (pr_tag_type): Remove call to abort.
212
213 2020-03-02 Aaron Merey <amerey@redhat.com>
214
215 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
216 selection.
217
218 2020-03-02 Nick Clifton <nickc@redhat.com>
219
220 PR 25543
221 * readelf.c (dump_section_as_strings): Display new-line characters
222 as \n and then insert a line break.
223 * testsuite/binutils-all/pr25543.s: New test.
224 * testsuite/binutils-all/pr25543.d: Test driver.
225 * testsuite/binutils-all/readelf.exp: Run the new test.
226
227 2020-02-27 Nick Clifton <nickc@redhat.com>
228
229 PR 25526
230 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
231 get_data is unable to load the string table.
232
233 2020-02-26 Alan Modra <amodra@gmail.com>
234
235 * elfedit.c: Indent labels correctly.
236 * readelf.c: Likewise.
237 * resres.c: Likewise.
238
239 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
240
241 PR binutils/25584
242 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
243 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
244
245 2020-02-24 Nick Clifton <nickc@redhat.com>
246
247 PR 25499
248 * doc/binutils.texi (objdump): Fix typo in description of
249 objdump's -g option.
250
251 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
252
253 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
254 is changed.
255
256 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
257
258 * objdump.c (show_line): call bfd_demangle when using do_demangle.
259
260 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
261
262 * configure: Regenerate.
263
264 2020-02-10 Fangrui Song <maskray@google.com>
265
266 * objcopy.c (parse_flags): Handle "exclude".
267 * doc/binutils.texi: Document the support.
268
269 2020-02-10 Aaron Merey <amerey@redhat.com>
270
271 * binutils/testsuite/binutils-all/debuginfod.exp:
272 Replace set ::env with setenv.
273 Start server before setting environment variable.
274 Specify tmpdir as the location of the server's
275 database.
276 Check additional server metrics at start-up.
277
278 2020-02-07 Nick Clifton <nickc@redhat.com>
279
280 * README-how-to-make-a-release: Add note about updating the
281 GAS/NEWS URL in the next release.
282
283 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
284
285 PR 25469
286 * readelf.c (get_machine_flags): Add support for Z80N machine
287 number.
288
289 2020-02-07 Nick Clifton <nickc@redhat.com>
290
291 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
292 of the truncated file name.
293
294 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
295
296 * objdump.c (print_jump_visualisation): New function.
297 (disassemble_bytes): Call new function.
298
299 2020-02-06 Alan Modra <amodra@gmail.com>
300
301 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
302 TCL procedure.
303 (supports_gnu_osabi): New procedure.
304 (is_generic): New, from ld-lib.exp.
305 (supports_gnu_unique): Use the above.
306
307 2020-02-04 Alan Modra <amodra@gmail.com>
308
309 * Makefile.am (CFILES): Add od-elf32_avr.c.
310 * Makefile.in: Regenerate.
311 * po/POTFILES.in: Regenerate.
312
313 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
314
315 * readelf.c (dump_relocations, dump_relocations)
316 (decode_arm_unwind_bytecode, process_dynamic_section)
317 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
318 error message.
319
320 2020-02-03 Sergei Trofimovich <siarheit@google.com>
321
322 * coffdump.c (program_name): Drop redundant definition.
323 * srconv.c (program_name): Likewise
324 * sysdump.c (program_name): Likewise
325
326 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
327
328 PR gas/25380
329 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
330 same file with different section pointers.
331
332 2020-02-01 Nick Clifton <nickc@redhat.com>
333
334 * README-how-to-make-a-release: Update with more details on the
335 release making process.
336
337 2020-01-31 Nick Clifton <nickc@redhat.com>
338
339 * po/sv.po: Updated Swedish translation.
340
341 2020-01-28 Nick Clifton <nickc@redhat.com>
342
343 * readelf.c (get_build_id): Simplify warning message about corrupt
344 notes encountered whilst scanning for the build-id.
345
346 2020-01-27 Roland McGrath <mcgrathr@google.com>
347
348 * objcopy.c (compare_gnu_build_notes): Fix comparison results
349 for overlapping ranges so that (A == B) == (B == A) holds.
350
351 2020-01-27 Alan Modra <amodra@gmail.com>
352
353 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
354 case statement with switch statement.
355
356 2020-01-24 Nick Clifton <nickc@redhat.com>
357
358 * readelf.c (get_build_id): Fix warning messages about corrupt
359 notes.
360
361 2020-01-23 Nick Clifton <nickc@redhat.com>
362
363 * po/fr.po: Updated French translation.
364
365 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
366
367 PR 25417
368 * readelf.c (get_alpha_symbol_other): Fix error message typo.
369
370 2020-01-20 Nick Clifton <nickc@redhat.com>
371
372 * po/pt.po: Updated Portuguese translation.
373 * po/uk.po: Updated Ukranian translation.
374
375 2020-01-18 Nick Clifton <nickc@redhat.com>
376
377 * README-how-to-make-a-release: Update notes on how to cut a
378 branch for a release.
379
380 2020-01-18 Nick Clifton <nickc@redhat.com>
381
382 * configure: Regenerate.
383 * po/binutils.pot: Regenerate.
384
385 2020-01-18 Nick Clifton <nickc@redhat.com>
386
387 Binutils 2.34 branch created.
388
389 2020-01-17 Thomas Troeger <tstroege@gmx.de>
390
391 * objdump.c (jump_info_visualize_address): Discard jumps that are
392 no longer needed.
393 (disassemble_bytes): Only compute the maximum level if jumps were
394 detected.
395
396 2020-01-13 Nick Clifton <nickc@redhat.com>
397
398 * objdump.c (disassemble_bytes): Remove C99-ism.
399 * testsuite/binutils-all/debuginfod.exp: New tests.
400
401 2020-01-13 Thomas Troeger <tstroege@gmx.de>
402
403 * objdump.c (visualize_jumps, color_output, extended_color_output)
404 (detected_jumps): New variables.
405 (usage): Add the new jump visualization options.
406 (option_values): Add new option value.
407 (long_options): Add the new option.
408 (jump_info_new, jump_info_free): New functions.
409 (jump_info_min_address, jump_info_max_address): Likewise.
410 (jump_info_end_address, jump_info_is_start_address): Likewise.
411 (jump_info_is_end_address, jump_info_size): Likewise.
412 (jump_info_unlink, jump_info_insert): Likewise.
413 (jump_info_add_front, jump_info_move_linked): Likewise.
414 (jump_info_intersect, jump_info_merge): Likewise.
415 (jump_info_sort, jump_info_visualize_address): Likewise.
416 (disassemble_jumps): New function - used to locate jumps.
417 (disassemble_bytes): Add ascii art generation.
418 (disassemble_section): Add scan to locate jumps.
419 (main): Parse the new visualization option.
420 * doc/binutils.texi: Document the new feature.
421 * NEWS: Mention the new feature.
422
423 2020-01-13 Alan Modra <amodra@gmail.com>
424
425 PR 25360
426 PR 25361
427 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
428 fde_fc col_type and col_offset.
429 * readelf.c (apply_relocations): Move symsec check earlier.
430 (free_debug_section): Free reloc_info.
431 (process_notes_at): Free pnotes on error path.
432 (process_object): Free dump_sects here..
433 (process_archive): ..not here.
434
435 2020-01-13 Alan Modra <amodra@gmail.com>
436
437 PR 25362
438 * nm.c (display_rel_file): Free dyn_syms.
439
440 2020-01-09 Nick Clifton <nickc@redhat.com>
441
442 PR 25220
443 * objcopy.c (empty_name): New variable.
444 (need_sym_before): Prevent an attempt to free a static variable.
445 (filter_symbols): Avoid strcmp test by checking for pointer
446 equality.
447
448 2020-01-09 Nick Clifton <nickc@redhat.com>
449
450 * po/zh_TW.po: Updated Traditional Chinese translation.
451
452 2020-01-09 Aaron Merey <amerey@redhat.com>
453
454 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
455 * Makefile.in: Regenerate.
456 * NEWS: Update.
457 * config.in: Regenerate.
458 * configure: Regenerate.
459 * configure.ac: Call AC_DEBUGINFOD.
460 * doc/Makefile.in: Regenerate.
461 * doc/binutils.texi: Add section on using binutils
462 with debuginfod.
463 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
464 Query debuginfod servers for the target debug file.
465 (load_separate_debug_info): Call
466 debuginfod_fetch_separate_debug_info if configured with
467 debuginfod.
468 (load_separate_debug_files): Add file argument to
469 load_separate_debug_info calls.
470 * dwarf.h (get_build_id): Add declaration.
471 * objdump.c (get_build_id): New function. Get build-id of file.
472 * readelf.c (get_build_id): Likewise.
473 * testsuite/binutils-all/debuginfod.exp: New tests.
474 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
475 section.
476
477 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
478
479 * readelf.c: Add support for new Z*) relocations and machine
480 types.
481
482 2020-01-01 Alan Modra <amodra@gmail.com>
483
484 Update year range in copyright notice of all files.
485
486 For older changes see ChangeLog-2019
487 \f
488 Copyright (C) 2020 Free Software Foundation, Inc.
489
490 Copying and distribution of this file, with or without modification,
491 are permitted in any medium without royalty provided the copyright
492 notice and this notice are preserved.
493
494 Local Variables:
495 mode: change-log
496 left-margin: 8
497 fill-column: 74
498 version-control: never
499 End: