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