Fix compile time warnings about the possibility of using uninitialised fields in...
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2020-03-20 Nick Clifton <nickc@redhat.com>
2
3 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
4 (process_section_headers): Check the return value from
5 get_compression_header.
6 (dump_section_as_strings): Likewise.
7 (dump_section_as_bytes): Likewise.
8 (load_specific_debug_section): Likewise.
9
10 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
11
12 * ar.c (main): Update bfd_plugin_set_program_name call.
13 * nm.c (main): Likewise.
14
15 2020-03-19 Nick Clifton <nickc@redhat.com>
16
17 PR 25676
18 * testsuite/binutils-all/dw4.s: New test source file.
19 * testsuite/binutils-all/nm.exp: Run the new test.
20
21 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
22
23 * readelf.c (process_symbol_table): Use unsigned long for si.
24
25 2020-03-19 Alan Modra <amodra@gmail.com>
26
27 * elfcomm.c: Don't include bfd.h or bucomm.h.
28 (program_name): Declare.
29 (process_archive_index_and_symbols): Replace bfd_boolean with int,
30 and substitute FALSE and TRUE.
31 (setup_archive, setup_nested_archive): Likewise.
32 * elfcomm.h: Likewise.
33
34 2020-03-19 Alan Modra <amodra@gmail.com>
35
36 * readelf.c (process_archive): Always return via path freeing
37 memory. Formatting.
38
39 2020-03-19 Alan Modra <amodra@gmail.com>
40
41 * readelf.c (process_netbsd_elf_note): Validate descsz before
42 accessing descdata. Formatting.
43
44 2020-03-19 Alan Modra <amodra@gmail.com>
45
46 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
47 * elfcomm.h (setup_archive): Update prototype.
48
49 2020-03-16 Alan Modra <amodra@gmail.com>
50
51 * readelf.c (get_symbols): New function.
52 (process_relocs, ia64_process_unwind, hppa_process_unwind),
53 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
54
55 2020-03-16 Alan Modra <amodra@gmail.com>
56
57 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
58 Detect shift overflows and check that terminating byte is found.
59 Print an error on a bad uleb128.
60
61 2020-03-14 Alan Modra <amodra@gmail.com>
62
63 * readelf.c (process_file): Clean ba_cache.
64
65 2020-03-14 Alan Modra <amodra@gmail.com>
66
67 * elfcomm.h (setup_archive): Update prototype.
68 * elfcomm.c (setup_archive): Add file_size parameter and sanity
69 check longnames_size.
70 (setup_nested_archive): Get file size and pass to setup_archive.
71 * elfedit.c (process_archive): Likewise.
72 * readelf.c (process_archive): Pass filedata->file_size to
73 setup_archive.
74
75 2020-03-14 Alan Modra <amodra@gmail.com>
76
77 * readelf.c (dump_section_as_strings): Free memory on error exit.
78 (dump_section_as_bytes, process_notes_at): Likewise.
79 (get_build_id): Free enote.
80
81 2020-03-13 Kamil Rytarowski <n54@gmx.com>
82
83 * readelf.c (get_netbsd_elfcore_note_type): Add support for
84 NT_NETBSDCORE_LWPSTATUS notes.
85
86 2020-03-13 Alan Modra <amodra@gmail.com>
87
88 * elfcomm.c (get_archive_member_name): Always return malloc'd
89 string or NULL.
90 * elfedit.c (process_archive): Tidy memory on all return paths.
91 * readelf.c (process_archive): Likewise.
92 (process_symbol_table): Likewise.
93 (ba_cache): New, replacing ..
94 (get_symbol_for_build_attribute): ..static vars here. Free
95 strtab and symtab before loading new ones. Reject symtab without
96 valid strtab in loop, breaking out of loop on valid symtab.
97 (process_file): Free ba_cache symtab and strtab here, resetting
98 ba_cache.
99
100 2020-03-12 Alan Modra <amodra@gmail.com>
101
102 * readelf.c (process_section_headers): Don't just set
103 filedata->section_headers NULL, free it first. Similarly for
104 dynamic_symbols, dynamic_strings, dynamic_syminfo and
105 symtab_shndx_list. Zero associated counts too.
106 (process_object): Free symtab_shndx_list.
107 (process_file): Free various allocated filedata tables.
108
109 2020-03-11 Nick Clifton <nickc@redhat.com>
110
111 PR 25611
112 PR 25614
113 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
114 li_segment_size fields.
115 * dwarf.c (read_debug_line_header): Record the address size and
116 segment selector size values (if present) in the lineinfo
117 structure.
118 (display_formatted_table): Warn if the format count is empty but
119 the table itself is not empty.
120 Display the format count and entry count at the start of the table
121 dump.
122 (display_debug_lines_raw): Display the address size and segement
123 selector size fields, if present.
124 * testsuite/binutils-all/dw5.W: Update expected output.
125
126 2020-03-11 Alan Modra <amodra@gmail.com>
127
128 PR 25651
129 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
130 pad_to_set on second block of code dealing with padding.
131 Replace "c" with "num_sec" and don't recalculate number of
132 sections on second block. Size arrays using sizeof (element)
133 rather than sizeof (element type).
134
135 2020-03-10 Alan Modra <amodra@gmail.com>
136
137 * objdump.c (disassemble_section): Don't call qsort unless
138 sym count is at least two.
139 (disassemble_data): Don't call memcpy with NULL src.
140
141 2020-03-09 Alan Modra <amodra@gmail.com>
142
143 PR 25645
144 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
145 to get_data rather than multiplying.
146 (dump_ia64_vms_dynamic_relocs): Likewise.
147 (process_version_sections): Correct order of size and nmemb args
148 in get_data call.
149 (process_mips_specific): Likewise.
150
151 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
152
153 * readelf.c (get_dynamic_data): Replace "memory chekers" with
154 "memory checkers" in comments.
155
156 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
157
158 PR 25491
159 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
160 * doc/Makefile.in: Re-generate.
161
162 2020-03-06 Nick Clifton <nickc@redhat.com>
163
164 * objcopy.c (check_new_section_flags): New function. Reject the
165 SEC_COFF_SHARED flag if the target is not a COFF binary.
166 (copy_object): Call check_new_section_flags.
167 (setup_section): Likewise.
168 * doc/binutils.texi (objcopy): Add a note that the 'share' section
169 flag cannot be applied to ELF binaries.
170
171 2020-03-06 Alan Modra <amodra@gmail.com>
172
173 PR 25637
174 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
175
176 2020-03-05 Alan Modra <amodra@gmail.com>
177
178 PR 25629
179 * objcopy.c (filter_symbols): Don't segfault on NULL
180 prefix_symbols_string.
181
182 2020-03-04 Christian Eggers <ceggers@gmx.de>
183
184 * objcopy.c (copy_object): Convert from bytes to octets for
185 --gap-fill and --pad-to.
186
187 2020-03-03 Nick Clifton <nickc@redhat.com>
188
189 PR 25625
190 * prdbg.c (pr_tag_type): Remove call to abort.
191
192 2020-03-02 Aaron Merey <amerey@redhat.com>
193
194 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
195 selection.
196
197 2020-03-02 Nick Clifton <nickc@redhat.com>
198
199 PR 25543
200 * readelf.c (dump_section_as_strings): Display new-line characters
201 as \n and then insert a line break.
202 * testsuite/binutils-all/pr25543.s: New test.
203 * testsuite/binutils-all/pr25543.d: Test driver.
204 * testsuite/binutils-all/readelf.exp: Run the new test.
205
206 2020-02-27 Nick Clifton <nickc@redhat.com>
207
208 PR 25526
209 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
210 get_data is unable to load the string table.
211
212 2020-02-26 Alan Modra <amodra@gmail.com>
213
214 * elfedit.c: Indent labels correctly.
215 * readelf.c: Likewise.
216 * resres.c: Likewise.
217
218 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
219
220 PR binutils/25584
221 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
222 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
223
224 2020-02-24 Nick Clifton <nickc@redhat.com>
225
226 PR 25499
227 * doc/binutils.texi (objdump): Fix typo in description of
228 objdump's -g option.
229
230 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
231
232 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
233 is changed.
234
235 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
236
237 * objdump.c (show_line): call bfd_demangle when using do_demangle.
238
239 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
240
241 * configure: Regenerate.
242
243 2020-02-10 Fangrui Song <maskray@google.com>
244
245 * objcopy.c (parse_flags): Handle "exclude".
246 * doc/binutils.texi: Document the support.
247
248 2020-02-10 Aaron Merey <amerey@redhat.com>
249
250 * binutils/testsuite/binutils-all/debuginfod.exp:
251 Replace set ::env with setenv.
252 Start server before setting environment variable.
253 Specify tmpdir as the location of the server's
254 database.
255 Check additional server metrics at start-up.
256
257 2020-02-07 Nick Clifton <nickc@redhat.com>
258
259 * README-how-to-make-a-release: Add note about updating the
260 GAS/NEWS URL in the next release.
261
262 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
263
264 PR 25469
265 * readelf.c (get_machine_flags): Add support for Z80N machine
266 number.
267
268 2020-02-07 Nick Clifton <nickc@redhat.com>
269
270 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
271 of the truncated file name.
272
273 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * objdump.c (print_jump_visualisation): New function.
276 (disassemble_bytes): Call new function.
277
278 2020-02-06 Alan Modra <amodra@gmail.com>
279
280 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
281 TCL procedure.
282 (supports_gnu_osabi): New procedure.
283 (is_generic): New, from ld-lib.exp.
284 (supports_gnu_unique): Use the above.
285
286 2020-02-04 Alan Modra <amodra@gmail.com>
287
288 * Makefile.am (CFILES): Add od-elf32_avr.c.
289 * Makefile.in: Regenerate.
290 * po/POTFILES.in: Regenerate.
291
292 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
293
294 * readelf.c (dump_relocations, dump_relocations)
295 (decode_arm_unwind_bytecode, process_dynamic_section)
296 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
297 error message.
298
299 2020-02-03 Sergei Trofimovich <siarheit@google.com>
300
301 * coffdump.c (program_name): Drop redundant definition.
302 * srconv.c (program_name): Likewise
303 * sysdump.c (program_name): Likewise
304
305 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
306
307 PR gas/25380
308 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
309 same file with different section pointers.
310
311 2020-02-01 Nick Clifton <nickc@redhat.com>
312
313 * README-how-to-make-a-release: Update with more details on the
314 release making process.
315
316 2020-01-31 Nick Clifton <nickc@redhat.com>
317
318 * po/sv.po: Updated Swedish translation.
319
320 2020-01-28 Nick Clifton <nickc@redhat.com>
321
322 * readelf.c (get_build_id): Simplify warning message about corrupt
323 notes encountered whilst scanning for the build-id.
324
325 2020-01-27 Roland McGrath <mcgrathr@google.com>
326
327 * objcopy.c (compare_gnu_build_notes): Fix comparison results
328 for overlapping ranges so that (A == B) == (B == A) holds.
329
330 2020-01-27 Alan Modra <amodra@gmail.com>
331
332 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
333 case statement with switch statement.
334
335 2020-01-24 Nick Clifton <nickc@redhat.com>
336
337 * readelf.c (get_build_id): Fix warning messages about corrupt
338 notes.
339
340 2020-01-23 Nick Clifton <nickc@redhat.com>
341
342 * po/fr.po: Updated French translation.
343
344 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
345
346 PR 25417
347 * readelf.c (get_alpha_symbol_other): Fix error message typo.
348
349 2020-01-20 Nick Clifton <nickc@redhat.com>
350
351 * po/pt.po: Updated Portuguese translation.
352 * po/uk.po: Updated Ukranian translation.
353
354 2020-01-18 Nick Clifton <nickc@redhat.com>
355
356 * README-how-to-make-a-release: Update notes on how to cut a
357 branch for a release.
358
359 2020-01-18 Nick Clifton <nickc@redhat.com>
360
361 * configure: Regenerate.
362 * po/binutils.pot: Regenerate.
363
364 2020-01-18 Nick Clifton <nickc@redhat.com>
365
366 Binutils 2.34 branch created.
367
368 2020-01-17 Thomas Troeger <tstroege@gmx.de>
369
370 * objdump.c (jump_info_visualize_address): Discard jumps that are
371 no longer needed.
372 (disassemble_bytes): Only compute the maximum level if jumps were
373 detected.
374
375 2020-01-13 Nick Clifton <nickc@redhat.com>
376
377 * objdump.c (disassemble_bytes): Remove C99-ism.
378 * testsuite/binutils-all/debuginfod.exp: New tests.
379
380 2020-01-13 Thomas Troeger <tstroege@gmx.de>
381
382 * objdump.c (visualize_jumps, color_output, extended_color_output)
383 (detected_jumps): New variables.
384 (usage): Add the new jump visualization options.
385 (option_values): Add new option value.
386 (long_options): Add the new option.
387 (jump_info_new, jump_info_free): New functions.
388 (jump_info_min_address, jump_info_max_address): Likewise.
389 (jump_info_end_address, jump_info_is_start_address): Likewise.
390 (jump_info_is_end_address, jump_info_size): Likewise.
391 (jump_info_unlink, jump_info_insert): Likewise.
392 (jump_info_add_front, jump_info_move_linked): Likewise.
393 (jump_info_intersect, jump_info_merge): Likewise.
394 (jump_info_sort, jump_info_visualize_address): Likewise.
395 (disassemble_jumps): New function - used to locate jumps.
396 (disassemble_bytes): Add ascii art generation.
397 (disassemble_section): Add scan to locate jumps.
398 (main): Parse the new visualization option.
399 * doc/binutils.texi: Document the new feature.
400 * NEWS: Mention the new feature.
401
402 2020-01-13 Alan Modra <amodra@gmail.com>
403
404 PR 25360
405 PR 25361
406 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
407 fde_fc col_type and col_offset.
408 * readelf.c (apply_relocations): Move symsec check earlier.
409 (free_debug_section): Free reloc_info.
410 (process_notes_at): Free pnotes on error path.
411 (process_object): Free dump_sects here..
412 (process_archive): ..not here.
413
414 2020-01-13 Alan Modra <amodra@gmail.com>
415
416 PR 25362
417 * nm.c (display_rel_file): Free dyn_syms.
418
419 2020-01-09 Nick Clifton <nickc@redhat.com>
420
421 PR 25220
422 * objcopy.c (empty_name): New variable.
423 (need_sym_before): Prevent an attempt to free a static variable.
424 (filter_symbols): Avoid strcmp test by checking for pointer
425 equality.
426
427 2020-01-09 Nick Clifton <nickc@redhat.com>
428
429 * po/zh_TW.po: Updated Traditional Chinese translation.
430
431 2020-01-09 Aaron Merey <amerey@redhat.com>
432
433 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
434 * Makefile.in: Regenerate.
435 * NEWS: Update.
436 * config.in: Regenerate.
437 * configure: Regenerate.
438 * configure.ac: Call AC_DEBUGINFOD.
439 * doc/Makefile.in: Regenerate.
440 * doc/binutils.texi: Add section on using binutils
441 with debuginfod.
442 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
443 Query debuginfod servers for the target debug file.
444 (load_separate_debug_info): Call
445 debuginfod_fetch_separate_debug_info if configured with
446 debuginfod.
447 (load_separate_debug_files): Add file argument to
448 load_separate_debug_info calls.
449 * dwarf.h (get_build_id): Add declaration.
450 * objdump.c (get_build_id): New function. Get build-id of file.
451 * readelf.c (get_build_id): Likewise.
452 * testsuite/binutils-all/debuginfod.exp: New tests.
453 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
454 section.
455
456 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
457
458 * readelf.c: Add support for new Z*) relocations and machine
459 types.
460
461 2020-01-01 Alan Modra <amodra@gmail.com>
462
463 Update year range in copyright notice of all files.
464
465 For older changes see ChangeLog-2019
466 \f
467 Copyright (C) 2020 Free Software Foundation, Inc.
468
469 Copying and distribution of this file, with or without modification,
470 are permitted in any medium without royalty provided the copyright
471 notice and this notice are preserved.
472
473 Local Variables:
474 mode: change-log
475 left-margin: 8
476 fill-column: 74
477 version-control: never
478 End:
This page took 0.060866 seconds and 5 git commands to generate.