]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
asan: readelf: memory leaks
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
f761cb13
AM
12020-03-14 Alan Modra <amodra@gmail.com>
2
3 * readelf.c (dump_section_as_strings): Free memory on error exit.
4 (dump_section_as_bytes, process_notes_at): Likewise.
5 (get_build_id): Free enote.
6
06d949ec
KR
72020-03-13 Kamil Rytarowski <n54@gmx.com>
8
9 * readelf.c (get_netbsd_elfcore_note_type): Add support for
10 NT_NETBSDCORE_LWPSTATUS notes.
11
fd486f32
AM
122020-03-13 Alan Modra <amodra@gmail.com>
13
14 * elfcomm.c (get_archive_member_name): Always return malloc'd
15 string or NULL.
16 * elfedit.c (process_archive): Tidy memory on all return paths.
17 * readelf.c (process_archive): Likewise.
18 (process_symbol_table): Likewise.
19 (ba_cache): New, replacing ..
20 (get_symbol_for_build_attribute): ..static vars here. Free
21 strtab and symtab before loading new ones. Reject symtab without
22 valid strtab in loop, breaking out of loop on valid symtab.
23 (process_file): Free ba_cache symtab and strtab here, resetting
24 ba_cache.
25
8fb879cd
AM
262020-03-12 Alan Modra <amodra@gmail.com>
27
28 * readelf.c (process_section_headers): Don't just set
29 filedata->section_headers NULL, free it first. Similarly for
30 dynamic_symbols, dynamic_strings, dynamic_syminfo and
31 symtab_shndx_list. Zero associated counts too.
32 (process_object): Free symtab_shndx_list.
33 (process_file): Free various allocated filedata tables.
34
5496f3c6
NC
352020-03-11 Nick Clifton <nickc@redhat.com>
36
37 PR 25611
38 PR 25614
39 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
40 li_segment_size fields.
41 * dwarf.c (read_debug_line_header): Record the address size and
42 segment selector size values (if present) in the lineinfo
43 structure.
44 (display_formatted_table): Warn if the format count is empty but
45 the table itself is not empty.
46 Display the format count and entry count at the start of the table
47 dump.
48 (display_debug_lines_raw): Display the address size and segement
49 selector size fields, if present.
50 * testsuite/binutils-all/dw5.W: Update expected output.
51
9cc89dc0
AM
522020-03-11 Alan Modra <amodra@gmail.com>
53
54 PR 25651
55 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
56 pad_to_set on second block of code dealing with padding.
57 Replace "c" with "num_sec" and don't recalculate number of
58 sections on second block. Size arrays using sizeof (element)
59 rather than sizeof (element type).
60
41da0822
AM
612020-03-10 Alan Modra <amodra@gmail.com>
62
63 * objdump.c (disassemble_section): Don't call qsort unless
64 sym count is at least two.
65 (disassemble_data): Don't call memcpy with NULL src.
66
95099889
AM
672020-03-09 Alan Modra <amodra@gmail.com>
68
69 PR 25645
70 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
71 to get_data rather than multiplying.
72 (dump_ia64_vms_dynamic_relocs): Likewise.
73 (process_version_sections): Correct order of size and nmemb args
74 in get_data call.
75 (process_mips_specific): Likewise.
76
a15de1f5
L
772020-03-08 H.J. Lu <hongjiu.lu@intel.com>
78
79 * readelf.c (get_dynamic_data): Replace "memory chekers" with
80 "memory checkers" in comments.
81
9979ab66
SM
822020-03-06 Simon Marchi <simon.marchi@efficios.com>
83
84 PR 25491
85 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
86 * doc/Makefile.in: Re-generate.
87
a0dcf297
NC
882020-03-06 Nick Clifton <nickc@redhat.com>
89
90 * objcopy.c (check_new_section_flags): New function. Reject the
91 SEC_COFF_SHARED flag if the target is not a COFF binary.
92 (copy_object): Call check_new_section_flags.
93 (setup_section): Likewise.
94 * doc/binutils.texi (objcopy): Add a note that the 'share' section
95 flag cannot be applied to ELF binaries.
96
a9b90127
AM
972020-03-06 Alan Modra <amodra@gmail.com>
98
99 PR 25637
100 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
101
d1faf7ca
AM
1022020-03-05 Alan Modra <amodra@gmail.com>
103
104 PR 25629
105 * objcopy.c (filter_symbols): Don't segfault on NULL
106 prefix_symbols_string.
107
eef64366
CE
1082020-03-04 Christian Eggers <ceggers@gmx.de>
109
110 * objcopy.c (copy_object): Convert from bytes to octets for
111 --gap-fill and --pad-to.
112
5be2b2f5
NC
1132020-03-03 Nick Clifton <nickc@redhat.com>
114
115 PR 25625
116 * prdbg.c (pr_tag_type): Remove call to abort.
117
b312fea1
AM
1182020-03-02 Aaron Merey <amerey@redhat.com>
119
120 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
121 selection.
122
ba3265d0
NC
1232020-03-02 Nick Clifton <nickc@redhat.com>
124
125 PR 25543
126 * readelf.c (dump_section_as_strings): Display new-line characters
127 as \n and then insert a line break.
128 * testsuite/binutils-all/pr25543.s: New test.
129 * testsuite/binutils-all/pr25543.d: Test driver.
130 * testsuite/binutils-all/readelf.exp: Run the new test.
131
736990c4
NC
1322020-02-27 Nick Clifton <nickc@redhat.com>
133
134 PR 25526
135 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
136 get_data is unable to load the string table.
137
dc1e8a47
AM
1382020-02-26 Alan Modra <amodra@gmail.com>
139
140 * elfedit.c: Indent labels correctly.
141 * readelf.c: Likewise.
142 * resres.c: Likewise.
143
ecda9016
L
1442020-02-25 H.J. Lu <hongjiu.lu@intel.com>
145
146 PR binutils/25584
147 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
148 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
149
83d4d556
NC
1502020-02-24 Nick Clifton <nickc@redhat.com>
151
152 PR 25499
153 * doc/binutils.texi (objdump): Fix typo in description of
154 objdump's -g option.
155
bd0cf5a6
NC
1562020-02-20 Nelson Chu <nelson.chu@sifive.com>
157
158 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
159 is changed.
160
741cb839
EC
1612020-02-19 Jordan Rupprecht <rupprecht@google.com>
162
163 * objdump.c (show_line): call bfd_demangle when using do_demangle.
164
9f1528a1
AB
1652020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
166
167 * configure: Regenerate.
168
3a5d12fb
FS
1692020-02-10 Fangrui Song <maskray@google.com>
170
171 * objcopy.c (parse_flags): Handle "exclude".
172 * doc/binutils.texi: Document the support.
173
678d457f
AM
1742020-02-10 Aaron Merey <amerey@redhat.com>
175
176 * binutils/testsuite/binutils-all/debuginfod.exp:
177 Replace set ::env with setenv.
46471187
AM
178 Start server before setting environment variable.
179 Specify tmpdir as the location of the server's
180 database.
181 Check additional server metrics at start-up.
678d457f 182
e8319fde
NC
1832020-02-07 Nick Clifton <nickc@redhat.com>
184
185 * README-how-to-make-a-release: Add note about updating the
186 GAS/NEWS URL in the next release.
187
9fc0b501
SB
1882020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
189
190 PR 25469
191 * readelf.c (get_machine_flags): Add support for Z80N machine
192 number.
193
e1104d08
NC
1942020-02-07 Nick Clifton <nickc@redhat.com>
195
196 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
197 of the truncated file name.
198
c2e6f744 1992020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
200
201 * objdump.c (print_jump_visualisation): New function.
202 (disassemble_bytes): Call new function.
203
02e0be69
AM
2042020-02-06 Alan Modra <amodra@gmail.com>
205
206 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
207 TCL procedure.
208 (supports_gnu_osabi): New procedure.
209 (is_generic): New, from ld-lib.exp.
210 (supports_gnu_unique): Use the above.
211
e8b79122
AM
2122020-02-04 Alan Modra <amodra@gmail.com>
213
214 * Makefile.am (CFILES): Add od-elf32_avr.c.
215 * Makefile.in: Regenerate.
216 * po/POTFILES.in: Regenerate.
217
27a45f42
AS
2182020-02-03 Andreas Schwab <schwab@linux-m68k.org>
219
220 * readelf.c (dump_relocations, dump_relocations)
221 (decode_arm_unwind_bytecode, process_dynamic_section)
222 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
223 error message.
224
0b398d69
ST
2252020-02-03 Sergei Trofimovich <siarheit@google.com>
226
227 * coffdump.c (program_name): Drop redundant definition.
228 * srconv.c (program_name): Likewise
229 * sysdump.c (program_name): Likewise
230
a8c4d40b
L
2312020-02-02 H.J. Lu <hongjiu.lu@intel.com>
232
233 PR gas/25380
234 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
235 same file with different section pointers.
236
cb6ad9bb
NC
2372020-02-01 Nick Clifton <nickc@redhat.com>
238
239 * README-how-to-make-a-release: Update with more details on the
240 release making process.
241
53943f32
NC
2422020-01-31 Nick Clifton <nickc@redhat.com>
243
244 * po/sv.po: Updated Swedish translation.
245
55be8fd0
NC
2462020-01-28 Nick Clifton <nickc@redhat.com>
247
248 * readelf.c (get_build_id): Simplify warning message about corrupt
249 notes encountered whilst scanning for the build-id.
250
82ef9cad
RM
2512020-01-27 Roland McGrath <mcgrathr@google.com>
252
253 * objcopy.c (compare_gnu_build_notes): Fix comparison results
254 for overlapping ranges so that (A == B) == (B == A) holds.
255
e3696f67
AM
2562020-01-27 Alan Modra <amodra@gmail.com>
257
258 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
259 case statement with switch statement.
260
2f796de6
NC
2612020-01-24 Nick Clifton <nickc@redhat.com>
262
263 * readelf.c (get_build_id): Fix warning messages about corrupt
264 notes.
265
24e648d4
NC
2662020-01-23 Nick Clifton <nickc@redhat.com>
267
268 * po/fr.po: Updated French translation.
269
c48acf6f
YC
2702020-01-22 Yuri Chornoivan <yurchor@mageia.org>
271
272 PR 25417
273 * readelf.c (get_alpha_symbol_other): Fix error message typo.
274
26916852
NC
2752020-01-20 Nick Clifton <nickc@redhat.com>
276
277 * po/pt.po: Updated Portuguese translation.
278 * po/uk.po: Updated Ukranian translation.
279
b248e9ce
NC
2802020-01-18 Nick Clifton <nickc@redhat.com>
281
282 * README-how-to-make-a-release: Update notes on how to cut a
283 branch for a release.
284
1b1bb2c6
NC
2852020-01-18 Nick Clifton <nickc@redhat.com>
286
287 * configure: Regenerate.
288 * po/binutils.pot: Regenerate.
289
ae774686
NC
2902020-01-18 Nick Clifton <nickc@redhat.com>
291
292 Binutils 2.34 branch created.
293
82a9ed20
TT
2942020-01-17 Thomas Troeger <tstroege@gmx.de>
295
296 * objdump.c (jump_info_visualize_address): Discard jumps that are
297 no longer needed.
298 (disassemble_bytes): Only compute the maximum level if jumps were
299 detected.
300
6a1939f5
NC
3012020-01-13 Nick Clifton <nickc@redhat.com>
302
c87c17c1 303 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
304 * testsuite/binutils-all/debuginfod.exp: New tests.
305
1d67fe3b
TT
3062020-01-13 Thomas Troeger <tstroege@gmx.de>
307
308 * objdump.c (visualize_jumps, color_output, extended_color_output)
309 (detected_jumps): New variables.
310 (usage): Add the new jump visualization options.
311 (option_values): Add new option value.
312 (long_options): Add the new option.
313 (jump_info_new, jump_info_free): New functions.
314 (jump_info_min_address, jump_info_max_address): Likewise.
315 (jump_info_end_address, jump_info_is_start_address): Likewise.
316 (jump_info_is_end_address, jump_info_size): Likewise.
317 (jump_info_unlink, jump_info_insert): Likewise.
318 (jump_info_add_front, jump_info_move_linked): Likewise.
319 (jump_info_intersect, jump_info_merge): Likewise.
320 (jump_info_sort, jump_info_visualize_address): Likewise.
321 (disassemble_jumps): New function - used to locate jumps.
322 (disassemble_bytes): Add ascii art generation.
323 (disassemble_section): Add scan to locate jumps.
324 (main): Parse the new visualization option.
325 * doc/binutils.texi: Document the new feature.
326 * NEWS: Mention the new feature.
327
a788aedd
AM
3282020-01-13 Alan Modra <amodra@gmail.com>
329
a4f2b7c5
AM
330 PR 25360
331 PR 25361
a788aedd
AM
332 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
333 fde_fc col_type and col_offset.
334 * readelf.c (apply_relocations): Move symsec check earlier.
335 (free_debug_section): Free reloc_info.
336 (process_notes_at): Free pnotes on error path.
337 (process_object): Free dump_sects here..
338 (process_archive): ..not here.
339
805f38bc
AM
3402020-01-13 Alan Modra <amodra@gmail.com>
341
342 PR 25362
343 * nm.c (display_rel_file): Free dyn_syms.
344
ffebb0bb
NC
3452020-01-09 Nick Clifton <nickc@redhat.com>
346
347 PR 25220
348 * objcopy.c (empty_name): New variable.
349 (need_sym_before): Prevent an attempt to free a static variable.
350 (filter_symbols): Avoid strcmp test by checking for pointer
351 equality.
352
ade4fd9b
NC
3532020-01-09 Nick Clifton <nickc@redhat.com>
354
355 * po/zh_TW.po: Updated Traditional Chinese translation.
356
3572020-01-09 Aaron Merey <amerey@redhat.com>
358
359 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
360 * Makefile.in: Regenerate.
361 * NEWS: Update.
362 * config.in: Regenerate.
363 * configure: Regenerate.
364 * configure.ac: Call AC_DEBUGINFOD.
365 * doc/Makefile.in: Regenerate.
366 * doc/binutils.texi: Add section on using binutils
367 with debuginfod.
368 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
369 Query debuginfod servers for the target debug file.
370 (load_separate_debug_info): Call
371 debuginfod_fetch_separate_debug_info if configured with
372 debuginfod.
373 (load_separate_debug_files): Add file argument to
374 load_separate_debug_info calls.
375 * dwarf.h (get_build_id): Add declaration.
376 * objdump.c (get_build_id): New function. Get build-id of file.
377 * readelf.c (get_build_id): Likewise.
378 * testsuite/binutils-all/debuginfod.exp: New tests.
379 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
380 section.
381
6655dba2
SB
3822020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
383
384 * readelf.c: Add support for new Z*) relocations and machine
385 types.
386
b14ce8bf
AM
3872020-01-01 Alan Modra <amodra@gmail.com>
388
389 Update year range in copyright notice of all files.
390
0b114740 391For older changes see ChangeLog-2019
3499769a 392\f
0b114740 393Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
394
395Copying and distribution of this file, with or without modification,
396are permitted in any medium without royalty provided the copyright
397notice and this notice are preserved.
398
399Local Variables:
400mode: change-log
401left-margin: 8
402fill-column: 74
403version-control: never
404End: