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