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