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