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