]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
PR26150, Assertion when asm() defines global symbols, -flto and --start-group
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
39f381cb
NC
12020-06-23 Nick Clifton <nickc@redhat.com>
2
3 PR 26160
4 * dwarf.c (fetch_indexed_string): Detect and handle old style
5 .debug_str_offset tables.
6 (display_debug_str_offsets): Likewise. Also add support for
7 .debug_str_offsets.dwo sections.
8
80fda85c
L
92020-06-23 H.J. Lu <hongjiu.lu@intel.com>
10
11 PR binutils/26112
12 * testsuite/binutils-all/pr26112.o.bz2: New file.
13 * testsuite/binutils-all/pr26112.r: Likewise.
14 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
15
d081ffff
AM
162020-06-23 Alan Modra <amodra@gmail.com>
17
18 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
19 remote_file delete command.
20
e4b7104b
NC
212020-06-22 Nick Clifton <nickc@redhat.com>
22
23 PR 26112
24 * dwarf.c (display_debug_str_offsets): Add code to display the
25 contents of the .debug_str_offsets section.
26 (display_debug_macro): Add support for DW_MACRO_define_strx and
27 DW_MACRO_undef_strx.
28
d768f160
SJ
292020-06-22 Saagar Jha <saagar@saagarjha.com>
30
31 * od-macho.c: Dump linkedit data for new load commands.
32
5fd104ad
AM
332020-06-19 Alan Modra <amodra@gmail.com>
34
35 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
36 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
37 (run_dump_test): Use check_relro_support to decide whether to pass
38 extra ld option "-z norelro".
39
fd17d1e6
AM
402020-06-11 Alan Modra <amodra@gmail.com>
41
42 * readelf.c (process_mips_specific): Don't alloc memory for
43 Elf_Internal_Options.
44
d0c4e780
AM
452020-06-11 Alan Modra <amodra@gmail.com>
46
47 * readelf.c (process_mips_specific): Assert size of internal
48 types match size of external types, and simplify allocation of
49 internal buffer. Catch possible integer overflow when sanity
50 checking option size. Don't assume options are a regular array.
51 Sanity check reginfo option against option size. Use PRI macros
52 when printing.
53
25065fcd
RH
542020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
55
56 PR 26082
57 * mclex.c (yylex): Reject lines that reach end-of-file without a
58 terminating newline character.
59
b37a7714
NC
602020-06-08 Nick Clifton <nickc@redhat.com>
61
62 PR 26093
63 * doc/binutils.texi (strings): Fix typo.
64
c4b2f181
NC
652020-06-08 Nick Clifton <nickc@redhat.com>
66
67 PR 26086
68 * dwarf.c (process_debug_info): Check that there is space in the
69 debug_information array before filling in an entry.
70
1424c35d
AM
712020-06-06 Alan Modra <amodra@gmail.com>
72
73 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
74
8affa48a
JA
752020-06-05 Joel Anderson <joelanderson333@gmail.com>
76
77 PR 26082
78 * mclex.c (yylex): Add test for an empty input stream.
79
8eca5c7d
SC
802020-06-04 Stephen Casner <casner@acm.org>
81
82 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
83 for test using section pseudo-ops compatible with pdp11.
84 * testsuite/binutils-all/objcopy.exp: Select alternate source.
85
b3db6d07
JM
862020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
87
88 * objdump.c (disassemble_data): Set disasm_info.endian_code to
89 disasm_info.endian after the latter is initialized to the
90 endianness reported by BFD.
91
0a4f37af
AM
922020-06-04 Alan Modra <amodra@gmail.com>
93
94 * testsuite/binutils-all/i386/i386.exp: Remove global directive
95 outside proc body.
96 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
97 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
98
913e0fd4
JA
992020-06-03 Joel Anderson <joelanderson333@gmail.com>
100
101 * windmc.h (struct mc_node): Add id_typecast field.
102 * mcparse.y (message): Initialise the id_typecast field.
103 * windmc.c (write_dbg): Use the id_typecast field as a parameter
104 when calling write_dbg_define.
105 (write_header): Likewise.
106
4a322448
AM
1072020-06-03 Alan Modra <amodra@gmail.com>
108
109 PR 26069
110 * objcopy.c (copy_relocations_in_section): Free relpp on error.
111 Don't accidentally free isection->orelocation.
112
0bee4d1c
AM
1132020-06-02 Alan Modra <amodra@gmail.com>
114
115 * testsuite/binutils-all/ar.exp (obj): Set up object file name
116 extension. Use throughout. Don't completely exclude non-ELF
117 alpha targets. Run long_filenames test for tic30. Exclude thin
118 archive tests for aix, ecoff and vms.
119 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
120 extension. Use throughout. Don't exclude non-ELF alpha targets
121 from "bintest.a".
122
ab7ad287
MF
1232020-05-28 Max Filippov <jcmvbkbc@gmail.com>
124
125 * MAINTAINERS (Xtensa): Add myself as maintainer.
126
3f3c3608
AM
1272020-05-23 Alan Modra <amodra@gmail.com>
128
129 * testsuite/binutils-all/ar.exp (many_files): New test.
130
9db70fc3
AM
1312020-05-21 Alan Modra <amodra@gmail.com>
132
133 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
134 * dlltool.c: Likewise.
135 * elfcomm.c: Likewise.
136 * rddbg.c: Likewise.
137 * readelf.c: Likewise.
138 * stabs.c: Likewise.
139 * windmc.c: Likewise.
140 * windres.c: Likewise.
141 * wrstabs.c: Likewise.
142
c31ab5a0
AM
1432020-05-21 Alan Modra <amodra@gmail.com>
144
145 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
146 access.
147
8f595e9b
NC
1482020-05-20 Nelson Chu <nelson.chu@sifive.com>
149
150 * dwarf.c: Updated since DECLARE_CSR is changed.
151
8ac10c5b
L
1522020-05-19 H.J. Lu <hjl.tools@gmail.com>
153
154 PR binutils/25809
155 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
156 segment doesn't match the .dynamic section and checks are
157 enabled.
158 (struct filedata): Add dynamic_symtab_section and
159 dynamic_strtab_section fields.
160 (process_section_headers): Set dynamic_symtab_section to the
161 .dynsym section. Set dynamic_strtab_section to the .dynstr
162 section.
163 (process_dynamic_section): Warn if the .dynsym section doesn't
164 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
165 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
166
c177f377
AM
1672020-05-19 Alan Modra <amodra@gmail.com>
168
169 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
170 (replace_members): Use bfd_get_filename rather than accessing
171 bfd->filename directly.
172 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
173 * binemul.c (do_ar_emul_append): Likewise.
174 * coffgrok.c (coff_grok): Likewise.
175
83d27139
SH
1762020-05-18 Stafford Horne <shorne@gmail.com>
177
178 * MAINTAINERS (OR1K): Add myself as maintainer.
179
d11a9fab
AB
1802020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
181
182 * doc/binutils.texi: Mention 'entry address' in the set-start and
183 adjust-start options descriptions.
184
546cb2d8
NC
1852020-05-05 Nick Clifton <nickc@redhat.com>
186
187 * dwarf.c (do_checks): New global variable.
188 (display_formatted_table): Warn about an unexpected number of
189 columns in the table, if checks are enabled. Do not complain
190 about the lack of data following the number of entries in the
191 table if the table is empty.
192 (display_debug_lines_decoded): Only warn about an unexpected
193 number of columns in a table if checks are enabled.
194 * dwarf.h (do_checks): Add a prototype.
195 * elfcomm.c (error): Remove weak attribute.
196 (warn): Likewise.
197 * readelf.c (do_checks): Delete.
198 (warn): Delete.
199 (process_section_headers): Only warn about empty sections if
200 checks are enabled.
201
e052e2ba
FS
2022020-05-04 Fangrui Song <maskray@google.com>
203
204 * objcopy.c (copy_object): Allow empty section.
205 * testsuite/binutils-all/update-section.exp: Add test.
206
070b775f
NC
2072020-05-04 Nick Clifton <nickc@redhat.com>
208
209 PR 25917
210 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
211 supicious number of entries for DWARF-5 format directory and file
212 name tables. Do not display file name table header if the table
213 is empty. Do not allocate space for empty tables.
214
9c7b8e9b
AM
2152020-05-04 Alan Modra <amodra@gmail.com>
216
217 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
218 section. Don't assume endian of host matches nds32 target. Free
219 buffer.
220
60832332
AM
2212020-05-01 Alan Modra <amodra@gmail.com>
222 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
223
224 * objdump.c (disassemble_bytes): Don't scan for zeros when
225 disassembling zeros. Translate "resuming at file offset" message.
226 Formatting. Replace some signed variables with unsigned.
227
09c1e68a
AC
2282020-04-30 Alex Coplan <alex.coplan@arm.com>
229
230 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
231 disassembly.
232 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
233
8a8a1171
NC
2342020-04-30 Nick Clifton <nickc@redhat.com>
235
236 * testsuite/lib/binutils-common.exp (check_pie_support): New
237 proc.
238
cb4c35cf
AB
2392020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
240
241 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
242 range_entries for the same offset.
243
1b513401
NC
2442020-04-29 Nick Clifton <nickc@redhat.com>
245
246 * readelf.c (warn): New function - like elfcomm.c version but only
247 produces output if warnings are enabled.
248 (struct options): Add --lint and --enable-checks.
249 (usage): Add entry for --lint.
250 (parse_args): Handle -L. If checks are enabled but no dumps have
251 been selected then enable all dumps.
252 (process_section_headers): Replace long if-then-else sequence with
253 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
254 SHT_PROGBITS sections.
255 (process_file): Do not complain if the file is an archive and lint
256 mode has been enabled.
257 * elfcomm.c (error): Make the function weak.
258 (warn): Likewise.
259 * NEWS: Mention the new feature.
260 * doc/binutils.texi: Document the new feature.
261 * dwarf.h (report_leb_status): Add file name and line number
262 parameters. Include them in the diagnostic output.
263 (READ_ULEB): Pass file and line number to report_leb_status.
264 (READ_SLEB): Likewise.
265 * dwarf.c (read_and_print_leb128): Pass file and line number to
266 report_leb_status.
267 * testsuite/binutils-all/readelf.exp: Add test of new feature.
268 * testsuite/binutils-all/zero-sec.s: New test source file.
269 * testsuite/binutils-all/zero-sec.r: Expected output from new
270 test.
271
c2e71e57
NC
2722020-04-29 Nick Clifton <nickc@redhat.com>
273
274 * po/sr.po: Updated Serbian translation.
275
90837ea7
AM
2762020-04-26 Alan Modra <amodra@gmail.com>
277
278 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
279 read before dereferencing, and gracefully return. Remove
280 gnu_hash_error variable. Free gnu hash arrays if number of
281 syms found is zero.
282
2482f306
AM
2832020-04-24 Alan Modra <amodra@gmail.com>
284
285 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
286 non-zero.
287 (process_dynamic_section): Call get_num_dynamic_syms once rather
288 than in segment loop. Break out of segment loop on a successful
289 load of dynamic symbols. Formatting.
290 (process_object): Return error status from process_dynamic_section.
291
27456742
AK
2922020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
293
294 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
295 * elf.c (elfcore_grok_arc_v2): New function.
296 (elfcore_grok_note): Call the new function to handle the corresponding
297 note.
298 (elfcore_write_arc_v2): New function.
299 (elfcore_write_register_note): Call the new function to handle the
300 corresponding pseudo-sections.
301
30ce8e47
MF
3022020-04-22 Max Filippov <jcmvbkbc@gmail.com>
303
304 PR ld/25861
305 * readelf.c (is_none_reloc): Recognize
306 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
307 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
308
33b5a830
NC
3092020-04-22 Nick Clifton <nickc@redhat.com>
310
311 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
312
978c4450
AM
3132020-04-22 Alan Modra <amodra@gmail.com>
314
315 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
316 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
317 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
318 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
319 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
320 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
321 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
322 (dynamic_section, symtab_shndx_list, group_count, section_groups),
323 (section_headers_groups): Move to struct filedata. Update use
324 throughout file.
325
6431e409
AM
3262020-04-22 Alan Modra <amodra@gmail.com>
327
328 * readelf.c (struct dump_data): New, used..
329 (cmdline): ..here, and..
330 (struct filedata): ..here. Adjust all uses.
331 (request_dump_bynumber, request_dump, parse_args): Pass in a
332 struct dump_data* rather than Filedata*. Adjust callers.
333 (main): Don't set cmdline.file_name.
334
a5e0be5c
AM
3352020-04-20 Alan Modra <amodra@gmail.com>
336
337 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
338 and nbuckets.
339
8ff66993
AM
3402020-04-20 Alan Modra <amodra@gmail.com>
341
342 * readelf.c (process_section_headers): Free dynamic symbols etc.
343 earlier.
344
ceb9bf11
AM
3452020-04-20 Alan Modra <amodra@gmail.com>
346
347 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
348 on error without freeing.
349 (process_dynamic_section): Don't recreate dynamic symbols from
350 dynamic tag info when the dynamic symbols have already been
351 read via section headers.
352
e409955d
FS
3532020-04-17 Fredrik Strupe <fredrik@strupe.net>
354
355 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
356 conditional VDUP instructions are disassembled correctly.
357 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
358 vdup-cond.d.
359 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
360 that VDUP instructions (which are conditional in A32) can be
361 disassembled in thumb mode.
362 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
363 vdup-thumb.d.
364
ca3f923f
AM
3652020-04-17 Alan Modra <amodra@gmail.com>
366
367 PR 25840
368 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
369
937f6614
AM
3702020-04-16 Alan Modra <amodra@gmail.com>
371
372 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
373 --no-addresses description.
374
b1bc1394
AM
3752020-04-15 Alan Modra <amodra@gmail.com>
376
377 * objdump.c (no_addresses): New static var.
378 (usage): Print help for --no-addresses.
379 (long_options): Add --no-addresses entry.
380 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
381 (disassemble_bytes): Don't print current line address, or reloc
382 address.
383 * doc/binutils.texi: Document objdump --no-addresses.
384
001890e1
AM
3852020-04-15 Alan Modra <amodra@gmail.com>
386
387 PR 25822
388 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
389 reading buckets or chains fails.
390
b71d4fa7
AM
3912020-04-15 Alan Modra <amodra@gmail.com>
392
393 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
394 etc. after freeing.
395
89246a0e
AM
3962020-04-15 Alan Modra <amodra@gmail.com>
397
398 * readelf.c (get_group_flags): Translate text.
399 (get_file_type, get_symbol_binding, get_symbol_type),
400 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
401
c98a4545
AM
4022020-04-15 Alan Modra <amodra@gmail.com>
403
404 PR 25821
405 * readelf.c (get_num_dynamic_syms): Typo fix.
406
645f43a8
AM
4072020-04-14 Alan Modra <amodra@gmail.com>
408
409 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
410 possibility of overflow when checking number of conflicts.
411
10ca4b04
L
4122020-04-14 H.J. Lu <hongjiu.lu@intel.com>
413
414 PR binutils/25707
415 * readelf.c (nbuckets): New.
416 (nchains): Likewise.
417 (buckets): Likewise.
418 (chains): Likewise.
419 (ngnubuckets): Likewise.
420 (gnubuckets): Likewise.
421 (gnuchains): Likewise.
422 (mipsxlat): Likewise.
423 (ngnuchains): Likewise.
424 (gnusymidx): Likewise.
425 (VALID_SYMBOL_NAME): Likewise.
426 (VALID_DYNAMIC_NAME): Use it.
427 (get_dynamic_data): Moved before process_dynamic_section.
428 (get_num_dynamic_syms): New function.
429 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
430 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
431 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
432 table.
433 (get_symbol_index_type): Don't print "bad section index" when
434 there is no section header.
435 (print_dynamic_symbol): Rewrite.
436 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
437 symbol table.
438
bb897477
RO
4392020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
440
441 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
442 enable on *-*-solaris*.
443
00386881
NC
4442020-03-30 Nick Clifton <nickc@redhat.com>
445
446 PR binutils/25662
447 * objcopy.c (copy_object): When copying PE format files set the
448 timestamp field in the pe_data structure if the preserve_dates
449 flag is set.
450 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
451 --preserve-dates in place of the -p option, in order to make its
452 effect more obvious.
453
0a6a8b59
AM
4542020-03-28 Alan Modra <amodra@gmail.com>
455
456 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
457 clear_xfail hppa*-*-*elf*. Revert mips xfails.
458
6a81c59b
AM
4592020-03-28 Alan Modra <amodra@gmail.com>
460
461 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
462 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
463 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
464 test. Pass "-p" to objcopy for the executable test.
465
1fafefd5
JL
4662020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
467
468 PR binutils/25662
469 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
470 specify whether an object file or executable should be built and tested.
471 Change test names to report whether an object file or executable is
472 being tested.
473 * testsuite/binutils-all/pr25662.ld: New test.
474 * testsuite/binutils-all/pr25662.s: New test.
475
80e2a3b6
AM
4762020-03-27 Alan Modra <amodra@gmail.com>
477
478 * readelf.c (process_archive): Don't double free qualified_name.
479 Don't break out of loop with "negative" archive_file_size, just
480 set file offset to max.
481
4c836627
AM
4822020-03-25 Alan Modra <amodra@gmail.com>
483
484 * readelf.c (process_archive): Prevent endless loop.
485
1081065c
L
4862020-03-24 H.J. Lu <hongjiu.lu@intel.com>
487
488 PR binutils/25708
489 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
490 with bfd_get_symbol_version_string.
491 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
492 * objdump.c (objdump_print_symname): Likewise.
493
7e6e972f
L
4942020-03-24 H.J. Lu <hongjiu.lu@intel.com>
495
496 PR binutils/25708
497 * nm.c (SYM_NAME): Removed.
498 (print_symname): Add a pointer to struct extended_symbol_info
499 argument. Call _bfd_elf_get_symbol_version_name to get symbol
500 version.
501 (print_symdef_entry): Pass NULL to print_symname.
502 (print_symbol_info_bsd): Update call to print_symname.
503 (print_symbol_info_sysv): Likewise.
504 (print_symbol_info_posix): Likewise.
505
5a814d6d
AM
5062020-03-24 Alan Modra <amodra@gmail.com>
507
508 * readelf.c (process_mips_specific): Free iconf on error path.
509
0636b245
NC
5102020-03-23 Nick Clifton <nickc@redhat.com>
511
512 PR 25714
513 * wrstabs.c (stab_pop_type): Replace assertion with error return.
514 * write_stabs_in_sections_debugging_info: Likewise.
515 * stab_enum_type: Likewise.
516 * stab_modify_type: Likewise.
517 * stab_struct_field: Likewise.
518 * stab_end_struct_type: Likewise.
519 * stab_start_class_type: Likewise.
520 * stab_class_static_member: Likewise.
521 * stab_class_baseclass: Likewise.
522 * stab_class_start_method: Likewise.
523 * stab_class_method_var: Likewise.
524 * stab_class_end_method: Likewise.
525 * stab_end_class_type: Likewise.
526 * stab_typedef_type: Likewise.
527 * stab_start_function: Likewise.
528 * stab_end_block: Likewise.
529 * stab_lineno: Likewise.
530
5844b465
NC
5312020-03-20 Nick Clifton <nickc@redhat.com>
532
533 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
534 (process_section_headers): Check the return value from
535 get_compression_header.
536 (dump_section_as_strings): Likewise.
537 (dump_section_as_bytes): Likewise.
538 (load_specific_debug_section): Likewise.
539
3d98c460
L
5402020-03-20 H.J. Lu <hongjiu.lu@intel.com>
541
542 * ar.c (main): Update bfd_plugin_set_program_name call.
543 * nm.c (main): Likewise.
544
f3a08f77
NC
5452020-03-19 Nick Clifton <nickc@redhat.com>
546
547 PR 25676
548 * testsuite/binutils-all/dw4.s: New test source file.
549 * testsuite/binutils-all/nm.exp: Run the new test.
550
ef3df110
L
5512020-03-19 H.J. Lu <hongjiu.lu@intel.com>
552
553 * readelf.c (process_symbol_table): Use unsigned long for si.
554
81a65eb3
AM
5552020-03-19 Alan Modra <amodra@gmail.com>
556
557 * elfcomm.c: Don't include bfd.h or bucomm.h.
558 (program_name): Declare.
559 (process_archive_index_and_symbols): Replace bfd_boolean with int,
560 and substitute FALSE and TRUE.
561 (setup_archive, setup_nested_archive): Likewise.
562 * elfcomm.h: Likewise.
563
1cb7d8b1
AM
5642020-03-19 Alan Modra <amodra@gmail.com>
565
566 * readelf.c (process_archive): Always return via path freeing
567 memory. Formatting.
568
b966f55f
AM
5692020-03-19 Alan Modra <amodra@gmail.com>
570
571 * readelf.c (process_netbsd_elf_note): Validate descsz before
572 accessing descdata. Formatting.
573
645ba681
AM
5742020-03-19 Alan Modra <amodra@gmail.com>
575
576 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
577 * elfcomm.h (setup_archive): Update prototype.
578
28d13567
AM
5792020-03-16 Alan Modra <amodra@gmail.com>
580
581 * readelf.c (get_symbols): New function.
582 (process_relocs, ia64_process_unwind, hppa_process_unwind),
583 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
584
60e63c3e
AM
5852020-03-16 Alan Modra <amodra@gmail.com>
586
587 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
588 Detect shift overflows and check that terminating byte is found.
589 Print an error on a bad uleb128.
590
1bd6175a
AM
5912020-03-14 Alan Modra <amodra@gmail.com>
592
593 * readelf.c (process_file): Clean ba_cache.
594
780f96ae
AM
5952020-03-14 Alan Modra <amodra@gmail.com>
596
597 * elfcomm.h (setup_archive): Update prototype.
598 * elfcomm.c (setup_archive): Add file_size parameter and sanity
599 check longnames_size.
600 (setup_nested_archive): Get file size and pass to setup_archive.
601 * elfedit.c (process_archive): Likewise.
602 * readelf.c (process_archive): Pass filedata->file_size to
603 setup_archive.
604
f761cb13
AM
6052020-03-14 Alan Modra <amodra@gmail.com>
606
607 * readelf.c (dump_section_as_strings): Free memory on error exit.
608 (dump_section_as_bytes, process_notes_at): Likewise.
609 (get_build_id): Free enote.
610
06d949ec
KR
6112020-03-13 Kamil Rytarowski <n54@gmx.com>
612
613 * readelf.c (get_netbsd_elfcore_note_type): Add support for
614 NT_NETBSDCORE_LWPSTATUS notes.
615
fd486f32
AM
6162020-03-13 Alan Modra <amodra@gmail.com>
617
618 * elfcomm.c (get_archive_member_name): Always return malloc'd
619 string or NULL.
620 * elfedit.c (process_archive): Tidy memory on all return paths.
621 * readelf.c (process_archive): Likewise.
622 (process_symbol_table): Likewise.
623 (ba_cache): New, replacing ..
624 (get_symbol_for_build_attribute): ..static vars here. Free
625 strtab and symtab before loading new ones. Reject symtab without
626 valid strtab in loop, breaking out of loop on valid symtab.
627 (process_file): Free ba_cache symtab and strtab here, resetting
628 ba_cache.
629
8fb879cd
AM
6302020-03-12 Alan Modra <amodra@gmail.com>
631
632 * readelf.c (process_section_headers): Don't just set
633 filedata->section_headers NULL, free it first. Similarly for
634 dynamic_symbols, dynamic_strings, dynamic_syminfo and
635 symtab_shndx_list. Zero associated counts too.
636 (process_object): Free symtab_shndx_list.
637 (process_file): Free various allocated filedata tables.
638
5496f3c6
NC
6392020-03-11 Nick Clifton <nickc@redhat.com>
640
641 PR 25611
642 PR 25614
643 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
644 li_segment_size fields.
645 * dwarf.c (read_debug_line_header): Record the address size and
646 segment selector size values (if present) in the lineinfo
647 structure.
648 (display_formatted_table): Warn if the format count is empty but
649 the table itself is not empty.
650 Display the format count and entry count at the start of the table
651 dump.
652 (display_debug_lines_raw): Display the address size and segement
653 selector size fields, if present.
654 * testsuite/binutils-all/dw5.W: Update expected output.
655
9cc89dc0
AM
6562020-03-11 Alan Modra <amodra@gmail.com>
657
658 PR 25651
659 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
660 pad_to_set on second block of code dealing with padding.
661 Replace "c" with "num_sec" and don't recalculate number of
662 sections on second block. Size arrays using sizeof (element)
663 rather than sizeof (element type).
664
41da0822
AM
6652020-03-10 Alan Modra <amodra@gmail.com>
666
667 * objdump.c (disassemble_section): Don't call qsort unless
668 sym count is at least two.
669 (disassemble_data): Don't call memcpy with NULL src.
670
95099889
AM
6712020-03-09 Alan Modra <amodra@gmail.com>
672
673 PR 25645
674 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
675 to get_data rather than multiplying.
676 (dump_ia64_vms_dynamic_relocs): Likewise.
677 (process_version_sections): Correct order of size and nmemb args
678 in get_data call.
679 (process_mips_specific): Likewise.
680
a15de1f5
L
6812020-03-08 H.J. Lu <hongjiu.lu@intel.com>
682
683 * readelf.c (get_dynamic_data): Replace "memory chekers" with
684 "memory checkers" in comments.
685
9979ab66
SM
6862020-03-06 Simon Marchi <simon.marchi@efficios.com>
687
688 PR 25491
689 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
690 * doc/Makefile.in: Re-generate.
691
a0dcf297
NC
6922020-03-06 Nick Clifton <nickc@redhat.com>
693
694 * objcopy.c (check_new_section_flags): New function. Reject the
695 SEC_COFF_SHARED flag if the target is not a COFF binary.
696 (copy_object): Call check_new_section_flags.
697 (setup_section): Likewise.
698 * doc/binutils.texi (objcopy): Add a note that the 'share' section
699 flag cannot be applied to ELF binaries.
700
a9b90127
AM
7012020-03-06 Alan Modra <amodra@gmail.com>
702
703 PR 25637
704 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
705
d1faf7ca
AM
7062020-03-05 Alan Modra <amodra@gmail.com>
707
708 PR 25629
709 * objcopy.c (filter_symbols): Don't segfault on NULL
710 prefix_symbols_string.
711
eef64366
CE
7122020-03-04 Christian Eggers <ceggers@gmx.de>
713
714 * objcopy.c (copy_object): Convert from bytes to octets for
715 --gap-fill and --pad-to.
716
5be2b2f5
NC
7172020-03-03 Nick Clifton <nickc@redhat.com>
718
719 PR 25625
720 * prdbg.c (pr_tag_type): Remove call to abort.
721
b312fea1
AM
7222020-03-02 Aaron Merey <amerey@redhat.com>
723
724 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
725 selection.
726
ba3265d0
NC
7272020-03-02 Nick Clifton <nickc@redhat.com>
728
729 PR 25543
730 * readelf.c (dump_section_as_strings): Display new-line characters
731 as \n and then insert a line break.
732 * testsuite/binutils-all/pr25543.s: New test.
733 * testsuite/binutils-all/pr25543.d: Test driver.
734 * testsuite/binutils-all/readelf.exp: Run the new test.
735
736990c4
NC
7362020-02-27 Nick Clifton <nickc@redhat.com>
737
738 PR 25526
739 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
740 get_data is unable to load the string table.
741
dc1e8a47
AM
7422020-02-26 Alan Modra <amodra@gmail.com>
743
744 * elfedit.c: Indent labels correctly.
745 * readelf.c: Likewise.
746 * resres.c: Likewise.
747
ecda9016
L
7482020-02-25 H.J. Lu <hongjiu.lu@intel.com>
749
750 PR binutils/25584
751 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
752 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
753
83d4d556
NC
7542020-02-24 Nick Clifton <nickc@redhat.com>
755
756 PR 25499
757 * doc/binutils.texi (objdump): Fix typo in description of
758 objdump's -g option.
759
bd0cf5a6
NC
7602020-02-20 Nelson Chu <nelson.chu@sifive.com>
761
762 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
763 is changed.
764
741cb839
EC
7652020-02-19 Jordan Rupprecht <rupprecht@google.com>
766
767 * objdump.c (show_line): call bfd_demangle when using do_demangle.
768
9f1528a1
AB
7692020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * configure: Regenerate.
772
3a5d12fb
FS
7732020-02-10 Fangrui Song <maskray@google.com>
774
775 * objcopy.c (parse_flags): Handle "exclude".
776 * doc/binutils.texi: Document the support.
777
678d457f
AM
7782020-02-10 Aaron Merey <amerey@redhat.com>
779
780 * binutils/testsuite/binutils-all/debuginfod.exp:
781 Replace set ::env with setenv.
46471187
AM
782 Start server before setting environment variable.
783 Specify tmpdir as the location of the server's
784 database.
785 Check additional server metrics at start-up.
678d457f 786
e8319fde
NC
7872020-02-07 Nick Clifton <nickc@redhat.com>
788
789 * README-how-to-make-a-release: Add note about updating the
790 GAS/NEWS URL in the next release.
791
9fc0b501
SB
7922020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
793
794 PR 25469
795 * readelf.c (get_machine_flags): Add support for Z80N machine
796 number.
797
e1104d08
NC
7982020-02-07 Nick Clifton <nickc@redhat.com>
799
800 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
801 of the truncated file name.
802
c2e6f744 8032020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
804
805 * objdump.c (print_jump_visualisation): New function.
806 (disassemble_bytes): Call new function.
807
02e0be69
AM
8082020-02-06 Alan Modra <amodra@gmail.com>
809
810 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
811 TCL procedure.
812 (supports_gnu_osabi): New procedure.
813 (is_generic): New, from ld-lib.exp.
814 (supports_gnu_unique): Use the above.
815
e8b79122
AM
8162020-02-04 Alan Modra <amodra@gmail.com>
817
818 * Makefile.am (CFILES): Add od-elf32_avr.c.
819 * Makefile.in: Regenerate.
820 * po/POTFILES.in: Regenerate.
821
27a45f42
AS
8222020-02-03 Andreas Schwab <schwab@linux-m68k.org>
823
824 * readelf.c (dump_relocations, dump_relocations)
825 (decode_arm_unwind_bytecode, process_dynamic_section)
826 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
827 error message.
828
0b398d69
ST
8292020-02-03 Sergei Trofimovich <siarheit@google.com>
830
831 * coffdump.c (program_name): Drop redundant definition.
832 * srconv.c (program_name): Likewise
833 * sysdump.c (program_name): Likewise
834
a8c4d40b
L
8352020-02-02 H.J. Lu <hongjiu.lu@intel.com>
836
837 PR gas/25380
838 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
839 same file with different section pointers.
840
cb6ad9bb
NC
8412020-02-01 Nick Clifton <nickc@redhat.com>
842
843 * README-how-to-make-a-release: Update with more details on the
844 release making process.
845
53943f32
NC
8462020-01-31 Nick Clifton <nickc@redhat.com>
847
848 * po/sv.po: Updated Swedish translation.
849
55be8fd0
NC
8502020-01-28 Nick Clifton <nickc@redhat.com>
851
852 * readelf.c (get_build_id): Simplify warning message about corrupt
853 notes encountered whilst scanning for the build-id.
854
82ef9cad
RM
8552020-01-27 Roland McGrath <mcgrathr@google.com>
856
857 * objcopy.c (compare_gnu_build_notes): Fix comparison results
858 for overlapping ranges so that (A == B) == (B == A) holds.
859
e3696f67
AM
8602020-01-27 Alan Modra <amodra@gmail.com>
861
862 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
863 case statement with switch statement.
864
2f796de6
NC
8652020-01-24 Nick Clifton <nickc@redhat.com>
866
867 * readelf.c (get_build_id): Fix warning messages about corrupt
868 notes.
869
24e648d4
NC
8702020-01-23 Nick Clifton <nickc@redhat.com>
871
872 * po/fr.po: Updated French translation.
873
c48acf6f
YC
8742020-01-22 Yuri Chornoivan <yurchor@mageia.org>
875
876 PR 25417
877 * readelf.c (get_alpha_symbol_other): Fix error message typo.
878
26916852
NC
8792020-01-20 Nick Clifton <nickc@redhat.com>
880
881 * po/pt.po: Updated Portuguese translation.
882 * po/uk.po: Updated Ukranian translation.
883
b248e9ce
NC
8842020-01-18 Nick Clifton <nickc@redhat.com>
885
886 * README-how-to-make-a-release: Update notes on how to cut a
887 branch for a release.
888
1b1bb2c6
NC
8892020-01-18 Nick Clifton <nickc@redhat.com>
890
891 * configure: Regenerate.
892 * po/binutils.pot: Regenerate.
893
ae774686
NC
8942020-01-18 Nick Clifton <nickc@redhat.com>
895
896 Binutils 2.34 branch created.
897
82a9ed20
TT
8982020-01-17 Thomas Troeger <tstroege@gmx.de>
899
900 * objdump.c (jump_info_visualize_address): Discard jumps that are
901 no longer needed.
902 (disassemble_bytes): Only compute the maximum level if jumps were
903 detected.
904
6a1939f5
NC
9052020-01-13 Nick Clifton <nickc@redhat.com>
906
c87c17c1 907 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
908 * testsuite/binutils-all/debuginfod.exp: New tests.
909
1d67fe3b
TT
9102020-01-13 Thomas Troeger <tstroege@gmx.de>
911
912 * objdump.c (visualize_jumps, color_output, extended_color_output)
913 (detected_jumps): New variables.
914 (usage): Add the new jump visualization options.
915 (option_values): Add new option value.
916 (long_options): Add the new option.
917 (jump_info_new, jump_info_free): New functions.
918 (jump_info_min_address, jump_info_max_address): Likewise.
919 (jump_info_end_address, jump_info_is_start_address): Likewise.
920 (jump_info_is_end_address, jump_info_size): Likewise.
921 (jump_info_unlink, jump_info_insert): Likewise.
922 (jump_info_add_front, jump_info_move_linked): Likewise.
923 (jump_info_intersect, jump_info_merge): Likewise.
924 (jump_info_sort, jump_info_visualize_address): Likewise.
925 (disassemble_jumps): New function - used to locate jumps.
926 (disassemble_bytes): Add ascii art generation.
927 (disassemble_section): Add scan to locate jumps.
928 (main): Parse the new visualization option.
929 * doc/binutils.texi: Document the new feature.
930 * NEWS: Mention the new feature.
931
a788aedd
AM
9322020-01-13 Alan Modra <amodra@gmail.com>
933
a4f2b7c5
AM
934 PR 25360
935 PR 25361
a788aedd
AM
936 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
937 fde_fc col_type and col_offset.
938 * readelf.c (apply_relocations): Move symsec check earlier.
939 (free_debug_section): Free reloc_info.
940 (process_notes_at): Free pnotes on error path.
941 (process_object): Free dump_sects here..
942 (process_archive): ..not here.
943
805f38bc
AM
9442020-01-13 Alan Modra <amodra@gmail.com>
945
946 PR 25362
947 * nm.c (display_rel_file): Free dyn_syms.
948
ffebb0bb
NC
9492020-01-09 Nick Clifton <nickc@redhat.com>
950
951 PR 25220
952 * objcopy.c (empty_name): New variable.
953 (need_sym_before): Prevent an attempt to free a static variable.
954 (filter_symbols): Avoid strcmp test by checking for pointer
955 equality.
956
ade4fd9b
NC
9572020-01-09 Nick Clifton <nickc@redhat.com>
958
959 * po/zh_TW.po: Updated Traditional Chinese translation.
960
9612020-01-09 Aaron Merey <amerey@redhat.com>
962
963 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
964 * Makefile.in: Regenerate.
965 * NEWS: Update.
966 * config.in: Regenerate.
967 * configure: Regenerate.
968 * configure.ac: Call AC_DEBUGINFOD.
969 * doc/Makefile.in: Regenerate.
970 * doc/binutils.texi: Add section on using binutils
971 with debuginfod.
972 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
973 Query debuginfod servers for the target debug file.
974 (load_separate_debug_info): Call
975 debuginfod_fetch_separate_debug_info if configured with
976 debuginfod.
977 (load_separate_debug_files): Add file argument to
978 load_separate_debug_info calls.
979 * dwarf.h (get_build_id): Add declaration.
980 * objdump.c (get_build_id): New function. Get build-id of file.
981 * readelf.c (get_build_id): Likewise.
982 * testsuite/binutils-all/debuginfod.exp: New tests.
983 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
984 section.
985
6655dba2
SB
9862020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
987
988 * readelf.c: Add support for new Z*) relocations and machine
989 types.
990
b14ce8bf
AM
9912020-01-01 Alan Modra <amodra@gmail.com>
992
993 Update year range in copyright notice of all files.
994
0b114740 995For older changes see ChangeLog-2019
3499769a 996\f
0b114740 997Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
998
999Copying and distribution of this file, with or without modification,
1000are permitted in any medium without royalty provided the copyright
1001notice and this notice are preserved.
1002
1003Local Variables:
1004mode: change-log
1005left-margin: 8
1006fill-column: 74
1007version-control: never
1008End: