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