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