]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
PR26069, strip/objcopy memory leaks
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
0bee4d1c
AM
12020-06-02 Alan Modra <amodra@gmail.com>
2
3 * testsuite/binutils-all/ar.exp (obj): Set up object file name
4 extension. Use throughout. Don't completely exclude non-ELF
5 alpha targets. Run long_filenames test for tic30. Exclude thin
6 archive tests for aix, ecoff and vms.
7 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
8 extension. Use throughout. Don't exclude non-ELF alpha targets
9 from "bintest.a".
10
ab7ad287
MF
112020-05-28 Max Filippov <jcmvbkbc@gmail.com>
12
13 * MAINTAINERS (Xtensa): Add myself as maintainer.
14
3f3c3608
AM
152020-05-23 Alan Modra <amodra@gmail.com>
16
17 * testsuite/binutils-all/ar.exp (many_files): New test.
18
9db70fc3
AM
192020-05-21 Alan Modra <amodra@gmail.com>
20
21 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
22 * dlltool.c: Likewise.
23 * elfcomm.c: Likewise.
24 * rddbg.c: Likewise.
25 * readelf.c: Likewise.
26 * stabs.c: Likewise.
27 * windmc.c: Likewise.
28 * windres.c: Likewise.
29 * wrstabs.c: Likewise.
30
c31ab5a0
AM
312020-05-21 Alan Modra <amodra@gmail.com>
32
33 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
34 access.
35
8f595e9b
NC
362020-05-20 Nelson Chu <nelson.chu@sifive.com>
37
38 * dwarf.c: Updated since DECLARE_CSR is changed.
39
8ac10c5b
L
402020-05-19 H.J. Lu <hjl.tools@gmail.com>
41
42 PR binutils/25809
43 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
44 segment doesn't match the .dynamic section and checks are
45 enabled.
46 (struct filedata): Add dynamic_symtab_section and
47 dynamic_strtab_section fields.
48 (process_section_headers): Set dynamic_symtab_section to the
49 .dynsym section. Set dynamic_strtab_section to the .dynstr
50 section.
51 (process_dynamic_section): Warn if the .dynsym section doesn't
52 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
53 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
54
c177f377
AM
552020-05-19 Alan Modra <amodra@gmail.com>
56
57 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
58 (replace_members): Use bfd_get_filename rather than accessing
59 bfd->filename directly.
60 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
61 * binemul.c (do_ar_emul_append): Likewise.
62 * coffgrok.c (coff_grok): Likewise.
63
83d27139
SH
642020-05-18 Stafford Horne <shorne@gmail.com>
65
66 * MAINTAINERS (OR1K): Add myself as maintainer.
67
d11a9fab
AB
682020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
69
70 * doc/binutils.texi: Mention 'entry address' in the set-start and
71 adjust-start options descriptions.
72
546cb2d8
NC
732020-05-05 Nick Clifton <nickc@redhat.com>
74
75 * dwarf.c (do_checks): New global variable.
76 (display_formatted_table): Warn about an unexpected number of
77 columns in the table, if checks are enabled. Do not complain
78 about the lack of data following the number of entries in the
79 table if the table is empty.
80 (display_debug_lines_decoded): Only warn about an unexpected
81 number of columns in a table if checks are enabled.
82 * dwarf.h (do_checks): Add a prototype.
83 * elfcomm.c (error): Remove weak attribute.
84 (warn): Likewise.
85 * readelf.c (do_checks): Delete.
86 (warn): Delete.
87 (process_section_headers): Only warn about empty sections if
88 checks are enabled.
89
e052e2ba
FS
902020-05-04 Fangrui Song <maskray@google.com>
91
92 * objcopy.c (copy_object): Allow empty section.
93 * testsuite/binutils-all/update-section.exp: Add test.
94
070b775f
NC
952020-05-04 Nick Clifton <nickc@redhat.com>
96
97 PR 25917
98 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
99 supicious number of entries for DWARF-5 format directory and file
100 name tables. Do not display file name table header if the table
101 is empty. Do not allocate space for empty tables.
102
9c7b8e9b
AM
1032020-05-04 Alan Modra <amodra@gmail.com>
104
105 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
106 section. Don't assume endian of host matches nds32 target. Free
107 buffer.
108
60832332
AM
1092020-05-01 Alan Modra <amodra@gmail.com>
110 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
111
112 * objdump.c (disassemble_bytes): Don't scan for zeros when
113 disassembling zeros. Translate "resuming at file offset" message.
114 Formatting. Replace some signed variables with unsigned.
115
09c1e68a
AC
1162020-04-30 Alex Coplan <alex.coplan@arm.com>
117
118 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
119 disassembly.
120 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
121
8a8a1171
NC
1222020-04-30 Nick Clifton <nickc@redhat.com>
123
124 * testsuite/lib/binutils-common.exp (check_pie_support): New
125 proc.
126
cb4c35cf
AB
1272020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
130 range_entries for the same offset.
131
1b513401
NC
1322020-04-29 Nick Clifton <nickc@redhat.com>
133
134 * readelf.c (warn): New function - like elfcomm.c version but only
135 produces output if warnings are enabled.
136 (struct options): Add --lint and --enable-checks.
137 (usage): Add entry for --lint.
138 (parse_args): Handle -L. If checks are enabled but no dumps have
139 been selected then enable all dumps.
140 (process_section_headers): Replace long if-then-else sequence with
141 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
142 SHT_PROGBITS sections.
143 (process_file): Do not complain if the file is an archive and lint
144 mode has been enabled.
145 * elfcomm.c (error): Make the function weak.
146 (warn): Likewise.
147 * NEWS: Mention the new feature.
148 * doc/binutils.texi: Document the new feature.
149 * dwarf.h (report_leb_status): Add file name and line number
150 parameters. Include them in the diagnostic output.
151 (READ_ULEB): Pass file and line number to report_leb_status.
152 (READ_SLEB): Likewise.
153 * dwarf.c (read_and_print_leb128): Pass file and line number to
154 report_leb_status.
155 * testsuite/binutils-all/readelf.exp: Add test of new feature.
156 * testsuite/binutils-all/zero-sec.s: New test source file.
157 * testsuite/binutils-all/zero-sec.r: Expected output from new
158 test.
159
c2e71e57
NC
1602020-04-29 Nick Clifton <nickc@redhat.com>
161
162 * po/sr.po: Updated Serbian translation.
163
90837ea7
AM
1642020-04-26 Alan Modra <amodra@gmail.com>
165
166 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
167 read before dereferencing, and gracefully return. Remove
168 gnu_hash_error variable. Free gnu hash arrays if number of
169 syms found is zero.
170
2482f306
AM
1712020-04-24 Alan Modra <amodra@gmail.com>
172
173 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
174 non-zero.
175 (process_dynamic_section): Call get_num_dynamic_syms once rather
176 than in segment loop. Break out of segment loop on a successful
177 load of dynamic symbols. Formatting.
178 (process_object): Return error status from process_dynamic_section.
179
27456742
AK
1802020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
181
182 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
183 * elf.c (elfcore_grok_arc_v2): New function.
184 (elfcore_grok_note): Call the new function to handle the corresponding
185 note.
186 (elfcore_write_arc_v2): New function.
187 (elfcore_write_register_note): Call the new function to handle the
188 corresponding pseudo-sections.
189
30ce8e47
MF
1902020-04-22 Max Filippov <jcmvbkbc@gmail.com>
191
192 PR ld/25861
193 * readelf.c (is_none_reloc): Recognize
194 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
195 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
196
33b5a830
NC
1972020-04-22 Nick Clifton <nickc@redhat.com>
198
199 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
200
978c4450
AM
2012020-04-22 Alan Modra <amodra@gmail.com>
202
203 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
204 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
205 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
206 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
207 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
208 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
209 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
210 (dynamic_section, symtab_shndx_list, group_count, section_groups),
211 (section_headers_groups): Move to struct filedata. Update use
212 throughout file.
213
6431e409
AM
2142020-04-22 Alan Modra <amodra@gmail.com>
215
216 * readelf.c (struct dump_data): New, used..
217 (cmdline): ..here, and..
218 (struct filedata): ..here. Adjust all uses.
219 (request_dump_bynumber, request_dump, parse_args): Pass in a
220 struct dump_data* rather than Filedata*. Adjust callers.
221 (main): Don't set cmdline.file_name.
222
a5e0be5c
AM
2232020-04-20 Alan Modra <amodra@gmail.com>
224
225 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
226 and nbuckets.
227
8ff66993
AM
2282020-04-20 Alan Modra <amodra@gmail.com>
229
230 * readelf.c (process_section_headers): Free dynamic symbols etc.
231 earlier.
232
ceb9bf11
AM
2332020-04-20 Alan Modra <amodra@gmail.com>
234
235 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
236 on error without freeing.
237 (process_dynamic_section): Don't recreate dynamic symbols from
238 dynamic tag info when the dynamic symbols have already been
239 read via section headers.
240
e409955d
FS
2412020-04-17 Fredrik Strupe <fredrik@strupe.net>
242
243 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
244 conditional VDUP instructions are disassembled correctly.
245 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
246 vdup-cond.d.
247 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
248 that VDUP instructions (which are conditional in A32) can be
249 disassembled in thumb mode.
250 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
251 vdup-thumb.d.
252
ca3f923f
AM
2532020-04-17 Alan Modra <amodra@gmail.com>
254
255 PR 25840
256 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
257
937f6614
AM
2582020-04-16 Alan Modra <amodra@gmail.com>
259
260 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
261 --no-addresses description.
262
b1bc1394
AM
2632020-04-15 Alan Modra <amodra@gmail.com>
264
265 * objdump.c (no_addresses): New static var.
266 (usage): Print help for --no-addresses.
267 (long_options): Add --no-addresses entry.
268 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
269 (disassemble_bytes): Don't print current line address, or reloc
270 address.
271 * doc/binutils.texi: Document objdump --no-addresses.
272
001890e1
AM
2732020-04-15 Alan Modra <amodra@gmail.com>
274
275 PR 25822
276 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
277 reading buckets or chains fails.
278
b71d4fa7
AM
2792020-04-15 Alan Modra <amodra@gmail.com>
280
281 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
282 etc. after freeing.
283
89246a0e
AM
2842020-04-15 Alan Modra <amodra@gmail.com>
285
286 * readelf.c (get_group_flags): Translate text.
287 (get_file_type, get_symbol_binding, get_symbol_type),
288 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
289
c98a4545
AM
2902020-04-15 Alan Modra <amodra@gmail.com>
291
292 PR 25821
293 * readelf.c (get_num_dynamic_syms): Typo fix.
294
645f43a8
AM
2952020-04-14 Alan Modra <amodra@gmail.com>
296
297 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
298 possibility of overflow when checking number of conflicts.
299
10ca4b04
L
3002020-04-14 H.J. Lu <hongjiu.lu@intel.com>
301
302 PR binutils/25707
303 * readelf.c (nbuckets): New.
304 (nchains): Likewise.
305 (buckets): Likewise.
306 (chains): Likewise.
307 (ngnubuckets): Likewise.
308 (gnubuckets): Likewise.
309 (gnuchains): Likewise.
310 (mipsxlat): Likewise.
311 (ngnuchains): Likewise.
312 (gnusymidx): Likewise.
313 (VALID_SYMBOL_NAME): Likewise.
314 (VALID_DYNAMIC_NAME): Use it.
315 (get_dynamic_data): Moved before process_dynamic_section.
316 (get_num_dynamic_syms): New function.
317 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
318 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
319 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
320 table.
321 (get_symbol_index_type): Don't print "bad section index" when
322 there is no section header.
323 (print_dynamic_symbol): Rewrite.
324 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
325 symbol table.
326
bb897477
RO
3272020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
328
329 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
330 enable on *-*-solaris*.
331
00386881
NC
3322020-03-30 Nick Clifton <nickc@redhat.com>
333
334 PR binutils/25662
335 * objcopy.c (copy_object): When copying PE format files set the
336 timestamp field in the pe_data structure if the preserve_dates
337 flag is set.
338 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
339 --preserve-dates in place of the -p option, in order to make its
340 effect more obvious.
341
0a6a8b59
AM
3422020-03-28 Alan Modra <amodra@gmail.com>
343
344 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
345 clear_xfail hppa*-*-*elf*. Revert mips xfails.
346
6a81c59b
AM
3472020-03-28 Alan Modra <amodra@gmail.com>
348
349 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
350 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
351 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
352 test. Pass "-p" to objcopy for the executable test.
353
1fafefd5
JL
3542020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
355
356 PR binutils/25662
357 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
358 specify whether an object file or executable should be built and tested.
359 Change test names to report whether an object file or executable is
360 being tested.
361 * testsuite/binutils-all/pr25662.ld: New test.
362 * testsuite/binutils-all/pr25662.s: New test.
363
80e2a3b6
AM
3642020-03-27 Alan Modra <amodra@gmail.com>
365
366 * readelf.c (process_archive): Don't double free qualified_name.
367 Don't break out of loop with "negative" archive_file_size, just
368 set file offset to max.
369
4c836627
AM
3702020-03-25 Alan Modra <amodra@gmail.com>
371
372 * readelf.c (process_archive): Prevent endless loop.
373
1081065c
L
3742020-03-24 H.J. Lu <hongjiu.lu@intel.com>
375
376 PR binutils/25708
377 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
378 with bfd_get_symbol_version_string.
379 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
380 * objdump.c (objdump_print_symname): Likewise.
381
7e6e972f
L
3822020-03-24 H.J. Lu <hongjiu.lu@intel.com>
383
384 PR binutils/25708
385 * nm.c (SYM_NAME): Removed.
386 (print_symname): Add a pointer to struct extended_symbol_info
387 argument. Call _bfd_elf_get_symbol_version_name to get symbol
388 version.
389 (print_symdef_entry): Pass NULL to print_symname.
390 (print_symbol_info_bsd): Update call to print_symname.
391 (print_symbol_info_sysv): Likewise.
392 (print_symbol_info_posix): Likewise.
393
5a814d6d
AM
3942020-03-24 Alan Modra <amodra@gmail.com>
395
396 * readelf.c (process_mips_specific): Free iconf on error path.
397
0636b245
NC
3982020-03-23 Nick Clifton <nickc@redhat.com>
399
400 PR 25714
401 * wrstabs.c (stab_pop_type): Replace assertion with error return.
402 * write_stabs_in_sections_debugging_info: Likewise.
403 * stab_enum_type: Likewise.
404 * stab_modify_type: Likewise.
405 * stab_struct_field: Likewise.
406 * stab_end_struct_type: Likewise.
407 * stab_start_class_type: Likewise.
408 * stab_class_static_member: Likewise.
409 * stab_class_baseclass: Likewise.
410 * stab_class_start_method: Likewise.
411 * stab_class_method_var: Likewise.
412 * stab_class_end_method: Likewise.
413 * stab_end_class_type: Likewise.
414 * stab_typedef_type: Likewise.
415 * stab_start_function: Likewise.
416 * stab_end_block: Likewise.
417 * stab_lineno: Likewise.
418
5844b465
NC
4192020-03-20 Nick Clifton <nickc@redhat.com>
420
421 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
422 (process_section_headers): Check the return value from
423 get_compression_header.
424 (dump_section_as_strings): Likewise.
425 (dump_section_as_bytes): Likewise.
426 (load_specific_debug_section): Likewise.
427
3d98c460
L
4282020-03-20 H.J. Lu <hongjiu.lu@intel.com>
429
430 * ar.c (main): Update bfd_plugin_set_program_name call.
431 * nm.c (main): Likewise.
432
f3a08f77
NC
4332020-03-19 Nick Clifton <nickc@redhat.com>
434
435 PR 25676
436 * testsuite/binutils-all/dw4.s: New test source file.
437 * testsuite/binutils-all/nm.exp: Run the new test.
438
ef3df110
L
4392020-03-19 H.J. Lu <hongjiu.lu@intel.com>
440
441 * readelf.c (process_symbol_table): Use unsigned long for si.
442
81a65eb3
AM
4432020-03-19 Alan Modra <amodra@gmail.com>
444
445 * elfcomm.c: Don't include bfd.h or bucomm.h.
446 (program_name): Declare.
447 (process_archive_index_and_symbols): Replace bfd_boolean with int,
448 and substitute FALSE and TRUE.
449 (setup_archive, setup_nested_archive): Likewise.
450 * elfcomm.h: Likewise.
451
1cb7d8b1
AM
4522020-03-19 Alan Modra <amodra@gmail.com>
453
454 * readelf.c (process_archive): Always return via path freeing
455 memory. Formatting.
456
b966f55f
AM
4572020-03-19 Alan Modra <amodra@gmail.com>
458
459 * readelf.c (process_netbsd_elf_note): Validate descsz before
460 accessing descdata. Formatting.
461
645ba681
AM
4622020-03-19 Alan Modra <amodra@gmail.com>
463
464 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
465 * elfcomm.h (setup_archive): Update prototype.
466
28d13567
AM
4672020-03-16 Alan Modra <amodra@gmail.com>
468
469 * readelf.c (get_symbols): New function.
470 (process_relocs, ia64_process_unwind, hppa_process_unwind),
471 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
472
60e63c3e
AM
4732020-03-16 Alan Modra <amodra@gmail.com>
474
475 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
476 Detect shift overflows and check that terminating byte is found.
477 Print an error on a bad uleb128.
478
1bd6175a
AM
4792020-03-14 Alan Modra <amodra@gmail.com>
480
481 * readelf.c (process_file): Clean ba_cache.
482
780f96ae
AM
4832020-03-14 Alan Modra <amodra@gmail.com>
484
485 * elfcomm.h (setup_archive): Update prototype.
486 * elfcomm.c (setup_archive): Add file_size parameter and sanity
487 check longnames_size.
488 (setup_nested_archive): Get file size and pass to setup_archive.
489 * elfedit.c (process_archive): Likewise.
490 * readelf.c (process_archive): Pass filedata->file_size to
491 setup_archive.
492
f761cb13
AM
4932020-03-14 Alan Modra <amodra@gmail.com>
494
495 * readelf.c (dump_section_as_strings): Free memory on error exit.
496 (dump_section_as_bytes, process_notes_at): Likewise.
497 (get_build_id): Free enote.
498
06d949ec
KR
4992020-03-13 Kamil Rytarowski <n54@gmx.com>
500
501 * readelf.c (get_netbsd_elfcore_note_type): Add support for
502 NT_NETBSDCORE_LWPSTATUS notes.
503
fd486f32
AM
5042020-03-13 Alan Modra <amodra@gmail.com>
505
506 * elfcomm.c (get_archive_member_name): Always return malloc'd
507 string or NULL.
508 * elfedit.c (process_archive): Tidy memory on all return paths.
509 * readelf.c (process_archive): Likewise.
510 (process_symbol_table): Likewise.
511 (ba_cache): New, replacing ..
512 (get_symbol_for_build_attribute): ..static vars here. Free
513 strtab and symtab before loading new ones. Reject symtab without
514 valid strtab in loop, breaking out of loop on valid symtab.
515 (process_file): Free ba_cache symtab and strtab here, resetting
516 ba_cache.
517
8fb879cd
AM
5182020-03-12 Alan Modra <amodra@gmail.com>
519
520 * readelf.c (process_section_headers): Don't just set
521 filedata->section_headers NULL, free it first. Similarly for
522 dynamic_symbols, dynamic_strings, dynamic_syminfo and
523 symtab_shndx_list. Zero associated counts too.
524 (process_object): Free symtab_shndx_list.
525 (process_file): Free various allocated filedata tables.
526
5496f3c6
NC
5272020-03-11 Nick Clifton <nickc@redhat.com>
528
529 PR 25611
530 PR 25614
531 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
532 li_segment_size fields.
533 * dwarf.c (read_debug_line_header): Record the address size and
534 segment selector size values (if present) in the lineinfo
535 structure.
536 (display_formatted_table): Warn if the format count is empty but
537 the table itself is not empty.
538 Display the format count and entry count at the start of the table
539 dump.
540 (display_debug_lines_raw): Display the address size and segement
541 selector size fields, if present.
542 * testsuite/binutils-all/dw5.W: Update expected output.
543
9cc89dc0
AM
5442020-03-11 Alan Modra <amodra@gmail.com>
545
546 PR 25651
547 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
548 pad_to_set on second block of code dealing with padding.
549 Replace "c" with "num_sec" and don't recalculate number of
550 sections on second block. Size arrays using sizeof (element)
551 rather than sizeof (element type).
552
41da0822
AM
5532020-03-10 Alan Modra <amodra@gmail.com>
554
555 * objdump.c (disassemble_section): Don't call qsort unless
556 sym count is at least two.
557 (disassemble_data): Don't call memcpy with NULL src.
558
95099889
AM
5592020-03-09 Alan Modra <amodra@gmail.com>
560
561 PR 25645
562 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
563 to get_data rather than multiplying.
564 (dump_ia64_vms_dynamic_relocs): Likewise.
565 (process_version_sections): Correct order of size and nmemb args
566 in get_data call.
567 (process_mips_specific): Likewise.
568
a15de1f5
L
5692020-03-08 H.J. Lu <hongjiu.lu@intel.com>
570
571 * readelf.c (get_dynamic_data): Replace "memory chekers" with
572 "memory checkers" in comments.
573
9979ab66
SM
5742020-03-06 Simon Marchi <simon.marchi@efficios.com>
575
576 PR 25491
577 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
578 * doc/Makefile.in: Re-generate.
579
a0dcf297
NC
5802020-03-06 Nick Clifton <nickc@redhat.com>
581
582 * objcopy.c (check_new_section_flags): New function. Reject the
583 SEC_COFF_SHARED flag if the target is not a COFF binary.
584 (copy_object): Call check_new_section_flags.
585 (setup_section): Likewise.
586 * doc/binutils.texi (objcopy): Add a note that the 'share' section
587 flag cannot be applied to ELF binaries.
588
a9b90127
AM
5892020-03-06 Alan Modra <amodra@gmail.com>
590
591 PR 25637
592 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
593
d1faf7ca
AM
5942020-03-05 Alan Modra <amodra@gmail.com>
595
596 PR 25629
597 * objcopy.c (filter_symbols): Don't segfault on NULL
598 prefix_symbols_string.
599
eef64366
CE
6002020-03-04 Christian Eggers <ceggers@gmx.de>
601
602 * objcopy.c (copy_object): Convert from bytes to octets for
603 --gap-fill and --pad-to.
604
5be2b2f5
NC
6052020-03-03 Nick Clifton <nickc@redhat.com>
606
607 PR 25625
608 * prdbg.c (pr_tag_type): Remove call to abort.
609
b312fea1
AM
6102020-03-02 Aaron Merey <amerey@redhat.com>
611
612 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
613 selection.
614
ba3265d0
NC
6152020-03-02 Nick Clifton <nickc@redhat.com>
616
617 PR 25543
618 * readelf.c (dump_section_as_strings): Display new-line characters
619 as \n and then insert a line break.
620 * testsuite/binutils-all/pr25543.s: New test.
621 * testsuite/binutils-all/pr25543.d: Test driver.
622 * testsuite/binutils-all/readelf.exp: Run the new test.
623
736990c4
NC
6242020-02-27 Nick Clifton <nickc@redhat.com>
625
626 PR 25526
627 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
628 get_data is unable to load the string table.
629
dc1e8a47
AM
6302020-02-26 Alan Modra <amodra@gmail.com>
631
632 * elfedit.c: Indent labels correctly.
633 * readelf.c: Likewise.
634 * resres.c: Likewise.
635
ecda9016
L
6362020-02-25 H.J. Lu <hongjiu.lu@intel.com>
637
638 PR binutils/25584
639 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
640 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
641
83d4d556
NC
6422020-02-24 Nick Clifton <nickc@redhat.com>
643
644 PR 25499
645 * doc/binutils.texi (objdump): Fix typo in description of
646 objdump's -g option.
647
bd0cf5a6
NC
6482020-02-20 Nelson Chu <nelson.chu@sifive.com>
649
650 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
651 is changed.
652
741cb839
EC
6532020-02-19 Jordan Rupprecht <rupprecht@google.com>
654
655 * objdump.c (show_line): call bfd_demangle when using do_demangle.
656
9f1528a1
AB
6572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * configure: Regenerate.
660
3a5d12fb
FS
6612020-02-10 Fangrui Song <maskray@google.com>
662
663 * objcopy.c (parse_flags): Handle "exclude".
664 * doc/binutils.texi: Document the support.
665
678d457f
AM
6662020-02-10 Aaron Merey <amerey@redhat.com>
667
668 * binutils/testsuite/binutils-all/debuginfod.exp:
669 Replace set ::env with setenv.
46471187
AM
670 Start server before setting environment variable.
671 Specify tmpdir as the location of the server's
672 database.
673 Check additional server metrics at start-up.
678d457f 674
e8319fde
NC
6752020-02-07 Nick Clifton <nickc@redhat.com>
676
677 * README-how-to-make-a-release: Add note about updating the
678 GAS/NEWS URL in the next release.
679
9fc0b501
SB
6802020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
681
682 PR 25469
683 * readelf.c (get_machine_flags): Add support for Z80N machine
684 number.
685
e1104d08
NC
6862020-02-07 Nick Clifton <nickc@redhat.com>
687
688 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
689 of the truncated file name.
690
c2e6f744 6912020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
692
693 * objdump.c (print_jump_visualisation): New function.
694 (disassemble_bytes): Call new function.
695
02e0be69
AM
6962020-02-06 Alan Modra <amodra@gmail.com>
697
698 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
699 TCL procedure.
700 (supports_gnu_osabi): New procedure.
701 (is_generic): New, from ld-lib.exp.
702 (supports_gnu_unique): Use the above.
703
e8b79122
AM
7042020-02-04 Alan Modra <amodra@gmail.com>
705
706 * Makefile.am (CFILES): Add od-elf32_avr.c.
707 * Makefile.in: Regenerate.
708 * po/POTFILES.in: Regenerate.
709
27a45f42
AS
7102020-02-03 Andreas Schwab <schwab@linux-m68k.org>
711
712 * readelf.c (dump_relocations, dump_relocations)
713 (decode_arm_unwind_bytecode, process_dynamic_section)
714 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
715 error message.
716
0b398d69
ST
7172020-02-03 Sergei Trofimovich <siarheit@google.com>
718
719 * coffdump.c (program_name): Drop redundant definition.
720 * srconv.c (program_name): Likewise
721 * sysdump.c (program_name): Likewise
722
a8c4d40b
L
7232020-02-02 H.J. Lu <hongjiu.lu@intel.com>
724
725 PR gas/25380
726 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
727 same file with different section pointers.
728
cb6ad9bb
NC
7292020-02-01 Nick Clifton <nickc@redhat.com>
730
731 * README-how-to-make-a-release: Update with more details on the
732 release making process.
733
53943f32
NC
7342020-01-31 Nick Clifton <nickc@redhat.com>
735
736 * po/sv.po: Updated Swedish translation.
737
55be8fd0
NC
7382020-01-28 Nick Clifton <nickc@redhat.com>
739
740 * readelf.c (get_build_id): Simplify warning message about corrupt
741 notes encountered whilst scanning for the build-id.
742
82ef9cad
RM
7432020-01-27 Roland McGrath <mcgrathr@google.com>
744
745 * objcopy.c (compare_gnu_build_notes): Fix comparison results
746 for overlapping ranges so that (A == B) == (B == A) holds.
747
e3696f67
AM
7482020-01-27 Alan Modra <amodra@gmail.com>
749
750 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
751 case statement with switch statement.
752
2f796de6
NC
7532020-01-24 Nick Clifton <nickc@redhat.com>
754
755 * readelf.c (get_build_id): Fix warning messages about corrupt
756 notes.
757
24e648d4
NC
7582020-01-23 Nick Clifton <nickc@redhat.com>
759
760 * po/fr.po: Updated French translation.
761
c48acf6f
YC
7622020-01-22 Yuri Chornoivan <yurchor@mageia.org>
763
764 PR 25417
765 * readelf.c (get_alpha_symbol_other): Fix error message typo.
766
26916852
NC
7672020-01-20 Nick Clifton <nickc@redhat.com>
768
769 * po/pt.po: Updated Portuguese translation.
770 * po/uk.po: Updated Ukranian translation.
771
b248e9ce
NC
7722020-01-18 Nick Clifton <nickc@redhat.com>
773
774 * README-how-to-make-a-release: Update notes on how to cut a
775 branch for a release.
776
1b1bb2c6
NC
7772020-01-18 Nick Clifton <nickc@redhat.com>
778
779 * configure: Regenerate.
780 * po/binutils.pot: Regenerate.
781
ae774686
NC
7822020-01-18 Nick Clifton <nickc@redhat.com>
783
784 Binutils 2.34 branch created.
785
82a9ed20
TT
7862020-01-17 Thomas Troeger <tstroege@gmx.de>
787
788 * objdump.c (jump_info_visualize_address): Discard jumps that are
789 no longer needed.
790 (disassemble_bytes): Only compute the maximum level if jumps were
791 detected.
792
6a1939f5
NC
7932020-01-13 Nick Clifton <nickc@redhat.com>
794
c87c17c1 795 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
796 * testsuite/binutils-all/debuginfod.exp: New tests.
797
1d67fe3b
TT
7982020-01-13 Thomas Troeger <tstroege@gmx.de>
799
800 * objdump.c (visualize_jumps, color_output, extended_color_output)
801 (detected_jumps): New variables.
802 (usage): Add the new jump visualization options.
803 (option_values): Add new option value.
804 (long_options): Add the new option.
805 (jump_info_new, jump_info_free): New functions.
806 (jump_info_min_address, jump_info_max_address): Likewise.
807 (jump_info_end_address, jump_info_is_start_address): Likewise.
808 (jump_info_is_end_address, jump_info_size): Likewise.
809 (jump_info_unlink, jump_info_insert): Likewise.
810 (jump_info_add_front, jump_info_move_linked): Likewise.
811 (jump_info_intersect, jump_info_merge): Likewise.
812 (jump_info_sort, jump_info_visualize_address): Likewise.
813 (disassemble_jumps): New function - used to locate jumps.
814 (disassemble_bytes): Add ascii art generation.
815 (disassemble_section): Add scan to locate jumps.
816 (main): Parse the new visualization option.
817 * doc/binutils.texi: Document the new feature.
818 * NEWS: Mention the new feature.
819
a788aedd
AM
8202020-01-13 Alan Modra <amodra@gmail.com>
821
a4f2b7c5
AM
822 PR 25360
823 PR 25361
a788aedd
AM
824 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
825 fde_fc col_type and col_offset.
826 * readelf.c (apply_relocations): Move symsec check earlier.
827 (free_debug_section): Free reloc_info.
828 (process_notes_at): Free pnotes on error path.
829 (process_object): Free dump_sects here..
830 (process_archive): ..not here.
831
805f38bc
AM
8322020-01-13 Alan Modra <amodra@gmail.com>
833
834 PR 25362
835 * nm.c (display_rel_file): Free dyn_syms.
836
ffebb0bb
NC
8372020-01-09 Nick Clifton <nickc@redhat.com>
838
839 PR 25220
840 * objcopy.c (empty_name): New variable.
841 (need_sym_before): Prevent an attempt to free a static variable.
842 (filter_symbols): Avoid strcmp test by checking for pointer
843 equality.
844
ade4fd9b
NC
8452020-01-09 Nick Clifton <nickc@redhat.com>
846
847 * po/zh_TW.po: Updated Traditional Chinese translation.
848
8492020-01-09 Aaron Merey <amerey@redhat.com>
850
851 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
852 * Makefile.in: Regenerate.
853 * NEWS: Update.
854 * config.in: Regenerate.
855 * configure: Regenerate.
856 * configure.ac: Call AC_DEBUGINFOD.
857 * doc/Makefile.in: Regenerate.
858 * doc/binutils.texi: Add section on using binutils
859 with debuginfod.
860 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
861 Query debuginfod servers for the target debug file.
862 (load_separate_debug_info): Call
863 debuginfod_fetch_separate_debug_info if configured with
864 debuginfod.
865 (load_separate_debug_files): Add file argument to
866 load_separate_debug_info calls.
867 * dwarf.h (get_build_id): Add declaration.
868 * objdump.c (get_build_id): New function. Get build-id of file.
869 * readelf.c (get_build_id): Likewise.
870 * testsuite/binutils-all/debuginfod.exp: New tests.
871 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
872 section.
873
6655dba2
SB
8742020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
875
876 * readelf.c: Add support for new Z*) relocations and machine
877 types.
878
b14ce8bf
AM
8792020-01-01 Alan Modra <amodra@gmail.com>
880
881 Update year range in copyright notice of all files.
882
0b114740 883For older changes see ChangeLog-2019
3499769a 884\f
0b114740 885Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
886
887Copying and distribution of this file, with or without modification,
888are permitted in any medium without royalty provided the copyright
889notice and this notice are preserved.
890
891Local Variables:
892mode: change-log
893left-margin: 8
894fill-column: 74
895version-control: never
896End: