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