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