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