]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
[gdb/build] Fix Wmaybe-uninitialized in gdb_optional.h
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
d70f978b
L
12020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR binutils/26301
4 * configure: Regenerated.
5
8fab9282
AM
62020-07-27 Alan Modra <amodra@gmail.com>
7
8 * objdump.c (dump_section): Don't return without calling
9 process_section_p.
10
608d61c2
L
112020-07-27 H.J. Lu <hongjiu.lu@intel.com>
12
13 * doc/binutils.texi: Replace preceeded with preceded.
14
3abf9758
MR
152020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
16
17 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
18 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
19 procedures.
20 (has_newabi): Remove variable.
21 (has_abi, abi_asflags, abi_ldflags): New associative array
22 variables.
23 (irixemul): New variable.
24 Replace `run_dump_test' calls where applicable throughout with
25 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
26 as appropriate. Use `noarch' for tests that require their own
27 architecture setting.
28 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
29 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
30 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
31 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
32 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
33 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
34 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
35 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
36 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
37 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
38 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
39 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
40 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
41 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
42 GAS flags.
43 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
44 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
45 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
46 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
47 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
48 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
49 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
50
f6720b1c
AM
512020-07-24 Aaron Merey <amerey@redhat.com>
52
53 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
54 * Makefile.in: Rebuild.
55 * configure: Rebuild.
56 * doc/Makefile.in: Rebuild.
57
bf772a1e
NC
582020-07-24 Nick Clifton <nickc@redhat.com>
59
60 * README-how-to-make-a-release: Various small updates whilst
61 creating the 2.35 release.
62
0b884151
NA
632020-07-22 Nick Alcock <nick.alcock@oracle.com>
64
65 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
66 option.
67
3dd6b890
NA
682020-07-22 Nick Alcock <nick.alcock@oracle.com>
69
70 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
71 (dump_ctf): Likewise.
72
8b37e7b6
NA
732020-07-22 Nick Alcock <nick.alcock@oracle.com>
74
75 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
76 * readelf.c (dump_ctf_archive_member): Likewise.
77
df16e041
NC
782020-07-22 Nick Clifton <nickc@redhat.com>
79
80 * readelf.c (parse_args): Silence potential warnings about a
81 memory resource leak when allocating space for ctf option values.
82 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
83 variable.
84
84dc5f0b
NC
852020-07-21 Nick Clifton <nickc@redhat.com>
86
87 * po/sv.po: Updated Swedish translation.
88
570b0ed6
CZ
892020-07-14 Claudiu Zissulescu <claziss@gmail.com>
90
91 * testsuite/binutils-all/arc/double_regs.s: New test.
92 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
93
0a5c31d1
NC
942020-07-13 Nick Clifton <nickc@redhat.com>
95
96 * po/fr.po: Updated French translation.
97
7a34d0ea
AM
982020-07-13 Alan Modra <amodra@gmail.com>
99
100 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
101 optional machine-os arg.
102
a308b89d
L
1032020-07-11 H.J. Lu <hongjiu.lu@intel.com>
104
105 * readelf.c (decode_x86_feature_2): Handle
106 GNU_PROPERTY_X86_FEATURE_2_TMM.
107
af2b3186
TV
1082020-07-10 Tom de Vries <tdevries@suse.de>
109
110 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
111 information in the end_sequence row.
112 * testsuite/binutils-all/dw5.W: Update.
113 * testsuite/binutils-all/objdump.WL: Update.
114
fe49679d
AM
1152020-07-09 Alan Modra <amodra@gmail.com>
116
117 * dlltool.c: Remove powerpc PE support and comments.
118 * configure.ac: Remove powerpc PE dlltool config.
119 * configure: Regenerate.
120
d90171de
NC
1212020-07-09 Nick Clifton <nickc@redhat.com>
122
123 * rclex.c: Add OWNERDRAW keyword.
124 * rcparse.y: Add OWNERDRAW token.
125 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
126 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
127 BITMAP flags.
128 * windres.c (extended_menuitems): Likewise.
129 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
130
e3fdc001
AM
1312020-07-09 Alan Modra <amodra@gmail.com>
132
133 * readelf (slurp_hppa_unwind_table): Set table_len before use
134 in relocation sanity checks.
135
5a2296ac
AM
1362020-07-07 Alan Modra <amodra@gmail.com>
137
138 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
139 * testsuite/binutils-all/nm.exp: Likewise.
140 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
141 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
142 * testsuite/binutils-all/set-section-alignment.d: Likewise.
143 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
144
efd0ed58
AM
1452020-07-07 Alan Modra <amodra@gmail.com>
146
147 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
148 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
149
17550be7
NC
1502020-07-06 Nick Clifton <nickc@redhat.com>
151
152 * po/bg.po: Updated Bulgarian translation.
153 * po/pt.po: Updated Portuguese translation.
154 * po/uk.po: Updated Ukranian translation.
155
ddb43bab
AM
1562020-07-06 Alan Modra <amodra@gmail.com>
157
158 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
159 find string length.
160
b19d852d
NC
1612020-07-04 Nick Clifton <nickc@redhat.com>
162
163 * configure: Regenerate.
164 * po/binutils.pot: Regenerate.
165
b115b9fd
NC
1662020-07-04 Nick Clifton <nickc@redhat.com>
167
168 Binutils 2.35 branch created.
169
0942c7ab
NC
1702020-07-02 Nick Clifton <nickc@redhat.com>
171
172 PR 26028
173 * readelf.c (print_symbol): Handle truncation of symbol names.
174 (options): Add -T/--silent-truncation option.
175 (parse_args): Handle the option.
176 (print_dynamic_symbol): Correct calculation of width available to
177 display symbol name.
178 * doc/binutils.texi: Document the -T option to readelf.
179 * NEWS: Mention the new feature.
180
bbd19b19
L
1812020-06-30 H.J. Lu <hongjiu.lu@intel.com>
182
183 * NEWS: Mention x86 NaCl target support removal.
184 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
185 x86 NaCl target support.
186 * testsuite/binutils-all/elfedit-1.d: Likewise.
187 * testsuite/binutils-all/i386/i386.exp: Likewise.
188 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
189 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
190 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
191 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
192 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
193 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
194 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
195 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
196 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
197 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
198 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
199 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
200
5568cc9e
NC
2012020-06-30 Nick Clifton <nickc@redhat.com>
202
203 * dwarf.c (read_and_display_attr_value): Support
204 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
205 DW_AT_comp_dir.
206
d74b88ed
AM
2072020-06-30 Alan Modra <amodra@gmail.com>
208
209 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
210 xfail for nds32.
211
9f27c364
HPN
2122020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
213
214 * dwarf.c (display_debug_str_offsets): Rename local variable
215 index to idx. Move to top of function.
216
279edac5
AM
2172020-06-29 Alan Modra <amodra@gmail.com>
218
219 * dwarf.c: Use C style comments.
220 * resrc.c: Likewise.
221
cfc16775
AM
2222020-06-27 Alan Modra <amodra@gmail.com>
223
224 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
225 after freeing.
226 (release_archive): Set fields of arch to NULL after freeing.
227
2f6ecaed
NA
2282020-06-26 Nick Alcock <nick.alcock@oracle.com>
229
230 * readelf.c (dump_section_as_ctf): Support .ctf archives using
231 ctf_arc_bufopen. Automatically load the .ctf member of such
232 archives as the parent of all other members, unless specifically
233 overridden via --ctf-parent. Split out dumping code into...
234 (dump_ctf_archive_member): ... here, as in objdump, and call
235 it once per archive member.
236 (dump_ctf_indent_lines): Code style fix.
237
094e34f2
NA
2382020-06-26 Nick Alcock <nick.alcock@oracle.com>
239
240 * configure.ac [--enable-libctf]: New, default yes.
241 Set ENABLE_LIBCTF accordingly.
242 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
243 * configure: Regenerate.
244 * config.in: Regenerate.
245 * Makefile.in: Regenerate.
246 * aclocal.m4: Regenerate.
247 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
248 (option_values): Likewise.
249 (long_options): Likewise.
250 (main): Likewise.
251 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
252 (make_ctfsect): Likewise.
253 (dump_ctf_archive_member): Likewise.
254 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
255 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
256 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
257 (usage): Likewise.
258 (process_section_contents): Likewise.
259 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
260 (dump_ctf_indent_lines): Likewise.
261 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
262
2a1bb84c
JB
2632020-06-26 Jan Beulich <jbeulich@suse.com>
264
265 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
266 redundant text from x86 specific part of -M section.
267
85f7484a
PB
2682020-06-26 Pat Bernardi <bernardi@adacore.com>
269
270 * readelf.c (display_m68k_gnu_attribute): New function.
271 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
272
d0dded5b
L
2732020-06-23 H.J. Lu <hongjiu.lu@intel.com>
274
275 PR binutils/26160
276 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
277 * testsuite/binutils-all/pr26160.r: Likewise.
278 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
279
39f381cb
NC
2802020-06-23 Nick Clifton <nickc@redhat.com>
281
282 PR 26160
283 * dwarf.c (fetch_indexed_string): Detect and handle old style
284 .debug_str_offset tables.
285 (display_debug_str_offsets): Likewise. Also add support for
286 .debug_str_offsets.dwo sections.
287
80fda85c
L
2882020-06-23 H.J. Lu <hongjiu.lu@intel.com>
289
290 PR binutils/26112
291 * testsuite/binutils-all/pr26112.o.bz2: New file.
292 * testsuite/binutils-all/pr26112.r: Likewise.
293 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
294
d081ffff
AM
2952020-06-23 Alan Modra <amodra@gmail.com>
296
297 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
298 remote_file delete command.
299
e4b7104b
NC
3002020-06-22 Nick Clifton <nickc@redhat.com>
301
302 PR 26112
303 * dwarf.c (display_debug_str_offsets): Add code to display the
304 contents of the .debug_str_offsets section.
305 (display_debug_macro): Add support for DW_MACRO_define_strx and
306 DW_MACRO_undef_strx.
307
d768f160
SJ
3082020-06-22 Saagar Jha <saagar@saagarjha.com>
309
310 * od-macho.c: Dump linkedit data for new load commands.
311
5fd104ad
AM
3122020-06-19 Alan Modra <amodra@gmail.com>
313
314 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
315 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
316 (run_dump_test): Use check_relro_support to decide whether to pass
317 extra ld option "-z norelro".
318
fd17d1e6
AM
3192020-06-11 Alan Modra <amodra@gmail.com>
320
321 * readelf.c (process_mips_specific): Don't alloc memory for
322 Elf_Internal_Options.
323
d0c4e780
AM
3242020-06-11 Alan Modra <amodra@gmail.com>
325
326 * readelf.c (process_mips_specific): Assert size of internal
327 types match size of external types, and simplify allocation of
328 internal buffer. Catch possible integer overflow when sanity
329 checking option size. Don't assume options are a regular array.
330 Sanity check reginfo option against option size. Use PRI macros
331 when printing.
332
25065fcd
RH
3332020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
334
335 PR 26082
336 * mclex.c (yylex): Reject lines that reach end-of-file without a
337 terminating newline character.
338
b37a7714
NC
3392020-06-08 Nick Clifton <nickc@redhat.com>
340
341 PR 26093
342 * doc/binutils.texi (strings): Fix typo.
343
c4b2f181
NC
3442020-06-08 Nick Clifton <nickc@redhat.com>
345
346 PR 26086
347 * dwarf.c (process_debug_info): Check that there is space in the
348 debug_information array before filling in an entry.
349
1424c35d
AM
3502020-06-06 Alan Modra <amodra@gmail.com>
351
352 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
353
8affa48a
JA
3542020-06-05 Joel Anderson <joelanderson333@gmail.com>
355
356 PR 26082
357 * mclex.c (yylex): Add test for an empty input stream.
358
8eca5c7d
SC
3592020-06-04 Stephen Casner <casner@acm.org>
360
361 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
362 for test using section pseudo-ops compatible with pdp11.
363 * testsuite/binutils-all/objcopy.exp: Select alternate source.
364
b3db6d07
JM
3652020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
366
367 * objdump.c (disassemble_data): Set disasm_info.endian_code to
368 disasm_info.endian after the latter is initialized to the
369 endianness reported by BFD.
370
0a4f37af
AM
3712020-06-04 Alan Modra <amodra@gmail.com>
372
373 * testsuite/binutils-all/i386/i386.exp: Remove global directive
374 outside proc body.
375 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
376 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
377
913e0fd4
JA
3782020-06-03 Joel Anderson <joelanderson333@gmail.com>
379
380 * windmc.h (struct mc_node): Add id_typecast field.
381 * mcparse.y (message): Initialise the id_typecast field.
382 * windmc.c (write_dbg): Use the id_typecast field as a parameter
383 when calling write_dbg_define.
384 (write_header): Likewise.
385
4a322448
AM
3862020-06-03 Alan Modra <amodra@gmail.com>
387
388 PR 26069
389 * objcopy.c (copy_relocations_in_section): Free relpp on error.
390 Don't accidentally free isection->orelocation.
391
0bee4d1c
AM
3922020-06-02 Alan Modra <amodra@gmail.com>
393
394 * testsuite/binutils-all/ar.exp (obj): Set up object file name
395 extension. Use throughout. Don't completely exclude non-ELF
396 alpha targets. Run long_filenames test for tic30. Exclude thin
397 archive tests for aix, ecoff and vms.
398 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
399 extension. Use throughout. Don't exclude non-ELF alpha targets
400 from "bintest.a".
401
ab7ad287
MF
4022020-05-28 Max Filippov <jcmvbkbc@gmail.com>
403
404 * MAINTAINERS (Xtensa): Add myself as maintainer.
405
3f3c3608
AM
4062020-05-23 Alan Modra <amodra@gmail.com>
407
408 * testsuite/binutils-all/ar.exp (many_files): New test.
409
9db70fc3
AM
4102020-05-21 Alan Modra <amodra@gmail.com>
411
412 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
413 * dlltool.c: Likewise.
414 * elfcomm.c: Likewise.
415 * rddbg.c: Likewise.
416 * readelf.c: Likewise.
417 * stabs.c: Likewise.
418 * windmc.c: Likewise.
419 * windres.c: Likewise.
420 * wrstabs.c: Likewise.
421
c31ab5a0
AM
4222020-05-21 Alan Modra <amodra@gmail.com>
423
424 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
425 access.
426
8f595e9b
NC
4272020-05-20 Nelson Chu <nelson.chu@sifive.com>
428
429 * dwarf.c: Updated since DECLARE_CSR is changed.
430
8ac10c5b
L
4312020-05-19 H.J. Lu <hjl.tools@gmail.com>
432
433 PR binutils/25809
434 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
435 segment doesn't match the .dynamic section and checks are
436 enabled.
437 (struct filedata): Add dynamic_symtab_section and
438 dynamic_strtab_section fields.
439 (process_section_headers): Set dynamic_symtab_section to the
440 .dynsym section. Set dynamic_strtab_section to the .dynstr
441 section.
442 (process_dynamic_section): Warn if the .dynsym section doesn't
443 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
444 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
445
c177f377
AM
4462020-05-19 Alan Modra <amodra@gmail.com>
447
448 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
449 (replace_members): Use bfd_get_filename rather than accessing
450 bfd->filename directly.
451 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
452 * binemul.c (do_ar_emul_append): Likewise.
453 * coffgrok.c (coff_grok): Likewise.
454
83d27139
SH
4552020-05-18 Stafford Horne <shorne@gmail.com>
456
457 * MAINTAINERS (OR1K): Add myself as maintainer.
458
d11a9fab
AB
4592020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 * doc/binutils.texi: Mention 'entry address' in the set-start and
462 adjust-start options descriptions.
463
546cb2d8
NC
4642020-05-05 Nick Clifton <nickc@redhat.com>
465
466 * dwarf.c (do_checks): New global variable.
467 (display_formatted_table): Warn about an unexpected number of
468 columns in the table, if checks are enabled. Do not complain
469 about the lack of data following the number of entries in the
470 table if the table is empty.
471 (display_debug_lines_decoded): Only warn about an unexpected
472 number of columns in a table if checks are enabled.
473 * dwarf.h (do_checks): Add a prototype.
474 * elfcomm.c (error): Remove weak attribute.
475 (warn): Likewise.
476 * readelf.c (do_checks): Delete.
477 (warn): Delete.
478 (process_section_headers): Only warn about empty sections if
479 checks are enabled.
480
e052e2ba
FS
4812020-05-04 Fangrui Song <maskray@google.com>
482
483 * objcopy.c (copy_object): Allow empty section.
484 * testsuite/binutils-all/update-section.exp: Add test.
485
070b775f
NC
4862020-05-04 Nick Clifton <nickc@redhat.com>
487
488 PR 25917
489 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
490 supicious number of entries for DWARF-5 format directory and file
491 name tables. Do not display file name table header if the table
492 is empty. Do not allocate space for empty tables.
493
9c7b8e9b
AM
4942020-05-04 Alan Modra <amodra@gmail.com>
495
496 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
497 section. Don't assume endian of host matches nds32 target. Free
498 buffer.
499
60832332
AM
5002020-05-01 Alan Modra <amodra@gmail.com>
501 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
502
503 * objdump.c (disassemble_bytes): Don't scan for zeros when
504 disassembling zeros. Translate "resuming at file offset" message.
505 Formatting. Replace some signed variables with unsigned.
506
09c1e68a
AC
5072020-04-30 Alex Coplan <alex.coplan@arm.com>
508
509 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
510 disassembly.
511 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
512
8a8a1171
NC
5132020-04-30 Nick Clifton <nickc@redhat.com>
514
515 * testsuite/lib/binutils-common.exp (check_pie_support): New
516 proc.
517
cb4c35cf
AB
5182020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
519
520 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
521 range_entries for the same offset.
522
1b513401
NC
5232020-04-29 Nick Clifton <nickc@redhat.com>
524
525 * readelf.c (warn): New function - like elfcomm.c version but only
526 produces output if warnings are enabled.
527 (struct options): Add --lint and --enable-checks.
528 (usage): Add entry for --lint.
529 (parse_args): Handle -L. If checks are enabled but no dumps have
530 been selected then enable all dumps.
531 (process_section_headers): Replace long if-then-else sequence with
532 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
533 SHT_PROGBITS sections.
534 (process_file): Do not complain if the file is an archive and lint
535 mode has been enabled.
536 * elfcomm.c (error): Make the function weak.
537 (warn): Likewise.
538 * NEWS: Mention the new feature.
539 * doc/binutils.texi: Document the new feature.
540 * dwarf.h (report_leb_status): Add file name and line number
541 parameters. Include them in the diagnostic output.
542 (READ_ULEB): Pass file and line number to report_leb_status.
543 (READ_SLEB): Likewise.
544 * dwarf.c (read_and_print_leb128): Pass file and line number to
545 report_leb_status.
546 * testsuite/binutils-all/readelf.exp: Add test of new feature.
547 * testsuite/binutils-all/zero-sec.s: New test source file.
548 * testsuite/binutils-all/zero-sec.r: Expected output from new
549 test.
550
c2e71e57
NC
5512020-04-29 Nick Clifton <nickc@redhat.com>
552
553 * po/sr.po: Updated Serbian translation.
554
90837ea7
AM
5552020-04-26 Alan Modra <amodra@gmail.com>
556
557 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
558 read before dereferencing, and gracefully return. Remove
559 gnu_hash_error variable. Free gnu hash arrays if number of
560 syms found is zero.
561
2482f306
AM
5622020-04-24 Alan Modra <amodra@gmail.com>
563
564 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
565 non-zero.
566 (process_dynamic_section): Call get_num_dynamic_syms once rather
567 than in segment loop. Break out of segment loop on a successful
568 load of dynamic symbols. Formatting.
569 (process_object): Return error status from process_dynamic_section.
570
27456742
AK
5712020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
572
573 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
574 * elf.c (elfcore_grok_arc_v2): New function.
575 (elfcore_grok_note): Call the new function to handle the corresponding
576 note.
577 (elfcore_write_arc_v2): New function.
578 (elfcore_write_register_note): Call the new function to handle the
579 corresponding pseudo-sections.
580
30ce8e47
MF
5812020-04-22 Max Filippov <jcmvbkbc@gmail.com>
582
583 PR ld/25861
584 * readelf.c (is_none_reloc): Recognize
585 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
586 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
587
33b5a830
NC
5882020-04-22 Nick Clifton <nickc@redhat.com>
589
590 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
591
978c4450
AM
5922020-04-22 Alan Modra <amodra@gmail.com>
593
594 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
595 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
596 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
597 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
598 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
599 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
600 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
601 (dynamic_section, symtab_shndx_list, group_count, section_groups),
602 (section_headers_groups): Move to struct filedata. Update use
603 throughout file.
604
6431e409
AM
6052020-04-22 Alan Modra <amodra@gmail.com>
606
607 * readelf.c (struct dump_data): New, used..
608 (cmdline): ..here, and..
609 (struct filedata): ..here. Adjust all uses.
610 (request_dump_bynumber, request_dump, parse_args): Pass in a
611 struct dump_data* rather than Filedata*. Adjust callers.
612 (main): Don't set cmdline.file_name.
613
a5e0be5c
AM
6142020-04-20 Alan Modra <amodra@gmail.com>
615
616 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
617 and nbuckets.
618
8ff66993
AM
6192020-04-20 Alan Modra <amodra@gmail.com>
620
621 * readelf.c (process_section_headers): Free dynamic symbols etc.
622 earlier.
623
ceb9bf11
AM
6242020-04-20 Alan Modra <amodra@gmail.com>
625
626 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
627 on error without freeing.
628 (process_dynamic_section): Don't recreate dynamic symbols from
629 dynamic tag info when the dynamic symbols have already been
630 read via section headers.
631
e409955d
FS
6322020-04-17 Fredrik Strupe <fredrik@strupe.net>
633
634 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
635 conditional VDUP instructions are disassembled correctly.
636 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
637 vdup-cond.d.
638 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
639 that VDUP instructions (which are conditional in A32) can be
640 disassembled in thumb mode.
641 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
642 vdup-thumb.d.
643
ca3f923f
AM
6442020-04-17 Alan Modra <amodra@gmail.com>
645
646 PR 25840
647 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
648
937f6614
AM
6492020-04-16 Alan Modra <amodra@gmail.com>
650
651 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
652 --no-addresses description.
653
b1bc1394
AM
6542020-04-15 Alan Modra <amodra@gmail.com>
655
656 * objdump.c (no_addresses): New static var.
657 (usage): Print help for --no-addresses.
658 (long_options): Add --no-addresses entry.
659 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
660 (disassemble_bytes): Don't print current line address, or reloc
661 address.
662 * doc/binutils.texi: Document objdump --no-addresses.
663
001890e1
AM
6642020-04-15 Alan Modra <amodra@gmail.com>
665
666 PR 25822
667 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
668 reading buckets or chains fails.
669
b71d4fa7
AM
6702020-04-15 Alan Modra <amodra@gmail.com>
671
672 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
673 etc. after freeing.
674
89246a0e
AM
6752020-04-15 Alan Modra <amodra@gmail.com>
676
677 * readelf.c (get_group_flags): Translate text.
678 (get_file_type, get_symbol_binding, get_symbol_type),
679 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
680
c98a4545
AM
6812020-04-15 Alan Modra <amodra@gmail.com>
682
683 PR 25821
684 * readelf.c (get_num_dynamic_syms): Typo fix.
685
645f43a8
AM
6862020-04-14 Alan Modra <amodra@gmail.com>
687
688 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
689 possibility of overflow when checking number of conflicts.
690
10ca4b04
L
6912020-04-14 H.J. Lu <hongjiu.lu@intel.com>
692
693 PR binutils/25707
694 * readelf.c (nbuckets): New.
695 (nchains): Likewise.
696 (buckets): Likewise.
697 (chains): Likewise.
698 (ngnubuckets): Likewise.
699 (gnubuckets): Likewise.
700 (gnuchains): Likewise.
701 (mipsxlat): Likewise.
702 (ngnuchains): Likewise.
703 (gnusymidx): Likewise.
704 (VALID_SYMBOL_NAME): Likewise.
705 (VALID_DYNAMIC_NAME): Use it.
706 (get_dynamic_data): Moved before process_dynamic_section.
707 (get_num_dynamic_syms): New function.
708 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
709 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
710 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
711 table.
712 (get_symbol_index_type): Don't print "bad section index" when
713 there is no section header.
714 (print_dynamic_symbol): Rewrite.
715 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
716 symbol table.
717
bb897477
RO
7182020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
719
720 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
721 enable on *-*-solaris*.
722
00386881
NC
7232020-03-30 Nick Clifton <nickc@redhat.com>
724
725 PR binutils/25662
726 * objcopy.c (copy_object): When copying PE format files set the
727 timestamp field in the pe_data structure if the preserve_dates
728 flag is set.
729 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
730 --preserve-dates in place of the -p option, in order to make its
731 effect more obvious.
732
0a6a8b59
AM
7332020-03-28 Alan Modra <amodra@gmail.com>
734
735 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
736 clear_xfail hppa*-*-*elf*. Revert mips xfails.
737
6a81c59b
AM
7382020-03-28 Alan Modra <amodra@gmail.com>
739
740 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
741 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
742 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
743 test. Pass "-p" to objcopy for the executable test.
744
1fafefd5
JL
7452020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
746
747 PR binutils/25662
748 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
749 specify whether an object file or executable should be built and tested.
750 Change test names to report whether an object file or executable is
751 being tested.
752 * testsuite/binutils-all/pr25662.ld: New test.
753 * testsuite/binutils-all/pr25662.s: New test.
754
80e2a3b6
AM
7552020-03-27 Alan Modra <amodra@gmail.com>
756
757 * readelf.c (process_archive): Don't double free qualified_name.
758 Don't break out of loop with "negative" archive_file_size, just
759 set file offset to max.
760
4c836627
AM
7612020-03-25 Alan Modra <amodra@gmail.com>
762
763 * readelf.c (process_archive): Prevent endless loop.
764
1081065c
L
7652020-03-24 H.J. Lu <hongjiu.lu@intel.com>
766
767 PR binutils/25708
768 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
769 with bfd_get_symbol_version_string.
770 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
771 * objdump.c (objdump_print_symname): Likewise.
772
7e6e972f
L
7732020-03-24 H.J. Lu <hongjiu.lu@intel.com>
774
775 PR binutils/25708
776 * nm.c (SYM_NAME): Removed.
777 (print_symname): Add a pointer to struct extended_symbol_info
778 argument. Call _bfd_elf_get_symbol_version_name to get symbol
779 version.
780 (print_symdef_entry): Pass NULL to print_symname.
781 (print_symbol_info_bsd): Update call to print_symname.
782 (print_symbol_info_sysv): Likewise.
783 (print_symbol_info_posix): Likewise.
784
5a814d6d
AM
7852020-03-24 Alan Modra <amodra@gmail.com>
786
787 * readelf.c (process_mips_specific): Free iconf on error path.
788
0636b245
NC
7892020-03-23 Nick Clifton <nickc@redhat.com>
790
791 PR 25714
792 * wrstabs.c (stab_pop_type): Replace assertion with error return.
793 * write_stabs_in_sections_debugging_info: Likewise.
794 * stab_enum_type: Likewise.
795 * stab_modify_type: Likewise.
796 * stab_struct_field: Likewise.
797 * stab_end_struct_type: Likewise.
798 * stab_start_class_type: Likewise.
799 * stab_class_static_member: Likewise.
800 * stab_class_baseclass: Likewise.
801 * stab_class_start_method: Likewise.
802 * stab_class_method_var: Likewise.
803 * stab_class_end_method: Likewise.
804 * stab_end_class_type: Likewise.
805 * stab_typedef_type: Likewise.
806 * stab_start_function: Likewise.
807 * stab_end_block: Likewise.
808 * stab_lineno: Likewise.
809
5844b465
NC
8102020-03-20 Nick Clifton <nickc@redhat.com>
811
812 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
813 (process_section_headers): Check the return value from
814 get_compression_header.
815 (dump_section_as_strings): Likewise.
816 (dump_section_as_bytes): Likewise.
817 (load_specific_debug_section): Likewise.
818
3d98c460
L
8192020-03-20 H.J. Lu <hongjiu.lu@intel.com>
820
821 * ar.c (main): Update bfd_plugin_set_program_name call.
822 * nm.c (main): Likewise.
823
f3a08f77
NC
8242020-03-19 Nick Clifton <nickc@redhat.com>
825
826 PR 25676
827 * testsuite/binutils-all/dw4.s: New test source file.
828 * testsuite/binutils-all/nm.exp: Run the new test.
829
ef3df110
L
8302020-03-19 H.J. Lu <hongjiu.lu@intel.com>
831
832 * readelf.c (process_symbol_table): Use unsigned long for si.
833
81a65eb3
AM
8342020-03-19 Alan Modra <amodra@gmail.com>
835
836 * elfcomm.c: Don't include bfd.h or bucomm.h.
837 (program_name): Declare.
838 (process_archive_index_and_symbols): Replace bfd_boolean with int,
839 and substitute FALSE and TRUE.
840 (setup_archive, setup_nested_archive): Likewise.
841 * elfcomm.h: Likewise.
842
1cb7d8b1
AM
8432020-03-19 Alan Modra <amodra@gmail.com>
844
845 * readelf.c (process_archive): Always return via path freeing
846 memory. Formatting.
847
b966f55f
AM
8482020-03-19 Alan Modra <amodra@gmail.com>
849
850 * readelf.c (process_netbsd_elf_note): Validate descsz before
851 accessing descdata. Formatting.
852
645ba681
AM
8532020-03-19 Alan Modra <amodra@gmail.com>
854
855 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
856 * elfcomm.h (setup_archive): Update prototype.
857
28d13567
AM
8582020-03-16 Alan Modra <amodra@gmail.com>
859
860 * readelf.c (get_symbols): New function.
861 (process_relocs, ia64_process_unwind, hppa_process_unwind),
862 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
863
60e63c3e
AM
8642020-03-16 Alan Modra <amodra@gmail.com>
865
866 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
867 Detect shift overflows and check that terminating byte is found.
868 Print an error on a bad uleb128.
869
1bd6175a
AM
8702020-03-14 Alan Modra <amodra@gmail.com>
871
872 * readelf.c (process_file): Clean ba_cache.
873
780f96ae
AM
8742020-03-14 Alan Modra <amodra@gmail.com>
875
876 * elfcomm.h (setup_archive): Update prototype.
877 * elfcomm.c (setup_archive): Add file_size parameter and sanity
878 check longnames_size.
879 (setup_nested_archive): Get file size and pass to setup_archive.
880 * elfedit.c (process_archive): Likewise.
881 * readelf.c (process_archive): Pass filedata->file_size to
882 setup_archive.
883
f761cb13
AM
8842020-03-14 Alan Modra <amodra@gmail.com>
885
886 * readelf.c (dump_section_as_strings): Free memory on error exit.
887 (dump_section_as_bytes, process_notes_at): Likewise.
888 (get_build_id): Free enote.
889
06d949ec
KR
8902020-03-13 Kamil Rytarowski <n54@gmx.com>
891
892 * readelf.c (get_netbsd_elfcore_note_type): Add support for
893 NT_NETBSDCORE_LWPSTATUS notes.
894
fd486f32
AM
8952020-03-13 Alan Modra <amodra@gmail.com>
896
897 * elfcomm.c (get_archive_member_name): Always return malloc'd
898 string or NULL.
899 * elfedit.c (process_archive): Tidy memory on all return paths.
900 * readelf.c (process_archive): Likewise.
901 (process_symbol_table): Likewise.
902 (ba_cache): New, replacing ..
903 (get_symbol_for_build_attribute): ..static vars here. Free
904 strtab and symtab before loading new ones. Reject symtab without
905 valid strtab in loop, breaking out of loop on valid symtab.
906 (process_file): Free ba_cache symtab and strtab here, resetting
907 ba_cache.
908
8fb879cd
AM
9092020-03-12 Alan Modra <amodra@gmail.com>
910
911 * readelf.c (process_section_headers): Don't just set
912 filedata->section_headers NULL, free it first. Similarly for
913 dynamic_symbols, dynamic_strings, dynamic_syminfo and
914 symtab_shndx_list. Zero associated counts too.
915 (process_object): Free symtab_shndx_list.
916 (process_file): Free various allocated filedata tables.
917
5496f3c6
NC
9182020-03-11 Nick Clifton <nickc@redhat.com>
919
920 PR 25611
921 PR 25614
922 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
923 li_segment_size fields.
924 * dwarf.c (read_debug_line_header): Record the address size and
925 segment selector size values (if present) in the lineinfo
926 structure.
927 (display_formatted_table): Warn if the format count is empty but
928 the table itself is not empty.
929 Display the format count and entry count at the start of the table
930 dump.
931 (display_debug_lines_raw): Display the address size and segement
932 selector size fields, if present.
933 * testsuite/binutils-all/dw5.W: Update expected output.
934
9cc89dc0
AM
9352020-03-11 Alan Modra <amodra@gmail.com>
936
937 PR 25651
938 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
939 pad_to_set on second block of code dealing with padding.
940 Replace "c" with "num_sec" and don't recalculate number of
941 sections on second block. Size arrays using sizeof (element)
942 rather than sizeof (element type).
943
41da0822
AM
9442020-03-10 Alan Modra <amodra@gmail.com>
945
946 * objdump.c (disassemble_section): Don't call qsort unless
947 sym count is at least two.
948 (disassemble_data): Don't call memcpy with NULL src.
949
95099889
AM
9502020-03-09 Alan Modra <amodra@gmail.com>
951
952 PR 25645
953 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
954 to get_data rather than multiplying.
955 (dump_ia64_vms_dynamic_relocs): Likewise.
956 (process_version_sections): Correct order of size and nmemb args
957 in get_data call.
958 (process_mips_specific): Likewise.
959
a15de1f5
L
9602020-03-08 H.J. Lu <hongjiu.lu@intel.com>
961
962 * readelf.c (get_dynamic_data): Replace "memory chekers" with
963 "memory checkers" in comments.
964
9979ab66
SM
9652020-03-06 Simon Marchi <simon.marchi@efficios.com>
966
967 PR 25491
968 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
969 * doc/Makefile.in: Re-generate.
970
a0dcf297
NC
9712020-03-06 Nick Clifton <nickc@redhat.com>
972
973 * objcopy.c (check_new_section_flags): New function. Reject the
974 SEC_COFF_SHARED flag if the target is not a COFF binary.
975 (copy_object): Call check_new_section_flags.
976 (setup_section): Likewise.
977 * doc/binutils.texi (objcopy): Add a note that the 'share' section
978 flag cannot be applied to ELF binaries.
979
a9b90127
AM
9802020-03-06 Alan Modra <amodra@gmail.com>
981
982 PR 25637
983 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
984
d1faf7ca
AM
9852020-03-05 Alan Modra <amodra@gmail.com>
986
987 PR 25629
988 * objcopy.c (filter_symbols): Don't segfault on NULL
989 prefix_symbols_string.
990
eef64366
CE
9912020-03-04 Christian Eggers <ceggers@gmx.de>
992
993 * objcopy.c (copy_object): Convert from bytes to octets for
994 --gap-fill and --pad-to.
995
5be2b2f5
NC
9962020-03-03 Nick Clifton <nickc@redhat.com>
997
998 PR 25625
999 * prdbg.c (pr_tag_type): Remove call to abort.
1000
b312fea1
AM
10012020-03-02 Aaron Merey <amerey@redhat.com>
1002
1003 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1004 selection.
1005
ba3265d0
NC
10062020-03-02 Nick Clifton <nickc@redhat.com>
1007
1008 PR 25543
1009 * readelf.c (dump_section_as_strings): Display new-line characters
1010 as \n and then insert a line break.
1011 * testsuite/binutils-all/pr25543.s: New test.
1012 * testsuite/binutils-all/pr25543.d: Test driver.
1013 * testsuite/binutils-all/readelf.exp: Run the new test.
1014
736990c4
NC
10152020-02-27 Nick Clifton <nickc@redhat.com>
1016
1017 PR 25526
1018 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1019 get_data is unable to load the string table.
1020
dc1e8a47
AM
10212020-02-26 Alan Modra <amodra@gmail.com>
1022
1023 * elfedit.c: Indent labels correctly.
1024 * readelf.c: Likewise.
1025 * resres.c: Likewise.
1026
ecda9016
L
10272020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1028
1029 PR binutils/25584
1030 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1031 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1032
83d4d556
NC
10332020-02-24 Nick Clifton <nickc@redhat.com>
1034
1035 PR 25499
1036 * doc/binutils.texi (objdump): Fix typo in description of
1037 objdump's -g option.
1038
bd0cf5a6
NC
10392020-02-20 Nelson Chu <nelson.chu@sifive.com>
1040
1041 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1042 is changed.
1043
741cb839
EC
10442020-02-19 Jordan Rupprecht <rupprecht@google.com>
1045
1046 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1047
9f1528a1
AB
10482020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1049
1050 * configure: Regenerate.
1051
3a5d12fb
FS
10522020-02-10 Fangrui Song <maskray@google.com>
1053
1054 * objcopy.c (parse_flags): Handle "exclude".
1055 * doc/binutils.texi: Document the support.
1056
678d457f
AM
10572020-02-10 Aaron Merey <amerey@redhat.com>
1058
1059 * binutils/testsuite/binutils-all/debuginfod.exp:
1060 Replace set ::env with setenv.
46471187
AM
1061 Start server before setting environment variable.
1062 Specify tmpdir as the location of the server's
1063 database.
1064 Check additional server metrics at start-up.
678d457f 1065
e8319fde
NC
10662020-02-07 Nick Clifton <nickc@redhat.com>
1067
1068 * README-how-to-make-a-release: Add note about updating the
1069 GAS/NEWS URL in the next release.
1070
9fc0b501
SB
10712020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1072
1073 PR 25469
1074 * readelf.c (get_machine_flags): Add support for Z80N machine
1075 number.
1076
e1104d08
NC
10772020-02-07 Nick Clifton <nickc@redhat.com>
1078
1079 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1080 of the truncated file name.
1081
c2e6f744 10822020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
1083
1084 * objdump.c (print_jump_visualisation): New function.
1085 (disassemble_bytes): Call new function.
1086
02e0be69
AM
10872020-02-06 Alan Modra <amodra@gmail.com>
1088
1089 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1090 TCL procedure.
1091 (supports_gnu_osabi): New procedure.
1092 (is_generic): New, from ld-lib.exp.
1093 (supports_gnu_unique): Use the above.
1094
e8b79122
AM
10952020-02-04 Alan Modra <amodra@gmail.com>
1096
1097 * Makefile.am (CFILES): Add od-elf32_avr.c.
1098 * Makefile.in: Regenerate.
1099 * po/POTFILES.in: Regenerate.
1100
27a45f42
AS
11012020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1102
1103 * readelf.c (dump_relocations, dump_relocations)
1104 (decode_arm_unwind_bytecode, process_dynamic_section)
1105 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1106 error message.
1107
0b398d69
ST
11082020-02-03 Sergei Trofimovich <siarheit@google.com>
1109
1110 * coffdump.c (program_name): Drop redundant definition.
1111 * srconv.c (program_name): Likewise
1112 * sysdump.c (program_name): Likewise
1113
a8c4d40b
L
11142020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1115
1116 PR gas/25380
1117 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1118 same file with different section pointers.
1119
cb6ad9bb
NC
11202020-02-01 Nick Clifton <nickc@redhat.com>
1121
1122 * README-how-to-make-a-release: Update with more details on the
1123 release making process.
1124
53943f32
NC
11252020-01-31 Nick Clifton <nickc@redhat.com>
1126
1127 * po/sv.po: Updated Swedish translation.
1128
55be8fd0
NC
11292020-01-28 Nick Clifton <nickc@redhat.com>
1130
1131 * readelf.c (get_build_id): Simplify warning message about corrupt
1132 notes encountered whilst scanning for the build-id.
1133
82ef9cad
RM
11342020-01-27 Roland McGrath <mcgrathr@google.com>
1135
1136 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1137 for overlapping ranges so that (A == B) == (B == A) holds.
1138
e3696f67
AM
11392020-01-27 Alan Modra <amodra@gmail.com>
1140
1141 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1142 case statement with switch statement.
1143
2f796de6
NC
11442020-01-24 Nick Clifton <nickc@redhat.com>
1145
1146 * readelf.c (get_build_id): Fix warning messages about corrupt
1147 notes.
1148
24e648d4
NC
11492020-01-23 Nick Clifton <nickc@redhat.com>
1150
1151 * po/fr.po: Updated French translation.
1152
c48acf6f
YC
11532020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1154
1155 PR 25417
1156 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1157
26916852
NC
11582020-01-20 Nick Clifton <nickc@redhat.com>
1159
1160 * po/pt.po: Updated Portuguese translation.
1161 * po/uk.po: Updated Ukranian translation.
1162
b248e9ce
NC
11632020-01-18 Nick Clifton <nickc@redhat.com>
1164
1165 * README-how-to-make-a-release: Update notes on how to cut a
1166 branch for a release.
1167
1b1bb2c6
NC
11682020-01-18 Nick Clifton <nickc@redhat.com>
1169
1170 * configure: Regenerate.
1171 * po/binutils.pot: Regenerate.
1172
ae774686
NC
11732020-01-18 Nick Clifton <nickc@redhat.com>
1174
1175 Binutils 2.34 branch created.
1176
82a9ed20
TT
11772020-01-17 Thomas Troeger <tstroege@gmx.de>
1178
1179 * objdump.c (jump_info_visualize_address): Discard jumps that are
1180 no longer needed.
1181 (disassemble_bytes): Only compute the maximum level if jumps were
1182 detected.
1183
6a1939f5
NC
11842020-01-13 Nick Clifton <nickc@redhat.com>
1185
c87c17c1 1186 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
1187 * testsuite/binutils-all/debuginfod.exp: New tests.
1188
1d67fe3b
TT
11892020-01-13 Thomas Troeger <tstroege@gmx.de>
1190
1191 * objdump.c (visualize_jumps, color_output, extended_color_output)
1192 (detected_jumps): New variables.
1193 (usage): Add the new jump visualization options.
1194 (option_values): Add new option value.
1195 (long_options): Add the new option.
1196 (jump_info_new, jump_info_free): New functions.
1197 (jump_info_min_address, jump_info_max_address): Likewise.
1198 (jump_info_end_address, jump_info_is_start_address): Likewise.
1199 (jump_info_is_end_address, jump_info_size): Likewise.
1200 (jump_info_unlink, jump_info_insert): Likewise.
1201 (jump_info_add_front, jump_info_move_linked): Likewise.
1202 (jump_info_intersect, jump_info_merge): Likewise.
1203 (jump_info_sort, jump_info_visualize_address): Likewise.
1204 (disassemble_jumps): New function - used to locate jumps.
1205 (disassemble_bytes): Add ascii art generation.
1206 (disassemble_section): Add scan to locate jumps.
1207 (main): Parse the new visualization option.
1208 * doc/binutils.texi: Document the new feature.
1209 * NEWS: Mention the new feature.
1210
a788aedd
AM
12112020-01-13 Alan Modra <amodra@gmail.com>
1212
a4f2b7c5
AM
1213 PR 25360
1214 PR 25361
a788aedd
AM
1215 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1216 fde_fc col_type and col_offset.
1217 * readelf.c (apply_relocations): Move symsec check earlier.
1218 (free_debug_section): Free reloc_info.
1219 (process_notes_at): Free pnotes on error path.
1220 (process_object): Free dump_sects here..
1221 (process_archive): ..not here.
1222
805f38bc
AM
12232020-01-13 Alan Modra <amodra@gmail.com>
1224
1225 PR 25362
1226 * nm.c (display_rel_file): Free dyn_syms.
1227
ffebb0bb
NC
12282020-01-09 Nick Clifton <nickc@redhat.com>
1229
1230 PR 25220
1231 * objcopy.c (empty_name): New variable.
1232 (need_sym_before): Prevent an attempt to free a static variable.
1233 (filter_symbols): Avoid strcmp test by checking for pointer
1234 equality.
1235
ade4fd9b
NC
12362020-01-09 Nick Clifton <nickc@redhat.com>
1237
1238 * po/zh_TW.po: Updated Traditional Chinese translation.
1239
12402020-01-09 Aaron Merey <amerey@redhat.com>
1241
1242 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1243 * Makefile.in: Regenerate.
1244 * NEWS: Update.
1245 * config.in: Regenerate.
1246 * configure: Regenerate.
1247 * configure.ac: Call AC_DEBUGINFOD.
1248 * doc/Makefile.in: Regenerate.
1249 * doc/binutils.texi: Add section on using binutils
1250 with debuginfod.
1251 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1252 Query debuginfod servers for the target debug file.
1253 (load_separate_debug_info): Call
1254 debuginfod_fetch_separate_debug_info if configured with
1255 debuginfod.
1256 (load_separate_debug_files): Add file argument to
1257 load_separate_debug_info calls.
1258 * dwarf.h (get_build_id): Add declaration.
1259 * objdump.c (get_build_id): New function. Get build-id of file.
1260 * readelf.c (get_build_id): Likewise.
1261 * testsuite/binutils-all/debuginfod.exp: New tests.
1262 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1263 section.
1264
6655dba2
SB
12652020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1266
1267 * readelf.c: Add support for new Z*) relocations and machine
1268 types.
1269
b14ce8bf
AM
12702020-01-01 Alan Modra <amodra@gmail.com>
1271
1272 Update year range in copyright notice of all files.
1273
0b114740 1274For older changes see ChangeLog-2019
3499769a 1275\f
0b114740 1276Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
1277
1278Copying and distribution of this file, with or without modification,
1279are permitted in any medium without royalty provided the copyright
1280notice and this notice are preserved.
1281
1282Local Variables:
1283mode: change-log
1284left-margin: 8
1285fill-column: 74
1286version-control: never
1287End: