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