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