gdbserver: Move remote_debug to a single place
[external/binutils.git] / binutils / ChangeLog
1 2019-04-16  Alan Modra  <amodra@gmail.com>
2
3         * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
4         * testsuite/binutils-all/copy-3.d: Likewise.
5
6 2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7
8         * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
9
10 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
11
12         * readelf.c (decode_x86_isa): Handle
13         GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
14         * testsuite/binutils-all/i386/pr21231b.d: Updated.
15         * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
16
17 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
18
19         * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
20
21 2019-03-26  Tamar Christina  <tamar.christina@arm.com>
22
23         * testsuite/binutils-all/aarch64/in-order-all.d: Update.
24         * testsuite/binutils-all/aarch64/in-order.d: Likewise.
25         * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
26         * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
27         * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
28         * testsuite/binutils-all/arm/in-order-all.d: Likewise.
29         * testsuite/binutils-all/arm/in-order.d: Likewise.
30         * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
31         * testsuite/binutils-all/arm/out-of-order.d: Likewise.
32         * testsuite/binutils-all/arm/out-of-order.s: Likewise.
33
34 2019-03-26  Nick Clifton  <nickc@redhat.com>
35
36         * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
37         FRV and MEP.
38
39 2019-03-26  Alan Modra  <amodra@gmail.com>
40
41         * objdump.c (dump_relocs_in_section): Warning fix.
42
43 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
44
45         * testsuite/binutils-all/arm/in-order-all.d: New test.
46         * testsuite/binutils-all/arm/in-order.d: New test.
47         * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
48         * testsuite/binutils-all/arm/out-of-order-all.d: New test.
49         * testsuite/binutils-all/arm/out-of-order.T: New test.
50         * testsuite/binutils-all/arm/out-of-order.d: New test.
51         * testsuite/binutils-all/arm/out-of-order.s: New test.
52
53
54 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
55
56         * testsuite/binutils-all/aarch64/in-order-all.d: New test.
57         * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
58         * testsuite/binutils-all/aarch64/out-of-order.d:
59
60 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
61
62         * testsuite/binutils-all/aarch64/in-order.d: New test.
63         * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
64         well.
65
66 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
67
68         * objdump.c (disassemble_bytes): Pass stop_offset.
69         * testsuite/binutils-all/aarch64/out-of-order.T: New test.
70         * testsuite/binutils-all/aarch64/out-of-order.d: New test.
71         * testsuite/binutils-all/aarch64/out-of-order.s: New test.
72
73 2019-03-19  Nick Clifton  <nickc@redhat.com>
74
75         PR 24360
76         * objdump.c (load_specific_debug_section): Check that the amount
77         of memory to be allocated matches the size of the section.
78
79 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
80
81         * readelf.c (get_aarch64_dynamic_type): Add case for
82         DT_AARCH64_PAC_PLT.
83         (dynamic_section_aarch64_val): Likewise.
84
85 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
86             Szabolcs Nagy  <szabolcs.nagy@arm.com>
87
88         * readelf.c (get_aarch64_dynamic_type): New.
89         (get_dynamic_type): Use above for EM_AARCH64.
90         (dynamic_section_aarch64_val): New.
91         (process_dynamic_section): Use above for EM_AARCH64.
92
93 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
94
95         * readelf.c (decode_aarch64_feature_1_and): New.
96         (print_gnu_property_note): Add case for AArch64 gnu notes.
97
98 2019-03-12  Alan Modra  <amodra@gmail.com>
99
100         * objdump.c (load_specific_debug_section): Don't compare section
101         size against file size.
102         (dump_relocs_in_section): Don't compare reloc size against file size.
103         Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
104
105 2019-03-05  Nick Clifton  <nickc@redhat.com>
106
107         PR 24295
108         * doc/binutils.texi (ar cmdline): Fix spelling mistake.
109
110 2019-03-05  Nick Clifton  <nickc@redhat.com>
111
112         * po/sv.po: Updated Swedish translation.
113
114 2019-03-05  Matthew Malcomson  <matthew.malcomson@arm.com>
115
116         PR 24287
117         * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
118         of "lmap" with a "foreach" loop.
119
120 2019-03-04  Nick Clifton  <nickc@redhat.com>
121
122         PR 24281
123         * objcopy.c (copy_archive): Do not copy thin  archives.
124
125 2019-02-27  Matthew Malcomson  <matthew.malcomson@arm.com>
126
127         * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
128
129 2019-02-25  Nick Clifton  <nickc@redhat.com>
130
131         * objdump.c (sym_ok): New function.
132         (find_symbol_for_address): Use new function.
133         (disassemble_section): Compare sections by name, not pointer.
134         (dump_dwarf): Move code to initialise byte_get pointer and iterate
135         over separate debug files from here to ...
136         (dump_bfd): ... here.  Add parameter indicating that a separate
137         debug info file is being dumped.  For main file, pull in the
138         symbol tables from all separate debug info files.
139         (display_object): Update call to dump_bfd.
140         * doc/binutils.texi: Document extened behaviour of the
141         --dwarf=follow-links option.
142         * NEWS: Mention this new feature.
143         * testsuite/binutils-all/objdump.WK2: Update expected output.
144         * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
145         options and dump file parameters.
146         Add extra test.
147         * testsuite/binutils-all/objdump.WK3: New file.
148         * testsuite/binutils-all/readelf.exp: Change expected output for
149         readelf -wKis test.
150         * testsuite/binutils-all/readelf.wKis: New file.
151
152 2019-02-22  Nick Clifton  <nickc@redhat.com>
153
154         PR 23843
155         * dwarf.h (struct separate_info): New structure for containing
156         information on separate debug info files.
157         * dwarf.c (struct dwo_info): New structure for containing dwo
158         links.
159         (first_dwo_info): Chain of dwo_info structures.
160         (first_separate_file): Chain of separate_info structures.
161         (separate_debug_file, separate_debug_filename): Delete.
162         (fetch_alt_indirect_string): Scan all separate debug info files
163         for the requested string.
164         (add_dwo_info): New function.
165         (add_dwo_name): New function.
166         (add_dwo_dir): New function.
167         (add_dwo_id: New function.
168         (free_dwo_info): New function.
169         (read_and_display_attr_value): Store DWO data using the new
170         functions.
171         (load_debug_section_with_follow): If necessary, scan the list of
172         separate debug info files for the requested section.
173         (add_separate_debug_file): New function.
174         (load_separate_debug_info): Call add_separate_debug_file to store
175         the information on the newly loaded file.
176         (load_dwo_file): Likewise.
177         (load_separate_debif_file): Rename to load_separate_debug_files.
178         Change return type to boolean.  If following links then attempt to
179         load all separate debug info files, not just the first one.
180         (free_debug_memory): Release memory in dwo_info and separate_info
181         chains.
182         * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
183         * readelf.c (process_object): Likewise.
184         * doc/debug.options.texi: Update descriptions of links and
185         follow-links options.
186         * testsuite/binutils-all/objdump.WK2: Update expected output.
187         * testsuite/binutils-all/readelf.k2: Likewise.
188         * NEWS: Announce the new feature.
189
190 2019-02-21  Nick Clifton  <nickc@redhat.com>
191
192         PR 24247
193         * unwind-ia64.c: Include sysdep.h.
194         (unw_decode_x1): Check current pointer against end pointer before
195         accessing memory.
196         (unw_decode_x2): Likewise.
197         (unw_decode_x3): Likewise.
198         (unw_decode_x4): Likewise.
199         (unw_decode_r2): Likewise.
200         (unw_decode_p2_p5): Likewise.
201         (unw_decode_p7_p10): Likewise.
202         (unw_decode): Likewise.
203
204 2019-02-20  Nick Clifton  <nickc@redhat.com>
205
206         PR 24246
207         * readelf.c (print_stapsdt_note): Harden against corrupt notes.
208
209         PR 24244
210         * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
211         prevent walking off the end of the buffer.
212         (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
213         (unw_decode_x2): Likewise.
214         (unw_decode_x3): Likewise.
215         (unw_decode_x4): Likewise.
216         (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
217         (unw_decode_r3): Likewise.
218         (unw_decode_p7_p10): Likewise.
219         (unw_decode_b2): Likewise.
220         (unw_decode_b3_x4): Likewise.
221
222         PR 24243
223         * readelf.c (process_mips_specific): Check for an options section
224         that is too small to even contain a single option.
225
226         PR 24242
227         * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
228
229 2019-02-20  Alan Modra  <amodra@gmail.com>
230
231         PR 24132
232         PR 24138
233         * readelf.c (get_data): Avoid possibility of overflow when
234         checking for a read that may extend past end of file.
235         (process_program_headers): Likewise.
236
237 2019-02-20  Alan Modra  <amodra@gmail.com>
238
239         PR 24233
240         * objdump.c (dump_bfd_private_header): Print warning if
241         bfd_print_private_bfd_data returns false.
242
243 2019-02-12  Nick Clifton  <nickc@redhat.com>
244
245         PR 23440
246         * README-how-to-make-a-release: Use git clean to delete spurious
247         files from the local source repository.
248
249 2019-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
250
251         * size.c (berkeley_format): Delete.
252         (enum output_format): New enum.
253         (selected_output_format): New variable.
254         (usage): Update to mention GNU format.
255         (main): Update to extract options, and select format as needed.
256         Handle GNU format where needed.
257         (berkeley_sum): Renamed to...
258         (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
259         (berkeley_format): Renamed to...
260         (berkeley_or_gnu_format): ...this, and updated to handle both
261         formats.
262         (print_sizes): Handle GNU format.
263         * doc/binutils.texi (size): Document new GNU format.
264         * testsuite/binutils-all/size.exp: Add test of extended
265         functionality.
266         * NEWS: Mention new functionality.
267
268 2019-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
269
270         * doc/binutils.texi (size): Update example output for Berkeley
271         format output.
272
273 2019-02-07  Nick Clifton  <nickc@redhat.com>
274
275         * README-how-to-make-a-release: Add a note about updating the
276         obsolete targets in the bfd/config.bfd file.
277
278 2019-02-04  Nick Clifton  <nickc@redhat.com>
279
280         * README-how-to-make-a-release: Add more notes on making a release.
281
282 2019-01-25  Nick Clifton  <nickc@redhat.com>
283
284         PR 24131
285         * readelf.c (process_notes_at): Prevent an illegal memory access
286         when the note's namesize is zero.
287         (decode_tic6x_unwind_bytecode): Add code to handle the case where
288         no registers are specified in a frame pop instruction.
289
290 2019-01-25  Nick Clifton  <nickc@redhat.com>
291
292         * po/bg.po: Updated Bulgarian translation.
293
294 2019-01-23  Nick Clifton  <nickc@redhat.com>
295
296         * po/fr.po: Updated French translation.
297         * po/pt.po: Updated Portuguese translation.
298
299 2019-01-21  Nick Clifton  <nickc@redhat.com>
300
301         * po/uk.po: Updated Ukranian translation.
302
303 2019-01-19  Nick Clifton  <nickc@redhat.com>
304
305         * configure: Regenerate.
306         * binutils/po/binutils.pot.
307
308         * README-how-to-make-a-release: Update description on how to make
309         a branch.
310
311 2018-06-24  Nick Clifton  <nickc@redhat.com>
312
313         2.32 branch created.
314
315 2019-01-17  Nick Clifton  <nickc@redhat.com>
316
317         * objdump.c (disassemble_section): When disassembling from a
318         symbol only stop at the next symbol if the original symbol was not
319         a function symbol.  Otherwise continue disassembling until a new
320         function is reached.
321         * testsuite/binutils-all/objdump.exp: Add tests of extended
322         functionality.
323         * testsuite/binutils-all/disasm.s: New test source file.
324
325 2019-01-16  Kito Cheng  <kito@andestech.com>
326             Nelson Chu  <nelson@andestech.com>
327
328         * readelf.c (get_riscv_section_type_name): New function.
329         (get_section_type_name): Add handler for RISC-V.
330         (riscv_attr_tag_t): Declare.
331         (riscv_attr_tag): New.
332         (display_riscv_attribute): New function.
333         (process_attributes): Add handler for RISC-V.
334         * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
335         section.
336
337 2019-01-10  Nick Clifton  <nickc@redhat.com>
338
339         PR 23963
340         * objdump.c (sanitize_string): New function.  Removes control
341         characters from symbol names.
342         (dump_section_header): Use new function.
343         (objdump_print_symname): Likewise.
344         (objdump_print_addr_with_sym): Likewise.
345         (show_line): Likewise.
346         (disassemble_bytes): Likewise.
347         (disassemble_section): Likewise.
348         (load_specific_debug_section): Likewise.
349         (read_section_stabs): Likewise.
350         (print_section_stabs): Likewise.
351         (dump_section): Likewise.
352         (dump_reloc_set): Likewise.
353         (dump_relocs_in_section): Likewise.
354         (dump_bfd): Likewise.
355         (display_any_bfd): Likewise.
356
357 2019-01-09  Nick Clifton  <nickc@redhat.com>
358
359         PR 24049
360         * readelf.c (process_archive): Use arch.file_name in error
361         messages until the qualified name is available.
362
363 2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
364
365         * configure: Regenerate.
366
367 2019-01-09  Alan Modra  <amodra@gmail.com>
368
369         * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
370         unconditionally to tests needing the option rather than via a
371         list of targets.
372
373 2019-01-08  Nick Clifton  <nickc@redhat.com>
374
375         PR 24044
376         * cxxfilt.c (hp_symbol_characters): Delete.
377         (main): Remove depcreated demangling styles.
378         * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
379         demangling opnames.
380         * testsuite/binutils-all/cxxfilt.exp: Use the
381         --no-strip-underscore option for targets that do prefix their
382         symbols with underscores.
383         Update tests to eliminate those that use gnu v2 encoding.
384
385 2019-01-08  Tamar Christina  <tamar.christina@arm.com>
386
387         PR 24065
388         * testsuite/binutils-all/copy-6.d: New test.
389         * testsuite/binutils-all/objcopy.exp: Use it.
390
391 2019-01-08  Alan Modra  <amodra@gmail.com>
392
393         * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
394         $srcdir/$subdir to source file name if it starts with "./".
395
396 2019-01-05  Yoshinori Sato <ysato@users.sourceforge.jp>
397
398         * readelf.c (get_machine_flags): Add RXv3 output.
399
400 2019-01-04  Nick Clifton  <nickc@redhat.com>
401
402         PR 24005
403         * objdump.c (load_specific_debug_section): Check for integer
404         overflow before attempting to allocate contents.
405
406 2019-01-04  Nick Clifton  <nickc@redhat.com>
407
408         PR 24001
409         * objcopy.c (copy_object): Free dhandle after writing out the
410         debug information.
411         * objdump.c (dump_bfd): Free dhandle after printing out the debug
412         information.
413
414
415 2019-01-01  Alan Modra  <amodra@gmail.com>
416
417         Update year range in copyright notice of all files.
418
419 For older changes see ChangeLog-2018
420 \f
421 Copyright (C) 2019 Free Software Foundation, Inc.
422
423 Copying and distribution of this file, with or without modification,
424 are permitted in any medium without royalty provided the copyright
425 notice and this notice are preserved.
426
427 Local Variables:
428 mode: change-log
429 left-margin: 8
430 fill-column: 74
431 version-control: never
432 End: