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