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