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