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