ELF: Support .noinit and .persistent sections
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2020-11-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2
3 * testsuite/lib/binutils-common.exp (supports_noinit_section): New.
4 (supports_persistent_section): New.
5
6 2020-11-23 Nick Alcock <nick.alcock@oracle.com>
7
8 * readelf.c (dump_section_as_ctf): Call ctf_arc_symsect_endianness.
9
10 2020-11-25 Alan Modra <amodra@gmail.com>
11
12 * testsuite/binutils-all/nm.exp (ifunc): xfail more targets.
13
14 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
15
16 * readelf.c (dump_section_as_ctf): Use .dynsym and .dynstr, not
17 .symtab and .strtab.
18
19 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
20
21 * objdump.c (dump_ctf): Report errors from ctf_archive_iter.
22 * readelf.c (dump_section_as_ctf): Likewise.
23
24 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
25
26 * objdump.c (dump_ctf): Use ctf_dict_open, not
27 ctf_arc_open_by_name.
28 * readelf.c (dump_section_as_ctf): Likewise.
29
30 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
31
32 * objdump.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
33 (dump_ctf_archive_member): Likewise.
34 (dump_ctf): Likewise. Use ctf_dict_close, not ctf_file_close.
35 * readelf.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
36 (dump_ctf_archive_member): Likewise.
37 (dump_section_as_ctf): Likewise. Use ctf_dict_close, not
38 ctf_file_close.
39
40 2020-11-20 Nick Clifton <nickc@redhat.com>
41
42 PR 22967
43 * nm.c (ifunc_type_chars): New variable.
44 (long_options): Add --ifunc-chars.
45 (print_symbol): Use ifunc_type_chars for ifunc symbols.
46 (main): Handle the new option.
47 * doc/binutils.texi: Document the new option.
48 * configure.ac: Add --enable-f-for-ifunc-symbols option which
49 changes the default symbol displayed by nm.
50 * NEWS: Mention the new feature.
51 * testsuite/binutils-all/nm.exp: Test the new feature.
52 * config.in: Regenerate.
53 * configure: Regenerate.
54
55 2020-11-20 Linda Zhang <lindasc@qq.com>
56
57 PR 20979
58 * dllwrap.c (main): Deprecate and warn the use of dllwrap.
59
60 2020-11-20 Jozef Lawrynowicz <jozef.l@mittosystems.com>
61
62 * testsuite/binutils-all/readelf-maskos-1a.d: Fix test for unrecognized
63 bit set in SHF_MASKOS range.
64 * testsuite/binutils-all/readelf-maskos-1b.d: Likewise.
65 * testsuite/binutils-all/readelf-maskos-unknown.s: New test.
66
67 2020-11-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
68
69 * NEWS: Announce SHF_GNU_RETAIN support.
70 * readelf.c (get_elf_section_flags): Handle SHF_GNU_RETAIN.
71 Recognize SHF_GNU_RETAIN and SHF_GNU_MBIND only for supported OSABIs.
72 * testsuite/binutils-all/readelf.exp: Run new tests.
73 Don't run run_dump_test when there isn't an assembler available.
74 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Adjust
75 comment.
76 * testsuite/binutils-all/readelf-maskos-1a.d: New test.
77 * testsuite/binutils-all/readelf-maskos-1b.d: New test.
78 * testsuite/binutils-all/readelf-maskos.s: New test.
79 * testsuite/binutils-all/retain1.s: New test.
80 * testsuite/binutils-all/retain1a.d: New test.
81 * testsuite/binutils-all/retain1b.d: New test.
82
83 2020-11-17 Howard Chu <hyc@symas.com>
84
85 * ar.c (main): Place the libdeps record in the second archive
86 slot.
87
88 2020-11-13 Nick Clifton <nickc@redhat.com>
89
90 PR 26829
91 * dwarf.c (struct dwo_info): Add cu_offset field.
92 (add_dwo_info): Add cu_offset parameter. Record in new dwo_info
93 struct.
94 (add_dwo_name): Add cu_offset field.
95 (add_dwo_dir): Add cu_offset field.
96 (add_dwo_id): Add cu_offset field.
97 (read_and_display_attr_value): Pass cu_offset to dwo recording
98 functions.
99 (load_separate_debug_files): Accumulate name, dir and id values
100 and display once for each CU.
101 * testsuite/binutils-all/dwo.sL Use a separate CU for the second
102 dwo link.
103 * testsuite/binutils-all/readelf.k2: Update expected output.
104
105 2020-11-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
106
107 * dwarf.c (display_debug_rnglists_list): Only bias the
108 DW_RLS_offset_pair with the base address.
109
110 2020-11-10 Nick Clifton <nickc@redhat.com>
111
112 * dwarf.c (skip_attr_bytes): Correctly handle DW_FORM_ref8.
113 (get_type_abbrev_from_form): Accept DW_FORM_ref8.
114
115 2020-11-09 Andreas Schwab <schwab@linux-m68k.org>
116
117 * Makefile.am (development.exp): Fix regexp.
118 * Makefile.in: Regenerate.
119
120 2020-11-09 Nick Clifton <nickc@redhat.com>
121
122 PR 26847
123 * dwarf.c (read_and_display_attr_value): In wide mode, display the
124 name of the form.
125
126 2020-11-09 Alan Modra <amodra@gmail.com>
127
128 * elfedit (usage): Avoid false positive "may be used uninitialised".
129 Don't leak memory.
130
131 2020-11-09 Howard Chu <hyc@symas.com>
132
133 * ar.c (main): Use plugin_target rather than "target" when
134 resetting libdeps_bfd target.
135
136 2020-11-06 H.J. Lu <hongjiu.lu@intel.com>
137
138 * elfedit.c: Include "libiberty.h".
139 (usage): Update help message.
140
141 2020-11-03 Howard Chu <hyc@symas.com>
142
143 * ar.c (long_options): Add --record-libdeps.
144 (usage): Mention the new option.
145 (decode_options): Handle the new option.
146 (replace_members): If necessary, create a bfd to hold the libdeps
147 description.
148 * binemul.c (ar_emul_append_bfd): New function.
149 (ar_emul_replace_bfd): New function.
150 (ar_emul_default_append): Replace file_name and target arguments
151 with new_bfd argument.
152 (ar_emul_default_replace): Likewise.
153 * binemul.h: Update prototypes.
154 (struct bin_emulation_xfer_struct): Update fields.
155 * doc/binutils.texi: Document the new option.
156 * NEWS: Mention the new feature.
157 * emul_aix.c (ar_emul_aix_append): Update.
158 (ar_emul_aix_replace): Likewise.
159 * testsuite/binutils-all/ar.exp: Add test of new feature.
160
161 2020-10-30 H.J. Lu <hongjiu.lu@intel.com>
162
163 PR gas/26703
164 * readelf.c (decode_x86_isa): Handle
165 * GNU_PROPERTY_X86_ISA_1_BASELINE.
166 * testsuite/binutils-all/i386/empty.d: Updated.
167 * testsuite/binutils-all/i386/ibt.d: Likewise.
168 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
169 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
170 * testsuite/binutils-all/i386/shstk.d: Likewise.
171 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
172 * testsuite/binutils-all/x86-64/empty.d: Likewise.
173 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
174 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
175 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
176 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
177 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
178 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
179 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
180 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
181 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
182 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
183 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
184 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
185 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
186 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
187
188 2020-10-29 H.J. Lu <hongjiu.lu@intel.com>
189
190 PR binutils/26808
191 * dwarf.c (abbrev_list): Add abbrev_base.
192 (new_abbrev_list): Add an abbrev_base argument and record it.
193 (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
194 and match it.
195 (process_debug_info): Pass abbrev_base to new_abbrev_list and
196 find_abbrev_list_by_abbrev_offset.
197 (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
198 and find_abbrev_list_by_abbrev_offset.
199 * testsuite/binutils-all/x86-64/pr26808.dump: New file.
200 * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
201 * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
202 test.
203
204 2020-10-29 Nick Clifton <nickc@redhat.com>
205
206 PR 26805
207 * objcopy.c (is_dwo_section): Check for missing or short section
208 names.
209
210 2020-10-26 Andreas Rammhold <andreas@rammhold.de>
211
212 * README-how-to-make-a-release: Use sha256sum instead of md5sum.
213
214 2020-10-28 Nick Clifton <nickc@redhat.com>
215
216 PR 26795
217 * elfedit.c (process_archive): Remove spurious call to free().
218
219 2020-10-27 Nick Clifton <nickc@redhat.com>
220
221 * dwarf.c (struct abbrev_list): New structure. Used to collect
222 lists of abbreviation sets.
223 (struct abbrev_map): New structure. Used to map CU offsets to
224 abbreviation offsets.
225 (record_abbrev_list): New function. A new entry to an
226 abbreviation list.
227 (free_all_abbrevs): Update to free abbreviation lists.
228 (new_abbrev_list): New function. Start a new abbreviation
229 list.
230 (find_abbrev_list_by_abbrev_offset): New function.
231 (find_abbrev_map_by_offset): New function.
232 (add_abbrev): Add abbrev_list parameter.
233 (add_abbrev_attr): Likewise.
234 (process_abbrev_section): Rename to process_abbrev_set and add
235 list parameter.
236 (get_type_abbrev_from_form): New function. Attempts to decode the
237 forms used by DW_AT_type attributes.
238 (get_type_signedness): Display type names if operating in wide
239 mode. Use get_type_abbrev_from_form.
240 (read_and_display_attr_value): Use get_type_abbrev_from_form.
241 (process_debug_info): Pre-parse the CU headers to collate all the
242 abbrevs before starting the main scan.
243 (process_debug_abbrev): Do not free any loaded abbrevs.
244 (free_debug_memory): Free the abbrev maps.
245
246 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
247
248 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
249 error message on error.
250
251 2020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
252
253 * windmc.c (write_header_define): Fix printf format.
254 (write_header): Likewise.
255
256 2020-10-21 Nick Clifton <nickc@redhat.com>
257
258 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
259 when processing the DW_FORM_ref_addr form.
260 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
261 Handle DW_FORM_indirect.
262 (get_type_signedness): Allow a limited amount of recursion.
263 Do not attempt to decode types that use the DW_FORM_ref_addr form.
264 (read_and_display_attr_value): Do not attempt to decode types
265 that use the DW_FORM_ref_addr form.
266
267 2020-10-20 Alan Modra <amodra@gmail.com>
268
269 * readelf.c: Delete whitespace at end of line throughout.
270 (SECTION_NAME, SECTION_NAME_VALID): New.
271 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
272 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
273 (process_section_headers, process_section_groups): Likewise.
274 (shdr_to_ctf_sect): Likewise.
275 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
276 (ia64_process_unwind, hppa_process_unwind): Likewise.
277 (display_debug_section, initialise_dumps_byname): Likewise.
278 (process_lto_symbol_tables): Likewise. Check trailing period of
279 lto symbol table names.
280 (display_lto_symtab): Use sizeof instead of strlen.
281
282 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
283
284 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
285
286 2020-10-19 Nick Clifton <nickc@redhat.com>
287
288 * readelf.c (do_lto_syms): New local.
289 (long_option_values): Add OPTION_LTO_SYMS.
290 (options): Add --lto-syms.
291 (usage): Mention the new option.
292 (parse_args): Parse the new option.
293 (get_lto_kind): New function.
294 (get_lto_visibility): New function.
295 (get_lto_sym_type): New function.
296 (display_lto_symtab): New function - displays the contents of an
297 LTo symbol table section.
298 (process_lto_symbol_tables): New functions. Calls
299 dipslay_lto_symtab on any LTO symbol table section.
300 (process_object_file): Call process_lto_symbol_tables.
301 * doc/binutils.texi: Document the new option.
302 * NEWS: Mention the new feature.
303
304 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
305
306 PR gas/26703
307 * readelf.c (decode_x86_compat_2_isa): New function.
308 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
309 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
310 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
311 and X86_COMPAT_2_ISA_1_NEEDED.
312 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
313 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
314 values.
315 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
316 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
317 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
318 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
319 * testsuite/binutils-all/i386/empty.d: Updated.
320 * testsuite/binutils-all/i386/ibt.d: Likewise.
321 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
322 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
323 * testsuite/binutils-all/i386/shstk.d: Likewise.
324 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
325 * testsuite/binutils-all/x86-64/empty.d: Likewise.
326 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
327 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
328 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
329 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
330 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
331 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
332 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
333 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
334 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
335 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
336 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
337 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
338 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
339 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
340
341 2020-10-06 Nick Clifton <nickc@redhat.com>
342
343 * objcopy.c (copy_object): Compare input and output sections by
344 pointer rather than name.
345
346 2020-10-05 Nick Clifton <nickc@redhat.com>
347
348 PR 26698
349 * windmc.c (mc_unify_path): Fix typo checking character at end of
350 pathname.
351
352 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
353
354 * doc/binutils.texi: Fix spelling mistakes.
355
356 2020-09-29 Mark Wielaard <mark@klomp.org>
357
358 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
359 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
360
361 2020-09-25 Alan Modra <amodra@gmail.com>
362
363 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
364 more field sizes.
365 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
366 allowed reloc_size. Don't read_leb128 outside of section.
367
368 2020-09-23 Mark Wielaard <mark@klomp.org>
369
370 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
371 * testsuite/binutils-all/dw5.W: Adjust expected output.
372 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
373
374 2020-09-23 Mark Wielaard <mark@klomp.org>
375
376 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
377 for dwarf_version 5 just as version 3 and 4 (only 2 is
378 different).
379 (process_debug_info): Allow DW_UT_partial.
380
381 2020-09-24 Nick Clifton <nickc@redhat.com>
382
383 PR 26662
384 * doc/binutils.texi (nm): Document that 'c' is used for small
385 common symbols.
386
387 2020-09-21 Ludovic Courtès <ludo@gnu.org>
388
389 * doc/binutils.texi (objcopy, strip): Say that
390 '--strip-unneeded' implies '--strip-debug'.
391
392 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
393
394 * verilog.c (verilog_write_address): Properly handle 64-bit
395 addresses to avoid truncation of the high part.
396
397 2020-09-16 Alan Modra <amodra@gmail.com>
398
399 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
400 * objcopy.c (is_hidden_symbol): Likewise.
401
402 2020-09-15 Nick Clifton <nickc@redhat.com>
403
404 * README-how-to-make-a-release (https): Add a reminder to create a
405 new Bugzilla tag for the point release, once it has been published.
406
407 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
408
409 * readelf.c (get_note_type): Support NT_X86_CET.
410
411 2020-09-11 Nick Clifton <nickc@redhat.com>
412
413 PR 26595
414 * dwarf.c (load_separate_debug_info): Return NULL rather than
415 FALSE in error situations.
416 (load_separate_debug_file): Move code to load debug links to ...
417 (check_for_and_load_links): ... here. New function. Load
418 separate debug information pointed to by debuglink and
419 debugaltlink sections. Recursively scan newly loaded debug
420 information for more links and load them too.
421
422 2020-09-09 Alan Modra <amodra@gmail.com>
423
424 PR 26578
425 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
426 (load_separate_debug_files): Use a stack var for build_id_data.
427
428 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
429
430 PR ld/26587
431 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
432 to ld on PE targets for PR 25662 test.
433
434 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
435 Kuan-Lin Chen <kuanlinchentw@gmail.com>
436
437 * readelf.c (target_specific_reloc_handling): Handle
438 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
439
440 2020-09-02 Alan Modra <amodra@gmail.com>
441
442 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
443
444 2020-08-30 Alan Modra <amodra@gmail.com>
445
446 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
447 long for "bytes".
448
449 2020-08-28 Nick Clifton <nickc@redhat.com>
450
451 PR 26548
452 * dwarf.c (read_leb128): When checking for overflow of a signed
453 read, use a signed shift.
454
455 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
456
457 * readelf.c (get_csky_section_type_name): New.
458 (get_section_type_name): Add handler for CSKY.
459 (display_csky_attribute): New.
460 (process_arch_specific): Add handler for CSKY.
461 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
462 section.
463
464 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
465
466 * readelf.c (get_msp430x_section_type_name): Rename to ...
467 (get_msp430_section_type_name): ... this.
468 (get_section_type_name): Use get_msp430_section_type_name.
469 (display_msp430x_attribute): Rename to ...
470 (display_msp430_attribute): ... this.
471 (process_arch_specific): Use display_msp430_attribute.
472
473 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
474
475 PR 26356
476 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
477 "-j $PRIVATE$" to command on hppa*-*-hpux*.
478 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
479 dollar-sign quotes before quoting. Do this prior to generating log
480 output.
481
482 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
483
484 PR 26088
485 * mclex.c (skip_until_eol): If eol was found, increment line
486 number.
487
488 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
489
490 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
491 * readelf.c (dump_ctf_errs): Likewise.
492
493 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
494
495 * objdump.c (dump_ctf_archive_member): Move error-
496 reporting...
497 (dump_ctf_errs): ... into this separate function.
498 (dump_ctf): Call it on open errors.
499 * readelf.c (dump_ctf_archive_member): Move error-
500 reporting...
501 (dump_ctf_errs): ... into this separate function. Support
502 calls with NULL fp. Adjust for new err parameter to
503 ctf_errwarning_next.
504 (dump_section_as_ctf): Call it on open errors.
505
506 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
507
508 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
509 * Makefile.in: Regenerated.
510
511 2020-08-26 Nick Clifton <nickc@redhat.com>
512
513 PR 26405
514 * readelf.c (get_segment_type): Handle OpenBSD segment types.
515
516 2020-08-26 Alan Modra <amodra@gmail.com>
517
518 PR 26412
519 * objcopy.c (copy_object): Don't fwrite NULL contents.
520
521 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
522
523 PR 26340
524 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
525
526 2020-08-24 Alan Modra <amodra@gmail.com>
527
528 * readelf.c (dump_section_as_strings) Avoid false positive
529 "may be used uninitialised".
530
531 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
532
533 PR ld/26382
534 * nm.c (print_symname): Display only one '@' for undefined
535 versioned symbols.
536 * doc/binutils.texi: Update nm version information.
537
538 2020-08-21 Mark Wielaard <mark@klomp.org>
539
540 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
541 recognize DW_LANG_C11.
542
543 2020-08-19 Alan Modra <amodra@gmail.com>
544
545 PR 26349
546 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
547 and info fields.
548 (dump_section_as_strings): Don't use %tx to display offset.
549
550 2020-08-14 Alan Modra <amodra@gmail.com>
551
552 PR 26388
553 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
554 of debug_information. Correct test of max_loc_offsets and
555 max_range_lists.
556 * rddbg.c (read_debugging_info): Free dhandle on error.
557
558 2020-08-14 Alan Modra <amodra@gmail.com>
559
560 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
561
562 2020-08-13 Alan Modra <amodra@gmail.com>
563
564 PR 26348
565 * objcopy.c (copy_object): Report file name with endian error.
566 Error and return on abfd->read_only.
567
568 2020-08-12 Tom Tromey <tromey@adacore.com>
569
570 * dwarf-mode.el (Version): Now 1.6.
571 (dwarf-die-button-action): Tighten DIE reference regexp.
572 (dwarf-font-lock-keywords): Update name regexp.
573
574 2020-08-12 Nick Clifton <nickc@redhat.com>
575
576 PR binutils/26331
577 * readelf.c (do_demangle): New option flag.
578 (print_symbol): If do_demangle is enabled, demangle the symbol.
579 (enum long_option_values): New enum to hold long option values.
580 (options): Add demangle, no-demangle, recursion-limit and
581 no-recursion-limit options. Alpha sort the table.
582 (usage): Describe the new options.
583 (parse_args): Handle the new options.
584 * NEWS: Mention the new feature.
585 * doc/binutils.texi: Document the new feature.
586 * testsuite/binutils-all/readelf.exp: Test the new feature.
587 * testsuite/binutils-all/mangled.s: New file - assembler source.
588 * testsuite/binutils-all/readelf.demangled: New file - expected
589 output from readelf.
590
591 2020-08-12 Nick Clifton <nickc@redhat.com>
592
593 * po/sr.po: Updated Serbian translation.
594
595 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
596
597 PR binutils/26302
598 * nm.c (with_symbol_versions): Removed.
599 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
600 (long_options): Update --with-symbol-versions entry.
601 (print_symbol): Remove the with_symbol_versions check.
602 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
603 compatibility.
604 * doc/binutils.texi: Remove --with-symbol-versions.
605
606 2020-08-05 Alan Modra <amodra@gmail.com>
607
608 PR 26337
609 * objdump.c (load_specific_debug_section): Revert last change.
610
611 2020-08-05 Alan Modra <amodra@gmail.com>
612
613 PR 26337
614 * objdump.c (load_specific_debug_section): Don't malloc space for
615 section contents, use bfd_malloc_and_get_section.
616
617 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
618
619 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
620 * Makefile.in, doc/Makefile.in: Regenerate.
621 * configure: Regenerate.
622
623 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
624
625 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
626 to assembler.
627 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
628 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
629 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
630 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
631 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
632
633 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
634
635 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
636 New test.
637 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
638 New test.
639 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
640 New test.
641 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
642 New test.
643 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
644 New test.
645 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
646 New test.
647 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
648 New test.
649 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
650 New test.
651 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
652 New test.
653 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
654
655 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
656
657 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
658 test.
659 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
660 test.
661 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
662 test.
663 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
664 test.
665 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
666 test.
667 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
668
669 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
670
671 PR binutils/26301
672 * configure: Regenerated.
673
674 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
675
676 PR binutils/26301
677 * configure: Regenerated.
678
679 2020-07-27 Alan Modra <amodra@gmail.com>
680
681 * objdump.c (dump_section): Don't return without calling
682 process_section_p.
683
684 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
685
686 * doc/binutils.texi: Replace preceeded with preceded.
687
688 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
689
690 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
691 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
692 procedures.
693 (has_newabi): Remove variable.
694 (has_abi, abi_asflags, abi_ldflags): New associative array
695 variables.
696 (irixemul): New variable.
697 Replace `run_dump_test' calls where applicable throughout with
698 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
699 as appropriate. Use `noarch' for tests that require their own
700 architecture setting.
701 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
702 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
703 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
704 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
705 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
706 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
707 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
708 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
709 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
710 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
711 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
712 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
713 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
714 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
715 GAS flags.
716 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
717 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
718 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
719 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
720 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
721 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
722 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
723
724 2020-07-24 Aaron Merey <amerey@redhat.com>
725
726 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
727 * Makefile.in: Rebuild.
728 * configure: Rebuild.
729 * doc/Makefile.in: Rebuild.
730
731 2020-07-24 Nick Clifton <nickc@redhat.com>
732
733 * README-how-to-make-a-release: Various small updates whilst
734 creating the 2.35 release.
735
736 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
737
738 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
739 option.
740
741 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
742
743 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
744 (dump_ctf): Likewise.
745
746 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
747
748 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
749 * readelf.c (dump_ctf_archive_member): Likewise.
750
751 2020-07-22 Nick Clifton <nickc@redhat.com>
752
753 * readelf.c (parse_args): Silence potential warnings about a
754 memory resource leak when allocating space for ctf option values.
755 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
756 variable.
757
758 2020-07-21 Nick Clifton <nickc@redhat.com>
759
760 * po/sv.po: Updated Swedish translation.
761
762 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
763
764 * testsuite/binutils-all/arc/double_regs.s: New test.
765 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
766
767 2020-07-13 Nick Clifton <nickc@redhat.com>
768
769 * po/fr.po: Updated French translation.
770
771 2020-07-13 Alan Modra <amodra@gmail.com>
772
773 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
774 optional machine-os arg.
775
776 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
777
778 * readelf.c (decode_x86_feature_2): Handle
779 GNU_PROPERTY_X86_FEATURE_2_TMM.
780
781 2020-07-10 Tom de Vries <tdevries@suse.de>
782
783 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
784 information in the end_sequence row.
785 * testsuite/binutils-all/dw5.W: Update.
786 * testsuite/binutils-all/objdump.WL: Update.
787
788 2020-07-09 Alan Modra <amodra@gmail.com>
789
790 * dlltool.c: Remove powerpc PE support and comments.
791 * configure.ac: Remove powerpc PE dlltool config.
792 * configure: Regenerate.
793
794 2020-07-09 Nick Clifton <nickc@redhat.com>
795
796 * rclex.c: Add OWNERDRAW keyword.
797 * rcparse.y: Add OWNERDRAW token.
798 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
799 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
800 BITMAP flags.
801 * windres.c (extended_menuitems): Likewise.
802 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
803
804 2020-07-09 Alan Modra <amodra@gmail.com>
805
806 * readelf (slurp_hppa_unwind_table): Set table_len before use
807 in relocation sanity checks.
808
809 2020-07-07 Alan Modra <amodra@gmail.com>
810
811 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
812 * testsuite/binutils-all/nm.exp: Likewise.
813 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
814 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
815 * testsuite/binutils-all/set-section-alignment.d: Likewise.
816 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
817
818 2020-07-07 Alan Modra <amodra@gmail.com>
819
820 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
821 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
822
823 2020-07-06 Nick Clifton <nickc@redhat.com>
824
825 * po/bg.po: Updated Bulgarian translation.
826 * po/pt.po: Updated Portuguese translation.
827 * po/uk.po: Updated Ukranian translation.
828
829 2020-07-06 Alan Modra <amodra@gmail.com>
830
831 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
832 find string length.
833
834 2020-07-04 Nick Clifton <nickc@redhat.com>
835
836 * configure: Regenerate.
837 * po/binutils.pot: Regenerate.
838
839 2020-07-04 Nick Clifton <nickc@redhat.com>
840
841 Binutils 2.35 branch created.
842
843 2020-07-02 Nick Clifton <nickc@redhat.com>
844
845 PR 26028
846 * readelf.c (print_symbol): Handle truncation of symbol names.
847 (options): Add -T/--silent-truncation option.
848 (parse_args): Handle the option.
849 (print_dynamic_symbol): Correct calculation of width available to
850 display symbol name.
851 * doc/binutils.texi: Document the -T option to readelf.
852 * NEWS: Mention the new feature.
853
854 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
855
856 * NEWS: Mention x86 NaCl target support removal.
857 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
858 x86 NaCl target support.
859 * testsuite/binutils-all/elfedit-1.d: Likewise.
860 * testsuite/binutils-all/i386/i386.exp: Likewise.
861 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
862 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
863 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
864 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
865 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
866 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
867 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
868 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
869 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
870 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
871 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
872 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
873
874 2020-06-30 Nick Clifton <nickc@redhat.com>
875
876 * dwarf.c (read_and_display_attr_value): Support
877 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
878 DW_AT_comp_dir.
879
880 2020-06-30 Alan Modra <amodra@gmail.com>
881
882 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
883 xfail for nds32.
884
885 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
886
887 * dwarf.c (display_debug_str_offsets): Rename local variable
888 index to idx. Move to top of function.
889
890 2020-06-29 Alan Modra <amodra@gmail.com>
891
892 * dwarf.c: Use C style comments.
893 * resrc.c: Likewise.
894
895 2020-06-27 Alan Modra <amodra@gmail.com>
896
897 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
898 after freeing.
899 (release_archive): Set fields of arch to NULL after freeing.
900
901 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
902
903 * readelf.c (dump_section_as_ctf): Support .ctf archives using
904 ctf_arc_bufopen. Automatically load the .ctf member of such
905 archives as the parent of all other members, unless specifically
906 overridden via --ctf-parent. Split out dumping code into...
907 (dump_ctf_archive_member): ... here, as in objdump, and call
908 it once per archive member.
909 (dump_ctf_indent_lines): Code style fix.
910
911 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
912
913 * configure.ac [--enable-libctf]: New, default yes.
914 Set ENABLE_LIBCTF accordingly.
915 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
916 * configure: Regenerate.
917 * config.in: Regenerate.
918 * Makefile.in: Regenerate.
919 * aclocal.m4: Regenerate.
920 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
921 (option_values): Likewise.
922 (long_options): Likewise.
923 (main): Likewise.
924 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
925 (make_ctfsect): Likewise.
926 (dump_ctf_archive_member): Likewise.
927 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
928 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
929 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
930 (usage): Likewise.
931 (process_section_contents): Likewise.
932 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
933 (dump_ctf_indent_lines): Likewise.
934 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
935
936 2020-06-26 Jan Beulich <jbeulich@suse.com>
937
938 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
939 redundant text from x86 specific part of -M section.
940
941 2020-06-26 Pat Bernardi <bernardi@adacore.com>
942
943 * readelf.c (display_m68k_gnu_attribute): New function.
944 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
945
946 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
947
948 PR binutils/26160
949 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
950 * testsuite/binutils-all/pr26160.r: Likewise.
951 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
952
953 2020-06-23 Nick Clifton <nickc@redhat.com>
954
955 PR 26160
956 * dwarf.c (fetch_indexed_string): Detect and handle old style
957 .debug_str_offset tables.
958 (display_debug_str_offsets): Likewise. Also add support for
959 .debug_str_offsets.dwo sections.
960
961 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
962
963 PR binutils/26112
964 * testsuite/binutils-all/pr26112.o.bz2: New file.
965 * testsuite/binutils-all/pr26112.r: Likewise.
966 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
967
968 2020-06-23 Alan Modra <amodra@gmail.com>
969
970 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
971 remote_file delete command.
972
973 2020-06-22 Nick Clifton <nickc@redhat.com>
974
975 PR 26112
976 * dwarf.c (display_debug_str_offsets): Add code to display the
977 contents of the .debug_str_offsets section.
978 (display_debug_macro): Add support for DW_MACRO_define_strx and
979 DW_MACRO_undef_strx.
980
981 2020-06-22 Saagar Jha <saagar@saagarjha.com>
982
983 * od-macho.c: Dump linkedit data for new load commands.
984
985 2020-06-19 Alan Modra <amodra@gmail.com>
986
987 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
988 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
989 (run_dump_test): Use check_relro_support to decide whether to pass
990 extra ld option "-z norelro".
991
992 2020-06-11 Alan Modra <amodra@gmail.com>
993
994 * readelf.c (process_mips_specific): Don't alloc memory for
995 Elf_Internal_Options.
996
997 2020-06-11 Alan Modra <amodra@gmail.com>
998
999 * readelf.c (process_mips_specific): Assert size of internal
1000 types match size of external types, and simplify allocation of
1001 internal buffer. Catch possible integer overflow when sanity
1002 checking option size. Don't assume options are a regular array.
1003 Sanity check reginfo option against option size. Use PRI macros
1004 when printing.
1005
1006 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
1007
1008 PR 26082
1009 * mclex.c (yylex): Reject lines that reach end-of-file without a
1010 terminating newline character.
1011
1012 2020-06-08 Nick Clifton <nickc@redhat.com>
1013
1014 PR 26093
1015 * doc/binutils.texi (strings): Fix typo.
1016
1017 2020-06-08 Nick Clifton <nickc@redhat.com>
1018
1019 PR 26086
1020 * dwarf.c (process_debug_info): Check that there is space in the
1021 debug_information array before filling in an entry.
1022
1023 2020-06-06 Alan Modra <amodra@gmail.com>
1024
1025 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
1026
1027 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
1028
1029 PR 26082
1030 * mclex.c (yylex): Add test for an empty input stream.
1031
1032 2020-06-04 Stephen Casner <casner@acm.org>
1033
1034 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
1035 for test using section pseudo-ops compatible with pdp11.
1036 * testsuite/binutils-all/objcopy.exp: Select alternate source.
1037
1038 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1039
1040 * objdump.c (disassemble_data): Set disasm_info.endian_code to
1041 disasm_info.endian after the latter is initialized to the
1042 endianness reported by BFD.
1043
1044 2020-06-04 Alan Modra <amodra@gmail.com>
1045
1046 * testsuite/binutils-all/i386/i386.exp: Remove global directive
1047 outside proc body.
1048 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
1049 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
1050
1051 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
1052
1053 * windmc.h (struct mc_node): Add id_typecast field.
1054 * mcparse.y (message): Initialise the id_typecast field.
1055 * windmc.c (write_dbg): Use the id_typecast field as a parameter
1056 when calling write_dbg_define.
1057 (write_header): Likewise.
1058
1059 2020-06-03 Alan Modra <amodra@gmail.com>
1060
1061 PR 26069
1062 * objcopy.c (copy_relocations_in_section): Free relpp on error.
1063 Don't accidentally free isection->orelocation.
1064
1065 2020-06-02 Alan Modra <amodra@gmail.com>
1066
1067 * testsuite/binutils-all/ar.exp (obj): Set up object file name
1068 extension. Use throughout. Don't completely exclude non-ELF
1069 alpha targets. Run long_filenames test for tic30. Exclude thin
1070 archive tests for aix, ecoff and vms.
1071 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
1072 extension. Use throughout. Don't exclude non-ELF alpha targets
1073 from "bintest.a".
1074
1075 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
1076
1077 * MAINTAINERS (Xtensa): Add myself as maintainer.
1078
1079 2020-05-23 Alan Modra <amodra@gmail.com>
1080
1081 * testsuite/binutils-all/ar.exp (many_files): New test.
1082
1083 2020-05-21 Alan Modra <amodra@gmail.com>
1084
1085 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
1086 * dlltool.c: Likewise.
1087 * elfcomm.c: Likewise.
1088 * rddbg.c: Likewise.
1089 * readelf.c: Likewise.
1090 * stabs.c: Likewise.
1091 * windmc.c: Likewise.
1092 * windres.c: Likewise.
1093 * wrstabs.c: Likewise.
1094
1095 2020-05-21 Alan Modra <amodra@gmail.com>
1096
1097 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
1098 access.
1099
1100 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
1101
1102 * dwarf.c: Updated since DECLARE_CSR is changed.
1103
1104 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
1105
1106 PR binutils/25809
1107 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
1108 segment doesn't match the .dynamic section and checks are
1109 enabled.
1110 (struct filedata): Add dynamic_symtab_section and
1111 dynamic_strtab_section fields.
1112 (process_section_headers): Set dynamic_symtab_section to the
1113 .dynsym section. Set dynamic_strtab_section to the .dynstr
1114 section.
1115 (process_dynamic_section): Warn if the .dynsym section doesn't
1116 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
1117 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
1118
1119 2020-05-19 Alan Modra <amodra@gmail.com>
1120
1121 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
1122 (replace_members): Use bfd_get_filename rather than accessing
1123 bfd->filename directly.
1124 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
1125 * binemul.c (do_ar_emul_append): Likewise.
1126 * coffgrok.c (coff_grok): Likewise.
1127
1128 2020-05-18 Stafford Horne <shorne@gmail.com>
1129
1130 * MAINTAINERS (OR1K): Add myself as maintainer.
1131
1132 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1133
1134 * doc/binutils.texi: Mention 'entry address' in the set-start and
1135 adjust-start options descriptions.
1136
1137 2020-05-05 Nick Clifton <nickc@redhat.com>
1138
1139 * dwarf.c (do_checks): New global variable.
1140 (display_formatted_table): Warn about an unexpected number of
1141 columns in the table, if checks are enabled. Do not complain
1142 about the lack of data following the number of entries in the
1143 table if the table is empty.
1144 (display_debug_lines_decoded): Only warn about an unexpected
1145 number of columns in a table if checks are enabled.
1146 * dwarf.h (do_checks): Add a prototype.
1147 * elfcomm.c (error): Remove weak attribute.
1148 (warn): Likewise.
1149 * readelf.c (do_checks): Delete.
1150 (warn): Delete.
1151 (process_section_headers): Only warn about empty sections if
1152 checks are enabled.
1153
1154 2020-05-04 Fangrui Song <maskray@google.com>
1155
1156 * objcopy.c (copy_object): Allow empty section.
1157 * testsuite/binutils-all/update-section.exp: Add test.
1158
1159 2020-05-04 Nick Clifton <nickc@redhat.com>
1160
1161 PR 25917
1162 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1163 supicious number of entries for DWARF-5 format directory and file
1164 name tables. Do not display file name table header if the table
1165 is empty. Do not allocate space for empty tables.
1166
1167 2020-05-04 Alan Modra <amodra@gmail.com>
1168
1169 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1170 section. Don't assume endian of host matches nds32 target. Free
1171 buffer.
1172
1173 2020-05-01 Alan Modra <amodra@gmail.com>
1174 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
1175
1176 * objdump.c (disassemble_bytes): Don't scan for zeros when
1177 disassembling zeros. Translate "resuming at file offset" message.
1178 Formatting. Replace some signed variables with unsigned.
1179
1180 2020-04-30 Alex Coplan <alex.coplan@arm.com>
1181
1182 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1183 disassembly.
1184 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1185
1186 2020-04-30 Nick Clifton <nickc@redhat.com>
1187
1188 * testsuite/lib/binutils-common.exp (check_pie_support): New
1189 proc.
1190
1191 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1192
1193 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1194 range_entries for the same offset.
1195
1196 2020-04-29 Nick Clifton <nickc@redhat.com>
1197
1198 * readelf.c (warn): New function - like elfcomm.c version but only
1199 produces output if warnings are enabled.
1200 (struct options): Add --lint and --enable-checks.
1201 (usage): Add entry for --lint.
1202 (parse_args): Handle -L. If checks are enabled but no dumps have
1203 been selected then enable all dumps.
1204 (process_section_headers): Replace long if-then-else sequence with
1205 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
1206 SHT_PROGBITS sections.
1207 (process_file): Do not complain if the file is an archive and lint
1208 mode has been enabled.
1209 * elfcomm.c (error): Make the function weak.
1210 (warn): Likewise.
1211 * NEWS: Mention the new feature.
1212 * doc/binutils.texi: Document the new feature.
1213 * dwarf.h (report_leb_status): Add file name and line number
1214 parameters. Include them in the diagnostic output.
1215 (READ_ULEB): Pass file and line number to report_leb_status.
1216 (READ_SLEB): Likewise.
1217 * dwarf.c (read_and_print_leb128): Pass file and line number to
1218 report_leb_status.
1219 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1220 * testsuite/binutils-all/zero-sec.s: New test source file.
1221 * testsuite/binutils-all/zero-sec.r: Expected output from new
1222 test.
1223
1224 2020-04-29 Nick Clifton <nickc@redhat.com>
1225
1226 * po/sr.po: Updated Serbian translation.
1227
1228 2020-04-26 Alan Modra <amodra@gmail.com>
1229
1230 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1231 read before dereferencing, and gracefully return. Remove
1232 gnu_hash_error variable. Free gnu hash arrays if number of
1233 syms found is zero.
1234
1235 2020-04-24 Alan Modra <amodra@gmail.com>
1236
1237 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1238 non-zero.
1239 (process_dynamic_section): Call get_num_dynamic_syms once rather
1240 than in segment loop. Break out of segment loop on a successful
1241 load of dynamic symbols. Formatting.
1242 (process_object): Return error status from process_dynamic_section.
1243
1244 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1245
1246 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1247 * elf.c (elfcore_grok_arc_v2): New function.
1248 (elfcore_grok_note): Call the new function to handle the corresponding
1249 note.
1250 (elfcore_write_arc_v2): New function.
1251 (elfcore_write_register_note): Call the new function to handle the
1252 corresponding pseudo-sections.
1253
1254 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1255
1256 PR ld/25861
1257 * readelf.c (is_none_reloc): Recognize
1258 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1259 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1260
1261 2020-04-22 Nick Clifton <nickc@redhat.com>
1262
1263 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1264
1265 2020-04-22 Alan Modra <amodra@gmail.com>
1266
1267 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1268 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1269 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1270 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1271 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1272 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1273 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1274 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1275 (section_headers_groups): Move to struct filedata. Update use
1276 throughout file.
1277
1278 2020-04-22 Alan Modra <amodra@gmail.com>
1279
1280 * readelf.c (struct dump_data): New, used..
1281 (cmdline): ..here, and..
1282 (struct filedata): ..here. Adjust all uses.
1283 (request_dump_bynumber, request_dump, parse_args): Pass in a
1284 struct dump_data* rather than Filedata*. Adjust callers.
1285 (main): Don't set cmdline.file_name.
1286
1287 2020-04-20 Alan Modra <amodra@gmail.com>
1288
1289 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1290 and nbuckets.
1291
1292 2020-04-20 Alan Modra <amodra@gmail.com>
1293
1294 * readelf.c (process_section_headers): Free dynamic symbols etc.
1295 earlier.
1296
1297 2020-04-20 Alan Modra <amodra@gmail.com>
1298
1299 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1300 on error without freeing.
1301 (process_dynamic_section): Don't recreate dynamic symbols from
1302 dynamic tag info when the dynamic symbols have already been
1303 read via section headers.
1304
1305 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1306
1307 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1308 conditional VDUP instructions are disassembled correctly.
1309 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1310 vdup-cond.d.
1311 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1312 that VDUP instructions (which are conditional in A32) can be
1313 disassembled in thumb mode.
1314 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1315 vdup-thumb.d.
1316
1317 2020-04-17 Alan Modra <amodra@gmail.com>
1318
1319 PR 25840
1320 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1321
1322 2020-04-16 Alan Modra <amodra@gmail.com>
1323
1324 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1325 --no-addresses description.
1326
1327 2020-04-15 Alan Modra <amodra@gmail.com>
1328
1329 * objdump.c (no_addresses): New static var.
1330 (usage): Print help for --no-addresses.
1331 (long_options): Add --no-addresses entry.
1332 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1333 (disassemble_bytes): Don't print current line address, or reloc
1334 address.
1335 * doc/binutils.texi: Document objdump --no-addresses.
1336
1337 2020-04-15 Alan Modra <amodra@gmail.com>
1338
1339 PR 25822
1340 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1341 reading buckets or chains fails.
1342
1343 2020-04-15 Alan Modra <amodra@gmail.com>
1344
1345 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1346 etc. after freeing.
1347
1348 2020-04-15 Alan Modra <amodra@gmail.com>
1349
1350 * readelf.c (get_group_flags): Translate text.
1351 (get_file_type, get_symbol_binding, get_symbol_type),
1352 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1353
1354 2020-04-15 Alan Modra <amodra@gmail.com>
1355
1356 PR 25821
1357 * readelf.c (get_num_dynamic_syms): Typo fix.
1358
1359 2020-04-14 Alan Modra <amodra@gmail.com>
1360
1361 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1362 possibility of overflow when checking number of conflicts.
1363
1364 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1365
1366 PR binutils/25707
1367 * readelf.c (nbuckets): New.
1368 (nchains): Likewise.
1369 (buckets): Likewise.
1370 (chains): Likewise.
1371 (ngnubuckets): Likewise.
1372 (gnubuckets): Likewise.
1373 (gnuchains): Likewise.
1374 (mipsxlat): Likewise.
1375 (ngnuchains): Likewise.
1376 (gnusymidx): Likewise.
1377 (VALID_SYMBOL_NAME): Likewise.
1378 (VALID_DYNAMIC_NAME): Use it.
1379 (get_dynamic_data): Moved before process_dynamic_section.
1380 (get_num_dynamic_syms): New function.
1381 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1382 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1383 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1384 table.
1385 (get_symbol_index_type): Don't print "bad section index" when
1386 there is no section header.
1387 (print_dynamic_symbol): Rewrite.
1388 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1389 symbol table.
1390
1391 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1392
1393 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1394 enable on *-*-solaris*.
1395
1396 2020-03-30 Nick Clifton <nickc@redhat.com>
1397
1398 PR binutils/25662
1399 * objcopy.c (copy_object): When copying PE format files set the
1400 timestamp field in the pe_data structure if the preserve_dates
1401 flag is set.
1402 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1403 --preserve-dates in place of the -p option, in order to make its
1404 effect more obvious.
1405
1406 2020-03-28 Alan Modra <amodra@gmail.com>
1407
1408 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1409 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1410
1411 2020-03-28 Alan Modra <amodra@gmail.com>
1412
1413 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1414 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1415 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1416 test. Pass "-p" to objcopy for the executable test.
1417
1418 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1419
1420 PR binutils/25662
1421 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1422 specify whether an object file or executable should be built and tested.
1423 Change test names to report whether an object file or executable is
1424 being tested.
1425 * testsuite/binutils-all/pr25662.ld: New test.
1426 * testsuite/binutils-all/pr25662.s: New test.
1427
1428 2020-03-27 Alan Modra <amodra@gmail.com>
1429
1430 * readelf.c (process_archive): Don't double free qualified_name.
1431 Don't break out of loop with "negative" archive_file_size, just
1432 set file offset to max.
1433
1434 2020-03-25 Alan Modra <amodra@gmail.com>
1435
1436 * readelf.c (process_archive): Prevent endless loop.
1437
1438 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1439
1440 PR binutils/25708
1441 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1442 with bfd_get_symbol_version_string.
1443 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1444 * objdump.c (objdump_print_symname): Likewise.
1445
1446 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1447
1448 PR binutils/25708
1449 * nm.c (SYM_NAME): Removed.
1450 (print_symname): Add a pointer to struct extended_symbol_info
1451 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1452 version.
1453 (print_symdef_entry): Pass NULL to print_symname.
1454 (print_symbol_info_bsd): Update call to print_symname.
1455 (print_symbol_info_sysv): Likewise.
1456 (print_symbol_info_posix): Likewise.
1457
1458 2020-03-24 Alan Modra <amodra@gmail.com>
1459
1460 * readelf.c (process_mips_specific): Free iconf on error path.
1461
1462 2020-03-23 Nick Clifton <nickc@redhat.com>
1463
1464 PR 25714
1465 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1466 * write_stabs_in_sections_debugging_info: Likewise.
1467 * stab_enum_type: Likewise.
1468 * stab_modify_type: Likewise.
1469 * stab_struct_field: Likewise.
1470 * stab_end_struct_type: Likewise.
1471 * stab_start_class_type: Likewise.
1472 * stab_class_static_member: Likewise.
1473 * stab_class_baseclass: Likewise.
1474 * stab_class_start_method: Likewise.
1475 * stab_class_method_var: Likewise.
1476 * stab_class_end_method: Likewise.
1477 * stab_end_class_type: Likewise.
1478 * stab_typedef_type: Likewise.
1479 * stab_start_function: Likewise.
1480 * stab_end_block: Likewise.
1481 * stab_lineno: Likewise.
1482
1483 2020-03-20 Nick Clifton <nickc@redhat.com>
1484
1485 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1486 (process_section_headers): Check the return value from
1487 get_compression_header.
1488 (dump_section_as_strings): Likewise.
1489 (dump_section_as_bytes): Likewise.
1490 (load_specific_debug_section): Likewise.
1491
1492 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1493
1494 * ar.c (main): Update bfd_plugin_set_program_name call.
1495 * nm.c (main): Likewise.
1496
1497 2020-03-19 Nick Clifton <nickc@redhat.com>
1498
1499 PR 25676
1500 * testsuite/binutils-all/dw4.s: New test source file.
1501 * testsuite/binutils-all/nm.exp: Run the new test.
1502
1503 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1504
1505 * readelf.c (process_symbol_table): Use unsigned long for si.
1506
1507 2020-03-19 Alan Modra <amodra@gmail.com>
1508
1509 * elfcomm.c: Don't include bfd.h or bucomm.h.
1510 (program_name): Declare.
1511 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1512 and substitute FALSE and TRUE.
1513 (setup_archive, setup_nested_archive): Likewise.
1514 * elfcomm.h: Likewise.
1515
1516 2020-03-19 Alan Modra <amodra@gmail.com>
1517
1518 * readelf.c (process_archive): Always return via path freeing
1519 memory. Formatting.
1520
1521 2020-03-19 Alan Modra <amodra@gmail.com>
1522
1523 * readelf.c (process_netbsd_elf_note): Validate descsz before
1524 accessing descdata. Formatting.
1525
1526 2020-03-19 Alan Modra <amodra@gmail.com>
1527
1528 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1529 * elfcomm.h (setup_archive): Update prototype.
1530
1531 2020-03-16 Alan Modra <amodra@gmail.com>
1532
1533 * readelf.c (get_symbols): New function.
1534 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1535 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1536
1537 2020-03-16 Alan Modra <amodra@gmail.com>
1538
1539 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1540 Detect shift overflows and check that terminating byte is found.
1541 Print an error on a bad uleb128.
1542
1543 2020-03-14 Alan Modra <amodra@gmail.com>
1544
1545 * readelf.c (process_file): Clean ba_cache.
1546
1547 2020-03-14 Alan Modra <amodra@gmail.com>
1548
1549 * elfcomm.h (setup_archive): Update prototype.
1550 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1551 check longnames_size.
1552 (setup_nested_archive): Get file size and pass to setup_archive.
1553 * elfedit.c (process_archive): Likewise.
1554 * readelf.c (process_archive): Pass filedata->file_size to
1555 setup_archive.
1556
1557 2020-03-14 Alan Modra <amodra@gmail.com>
1558
1559 * readelf.c (dump_section_as_strings): Free memory on error exit.
1560 (dump_section_as_bytes, process_notes_at): Likewise.
1561 (get_build_id): Free enote.
1562
1563 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1564
1565 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1566 NT_NETBSDCORE_LWPSTATUS notes.
1567
1568 2020-03-13 Alan Modra <amodra@gmail.com>
1569
1570 * elfcomm.c (get_archive_member_name): Always return malloc'd
1571 string or NULL.
1572 * elfedit.c (process_archive): Tidy memory on all return paths.
1573 * readelf.c (process_archive): Likewise.
1574 (process_symbol_table): Likewise.
1575 (ba_cache): New, replacing ..
1576 (get_symbol_for_build_attribute): ..static vars here. Free
1577 strtab and symtab before loading new ones. Reject symtab without
1578 valid strtab in loop, breaking out of loop on valid symtab.
1579 (process_file): Free ba_cache symtab and strtab here, resetting
1580 ba_cache.
1581
1582 2020-03-12 Alan Modra <amodra@gmail.com>
1583
1584 * readelf.c (process_section_headers): Don't just set
1585 filedata->section_headers NULL, free it first. Similarly for
1586 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1587 symtab_shndx_list. Zero associated counts too.
1588 (process_object): Free symtab_shndx_list.
1589 (process_file): Free various allocated filedata tables.
1590
1591 2020-03-11 Nick Clifton <nickc@redhat.com>
1592
1593 PR 25611
1594 PR 25614
1595 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1596 li_segment_size fields.
1597 * dwarf.c (read_debug_line_header): Record the address size and
1598 segment selector size values (if present) in the lineinfo
1599 structure.
1600 (display_formatted_table): Warn if the format count is empty but
1601 the table itself is not empty.
1602 Display the format count and entry count at the start of the table
1603 dump.
1604 (display_debug_lines_raw): Display the address size and segement
1605 selector size fields, if present.
1606 * testsuite/binutils-all/dw5.W: Update expected output.
1607
1608 2020-03-11 Alan Modra <amodra@gmail.com>
1609
1610 PR 25651
1611 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1612 pad_to_set on second block of code dealing with padding.
1613 Replace "c" with "num_sec" and don't recalculate number of
1614 sections on second block. Size arrays using sizeof (element)
1615 rather than sizeof (element type).
1616
1617 2020-03-10 Alan Modra <amodra@gmail.com>
1618
1619 * objdump.c (disassemble_section): Don't call qsort unless
1620 sym count is at least two.
1621 (disassemble_data): Don't call memcpy with NULL src.
1622
1623 2020-03-09 Alan Modra <amodra@gmail.com>
1624
1625 PR 25645
1626 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1627 to get_data rather than multiplying.
1628 (dump_ia64_vms_dynamic_relocs): Likewise.
1629 (process_version_sections): Correct order of size and nmemb args
1630 in get_data call.
1631 (process_mips_specific): Likewise.
1632
1633 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1634
1635 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1636 "memory checkers" in comments.
1637
1638 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1639
1640 PR 25491
1641 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1642 * doc/Makefile.in: Re-generate.
1643
1644 2020-03-06 Nick Clifton <nickc@redhat.com>
1645
1646 * objcopy.c (check_new_section_flags): New function. Reject the
1647 SEC_COFF_SHARED flag if the target is not a COFF binary.
1648 (copy_object): Call check_new_section_flags.
1649 (setup_section): Likewise.
1650 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1651 flag cannot be applied to ELF binaries.
1652
1653 2020-03-06 Alan Modra <amodra@gmail.com>
1654
1655 PR 25637
1656 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1657
1658 2020-03-05 Alan Modra <amodra@gmail.com>
1659
1660 PR 25629
1661 * objcopy.c (filter_symbols): Don't segfault on NULL
1662 prefix_symbols_string.
1663
1664 2020-03-04 Christian Eggers <ceggers@gmx.de>
1665
1666 * objcopy.c (copy_object): Convert from bytes to octets for
1667 --gap-fill and --pad-to.
1668
1669 2020-03-03 Nick Clifton <nickc@redhat.com>
1670
1671 PR 25625
1672 * prdbg.c (pr_tag_type): Remove call to abort.
1673
1674 2020-03-02 Aaron Merey <amerey@redhat.com>
1675
1676 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1677 selection.
1678
1679 2020-03-02 Nick Clifton <nickc@redhat.com>
1680
1681 PR 25543
1682 * readelf.c (dump_section_as_strings): Display new-line characters
1683 as \n and then insert a line break.
1684 * testsuite/binutils-all/pr25543.s: New test.
1685 * testsuite/binutils-all/pr25543.d: Test driver.
1686 * testsuite/binutils-all/readelf.exp: Run the new test.
1687
1688 2020-02-27 Nick Clifton <nickc@redhat.com>
1689
1690 PR 25526
1691 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1692 get_data is unable to load the string table.
1693
1694 2020-02-26 Alan Modra <amodra@gmail.com>
1695
1696 * elfedit.c: Indent labels correctly.
1697 * readelf.c: Likewise.
1698 * resres.c: Likewise.
1699
1700 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1701
1702 PR binutils/25584
1703 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1704 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1705
1706 2020-02-24 Nick Clifton <nickc@redhat.com>
1707
1708 PR 25499
1709 * doc/binutils.texi (objdump): Fix typo in description of
1710 objdump's -g option.
1711
1712 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1713
1714 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1715 is changed.
1716
1717 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1718
1719 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1720
1721 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * configure: Regenerate.
1724
1725 2020-02-10 Fangrui Song <maskray@google.com>
1726
1727 * objcopy.c (parse_flags): Handle "exclude".
1728 * doc/binutils.texi: Document the support.
1729
1730 2020-02-10 Aaron Merey <amerey@redhat.com>
1731
1732 * binutils/testsuite/binutils-all/debuginfod.exp:
1733 Replace set ::env with setenv.
1734 Start server before setting environment variable.
1735 Specify tmpdir as the location of the server's
1736 database.
1737 Check additional server metrics at start-up.
1738
1739 2020-02-07 Nick Clifton <nickc@redhat.com>
1740
1741 * README-how-to-make-a-release: Add note about updating the
1742 GAS/NEWS URL in the next release.
1743
1744 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1745
1746 PR 25469
1747 * readelf.c (get_machine_flags): Add support for Z80N machine
1748 number.
1749
1750 2020-02-07 Nick Clifton <nickc@redhat.com>
1751
1752 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1753 of the truncated file name.
1754
1755 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1756
1757 * objdump.c (print_jump_visualisation): New function.
1758 (disassemble_bytes): Call new function.
1759
1760 2020-02-06 Alan Modra <amodra@gmail.com>
1761
1762 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1763 TCL procedure.
1764 (supports_gnu_osabi): New procedure.
1765 (is_generic): New, from ld-lib.exp.
1766 (supports_gnu_unique): Use the above.
1767
1768 2020-02-04 Alan Modra <amodra@gmail.com>
1769
1770 * Makefile.am (CFILES): Add od-elf32_avr.c.
1771 * Makefile.in: Regenerate.
1772 * po/POTFILES.in: Regenerate.
1773
1774 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1775
1776 * readelf.c (dump_relocations, dump_relocations)
1777 (decode_arm_unwind_bytecode, process_dynamic_section)
1778 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1779 error message.
1780
1781 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1782
1783 * coffdump.c (program_name): Drop redundant definition.
1784 * srconv.c (program_name): Likewise
1785 * sysdump.c (program_name): Likewise
1786
1787 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1788
1789 PR gas/25380
1790 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1791 same file with different section pointers.
1792
1793 2020-02-01 Nick Clifton <nickc@redhat.com>
1794
1795 * README-how-to-make-a-release: Update with more details on the
1796 release making process.
1797
1798 2020-01-31 Nick Clifton <nickc@redhat.com>
1799
1800 * po/sv.po: Updated Swedish translation.
1801
1802 2020-01-28 Nick Clifton <nickc@redhat.com>
1803
1804 * readelf.c (get_build_id): Simplify warning message about corrupt
1805 notes encountered whilst scanning for the build-id.
1806
1807 2020-01-27 Roland McGrath <mcgrathr@google.com>
1808
1809 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1810 for overlapping ranges so that (A == B) == (B == A) holds.
1811
1812 2020-01-27 Alan Modra <amodra@gmail.com>
1813
1814 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1815 case statement with switch statement.
1816
1817 2020-01-24 Nick Clifton <nickc@redhat.com>
1818
1819 * readelf.c (get_build_id): Fix warning messages about corrupt
1820 notes.
1821
1822 2020-01-23 Nick Clifton <nickc@redhat.com>
1823
1824 * po/fr.po: Updated French translation.
1825
1826 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1827
1828 PR 25417
1829 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1830
1831 2020-01-20 Nick Clifton <nickc@redhat.com>
1832
1833 * po/pt.po: Updated Portuguese translation.
1834 * po/uk.po: Updated Ukranian translation.
1835
1836 2020-01-18 Nick Clifton <nickc@redhat.com>
1837
1838 * README-how-to-make-a-release: Update notes on how to cut a
1839 branch for a release.
1840
1841 2020-01-18 Nick Clifton <nickc@redhat.com>
1842
1843 * configure: Regenerate.
1844 * po/binutils.pot: Regenerate.
1845
1846 2020-01-18 Nick Clifton <nickc@redhat.com>
1847
1848 Binutils 2.34 branch created.
1849
1850 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1851
1852 * objdump.c (jump_info_visualize_address): Discard jumps that are
1853 no longer needed.
1854 (disassemble_bytes): Only compute the maximum level if jumps were
1855 detected.
1856
1857 2020-01-13 Nick Clifton <nickc@redhat.com>
1858
1859 * objdump.c (disassemble_bytes): Remove C99-ism.
1860 * testsuite/binutils-all/debuginfod.exp: New tests.
1861
1862 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1863
1864 * objdump.c (visualize_jumps, color_output, extended_color_output)
1865 (detected_jumps): New variables.
1866 (usage): Add the new jump visualization options.
1867 (option_values): Add new option value.
1868 (long_options): Add the new option.
1869 (jump_info_new, jump_info_free): New functions.
1870 (jump_info_min_address, jump_info_max_address): Likewise.
1871 (jump_info_end_address, jump_info_is_start_address): Likewise.
1872 (jump_info_is_end_address, jump_info_size): Likewise.
1873 (jump_info_unlink, jump_info_insert): Likewise.
1874 (jump_info_add_front, jump_info_move_linked): Likewise.
1875 (jump_info_intersect, jump_info_merge): Likewise.
1876 (jump_info_sort, jump_info_visualize_address): Likewise.
1877 (disassemble_jumps): New function - used to locate jumps.
1878 (disassemble_bytes): Add ascii art generation.
1879 (disassemble_section): Add scan to locate jumps.
1880 (main): Parse the new visualization option.
1881 * doc/binutils.texi: Document the new feature.
1882 * NEWS: Mention the new feature.
1883
1884 2020-01-13 Alan Modra <amodra@gmail.com>
1885
1886 PR 25360
1887 PR 25361
1888 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1889 fde_fc col_type and col_offset.
1890 * readelf.c (apply_relocations): Move symsec check earlier.
1891 (free_debug_section): Free reloc_info.
1892 (process_notes_at): Free pnotes on error path.
1893 (process_object): Free dump_sects here..
1894 (process_archive): ..not here.
1895
1896 2020-01-13 Alan Modra <amodra@gmail.com>
1897
1898 PR 25362
1899 * nm.c (display_rel_file): Free dyn_syms.
1900
1901 2020-01-09 Nick Clifton <nickc@redhat.com>
1902
1903 PR 25220
1904 * objcopy.c (empty_name): New variable.
1905 (need_sym_before): Prevent an attempt to free a static variable.
1906 (filter_symbols): Avoid strcmp test by checking for pointer
1907 equality.
1908
1909 2020-01-09 Nick Clifton <nickc@redhat.com>
1910
1911 * po/zh_TW.po: Updated Traditional Chinese translation.
1912
1913 2020-01-09 Aaron Merey <amerey@redhat.com>
1914
1915 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1916 * Makefile.in: Regenerate.
1917 * NEWS: Update.
1918 * config.in: Regenerate.
1919 * configure: Regenerate.
1920 * configure.ac: Call AC_DEBUGINFOD.
1921 * doc/Makefile.in: Regenerate.
1922 * doc/binutils.texi: Add section on using binutils
1923 with debuginfod.
1924 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1925 Query debuginfod servers for the target debug file.
1926 (load_separate_debug_info): Call
1927 debuginfod_fetch_separate_debug_info if configured with
1928 debuginfod.
1929 (load_separate_debug_files): Add file argument to
1930 load_separate_debug_info calls.
1931 * dwarf.h (get_build_id): Add declaration.
1932 * objdump.c (get_build_id): New function. Get build-id of file.
1933 * readelf.c (get_build_id): Likewise.
1934 * testsuite/binutils-all/debuginfod.exp: New tests.
1935 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1936 section.
1937
1938 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1939
1940 * readelf.c: Add support for new Z*) relocations and machine
1941 types.
1942
1943 2020-01-01 Alan Modra <amodra@gmail.com>
1944
1945 Update year range in copyright notice of all files.
1946
1947 For older changes see ChangeLog-2019
1948 \f
1949 Copyright (C) 2020 Free Software Foundation, Inc.
1950
1951 Copying and distribution of this file, with or without modification,
1952 are permitted in any medium without royalty provided the copyright
1953 notice and this notice are preserved.
1954
1955 Local Variables:
1956 mode: change-log
1957 left-margin: 8
1958 fill-column: 74
1959 version-control: never
1960 End:
This page took 0.069315 seconds and 5 git commands to generate.