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