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