d071381d46842f28b0cabe35e0e6b261f08c4d39
[external/binutils.git] / binutils / ChangeLog
1 2014-11-04  Matthew Fortune  <matthew.fortune@imgtec.com>
2
3         * readelf.c (process_mips_specific): Rename index to idx.
4
5 2014-11-04  Nick Clifton  <nickc@redhat.com>
6
7         PR binutils/17531
8         * readelf.c (get_data): If the reason parameter is null, do not
9         print any error messages.
10         (get_32bit_section_headers): Verify section header entry size
11         before reading in the section headers.
12         (get_64bit_section_headers): Likewise.
13         (process_section_headers): Pass FALSE to get_section_headers.
14         (get_file_header): Pass TRUE to get_section_headers.
15         (process_dynamic_section): Change an assert to an error message.
16         (process_symbol_table): Handle corrupt histograms.
17
18         (get_32bit_program_headers): Verify program header entry size
19         before reading in the program headers.
20         (get_64bit_program_headers): Likewise.
21         (get_unwind_section_word): Do nothing if no section was provided.
22         Fail if the offset is outside of the section.
23         (print_dynamic_symbol): Catch out of range symbol indicies.
24         (process_mips_specific): Likewise.
25         (process_attributes): Make sure that there is enough space left in
26         the section before attempting to read the length of the next
27         attribute.
28
29 2014-11-03  Nick Clifton  <nickc@redhat.com>
30
31         PR binutils/17512
32         * objdump.c (slurp_symtab): Fail gracefully if the table could not
33         be read.
34         (dump_relocs_in_section): Likewise.
35
36 2014-11-03  Nick Clifton  <nickc@redhat.com>
37
38         * po/fi.po: Updated Finnish translation.
39         * po/sv.po: Updated Swedish translation.
40
41 2014-11-01  Hans-Peter Nilsson  <hp@axis.com>
42
43         * readelf.c (get_32bit_elf_symbols): Cast error
44         parameters of bfd_size_type with the %lx format to
45         unsigned long.
46
47 2014-10-31  Andrew Pinski  <apinski@cavium.com>
48             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
49
50         * readelf.c (print_mips_isa_ext): Print the value of Octeon3.
51
52 2014-10-31  Iain Buclaw  <ibuclaw@gdcproject.org>
53
54         * cxxfilt.c (main): Add case for dlang_demangling style.
55
56 2014-10-31  Nick Clifton  <nickc@redhat.com>
57
58         PR binutils/17512
59         * readelf.c (process_program_headers): Avoid memory exhaustion due
60         to corrupt values in a dynamis segment header.
61         (get_32bit_elf_symbols): Do not attempt to read an over-large
62         section.
63         (get_64bit_elf_symbols): Likewise.
64
65 2014-10-31  Nick Clifton  <nickc@redhat.com>
66
67         * strings.c: Add new command line option --data to only scan the
68         initialized, loadable data secions of binaries.  Choose the
69         default behaviour of --all or --data based upon a configure
70         option.
71         * doc/binutils.texi (strings): Update documentation.  Include
72         description  of why the --data option might be unsafe.
73         * configure.ac: Add new option --disable-default-strings-all which
74         restores the old behaviour of strings using --data by default.  If
75         the option is not used make strings use --all by default.
76         * NEWS: Mention the new behaviour of strings.
77         * configure: Regenerate.
78         * config.in: Regenerate.
79
80 2014-10-30  Nick Clifton  <nickc@redhat.com>
81
82         * readelf.c (CHECK_ENTSIZE_VALUES): Rewrite error message so that
83         there is a single string for translation.
84         (dynamic_section_mips_val): Likewise.
85
86 2014-10-29  Nick Clifton  <nickc@redhat.com>
87
88         * po/bg.po: Updated Bulgarian translation.
89         * po/sr.po: New Serbian translation.
90         * po/sv.po: Updated Swedish translation.
91
92 2014-10-22  Matthew Fortune  <matthew.fortune@imgtec.com>
93
94         * readelf.c (print_mips_ases): Print unknown ASEs.
95         (print_mips_isa_ext): Print the value of an unknown extension.
96
97 2014-10-15  Tristan Gingold  <gingold@adacore.com>
98
99         * configure: Regenerate.
100
101 2014-10-14  Tristan Gingold  <gingold@adacore.com>
102
103         * NEWS: Add marker for 2.25.
104
105 2014-10-14  Alan Modra  <amodra@gmail.com>
106
107         PR 17453
108         * dwarf.c (read_leb128): Avoid signed overflow.
109         (read_debug_line_header): Likewise.
110
111 2014-10-14  Alan Modra  <amodra@gmail.com>
112
113         PR 17453
114         * readelf.c (process_program_headers): Correct fscanf format used
115         for interpreter.
116
117 2014-10-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
118
119         * readelf.c (display_sparc_hwcaps2): New function.
120         (display_sparc_gnu_attribute): Call `display_sparc_hwcaps2' when
121         handling `Tag_GNU_Sparc_HWCAPS2' attributes.
122
123 2014-09-22  Alan Modra  <amodra@gmail.com>
124
125         PR 16563
126         * dwarf.c (GET): Remove semicolon.
127         (read_cie): New function, extracted from..
128         (display_debug_frames): ..here.  Correctly handle signed offset
129         from FDE to CIE in .eh_frame.  Decode forward referenced CIEs too.
130
131 2014-09-16  Nick Clifton  <nickc@redhat.com>
132
133         * readelf.c (display_arm_attribute): Use unsigned int type for
134         tag, val and type variables.
135
136 2014-09-16  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
137
138         * readelf.c (decode_NDS32_machine_flags): Display ABI2 FP+.
139
140 2014-09-15  Andrew Bennett  <andrew.bennett@imgtec.com>
141             Matthew Fortune  <matthew.fortune@imgtec.com>
142
143         * readelf.c (get_machine_flags): Add support for mips32r6 and
144         mips64r6.
145
146 2014-09-01  Jon TURNEY  <jon.turney@dronecode.org.uk>
147
148         * objcopy.c (is_nondebug_keep_contents_section): Change
149         '.build-id' to '.buildid'.
150
151 2014-08-22  Richard Henderson  <rth@redhat.com>
152
153         * dwarf.h (init_dwarf_regnames_aarch64): Declare.
154         * dwarf.c (dwarf_regnames_aarch64): New.
155         (init_dwarf_regnames_aarch64): New.
156         (init_dwarf_regnames): Call it.
157         * objdump.c (dump_dwarf): Likewise.
158
159 2014-08-19  Alan Modra  <amodra@gmail.com>
160
161         * configure: Regenerate.
162
163 2014-08-14  Alan Modra  <amodra@gmail.com>
164
165         * configure.ac: Move ACX_LARGEFILE after LT_INIT.
166         * config.in: Regenerate.
167         * configure: Regenerate.
168
169 2014-07-29  Matthew Fortune  <matthew.fortune@imgtec.com>
170
171         * readelf.c (get_mips_segment_type): Display name for PT_MIPS_ABIFLAGS.
172         (get_mips_section_type_name): Display name for SHT_MIPS_ABIFLAGS.
173         (display_mips_gnu_attribute): Abstracted fp abi printing to...
174         (print_mips_fp_abi_value): New static function. Handle new FP ABIs.
175         (print_mips_ases, print_mips_isa_ext): New static functions.
176         (get_mips_reg_size): Likewise.
177         (process_mips_specific): Display abiflags data.
178
179 2014-07-28  Alan Modra  <amodra@gmail.com>
180
181         PR 13227
182         * nm.c (filter_symbols): Warn on __gnu_lto_slim.
183
184 2014-07-07  Nick Clifton  <nickc@redhat.com>
185
186         * readelf.c (get_symbol_type): Revert accidental change to
187         detection of thumb function symbols.
188
189 2014-07-04  Alan Modra  <amodra@gmail.com>
190
191         * configure.ac: Rename from configure.in.
192         * Makefile.in: Regenerate.
193         * config.in: Regenerate.
194         * doc/Makefile.in: Regenerate.
195
196 2014-07-04  Alan Modra  <amodra@gmail.com>
197
198         * configure.in: Include bfd/version.m4.
199         (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
200         (BFD_VERSION): Delete.
201         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
202         * configure: Regenerate.
203         * Makefile.in: Regenerate.
204         * doc/Makefile.in: Regenerate.
205
206 2014-07-03  Tristan Gingold  <gingold@adacore.com>
207
208         * doc/binutils.texi: Clarify addr2line output.
209
210 2014-07-01  Alan Modra  <amodra@gmail.com>
211
212         * objdump.c (dump_bfd_header): Don't print HAS_LOAD_PAGE.
213
214 2014-06-26  Erik Akermann  <kurterikackermann@gmail.com>
215
216         * strings.c: Add -w/--include-all-whitespace option to include any
217         whitespace character in the displayed strings.
218         * NEWS: Mention the new feature.
219         * doc/binutils.texi (strings): Document the new command line
220         option.
221
222 2014-06-26  Nick Clifton  <nickc@redhat.com>
223
224         * readelf.c (process_note_sections): If there are no note sections
225         try processing note segments instead.
226
227 2014-06-17  Anton Lavrentiwev  <lavr@ncbi.nim.nih.gov>
228
229         PR binutils/16923
230         * rcparse.y (fixedverinfo): Prevent large version numbers from
231         corrupting other values.
232
233 2014-06-09  Romain Chastenet  <romain.chastenet@free.fr>
234
235         PR binutils/16252
236         * dwarf.c (display_debug_frames): Remember the state of the
237         cfa_offset, cfa_reg, ra and cfa_exp field
238
239 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
240
241         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
242         bfd's development.sh.
243         * Makefile.in, configure: Regenerate.
244
245 2014-05-16  Jon Turney  <jon.turney@dronecode.org.uk>
246
247         * objcopy.c (is_nondebug_keep_contents_section): New function.
248         (setup_section): Use it.
249
250 2014-05-16  Kaushik Phata  <Kaushik.Phatak@kpit.com>
251
252         * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag.
253
254 2014-05-02  Alan Modra  <amodra@gmail.com>
255
256         * emul_aix.c: Update bfd target vector naming.
257         * testsuite/binutils-all/objcopy.exp: Likewise.
258
259 2014-04-24  Christian Svensson  <blue@cmd.nu>
260
261         * MAINTAINERS: Add myself and Stefan as OR1K maintainers.
262
263 2014-04-23  Andrew Bennett  <andrew.bennett@imgtec.com>
264
265         * doc/binutils.texi: Document the disassemble MIPS XPA instructions
266         command line option.
267
268 2014-04-22  Christian Svensson  <blue@cmd.nu>
269
270         * readelf.c: Remove openrisc and or32 support.  Add support for or1k.
271
272 2014-04-18  Tristan Gingold  <gingold@adacore.com>
273
274         * od-macho.c (dump_section_map): Adjust as load commands
275         are now chained.
276         (dump_load_command, dump_section_content): Likewise.
277
278 2014-04-16  Tristan Gingold  <gingold@adacore.com>
279
280         * od-macho.c (OPT_DYLD_INFO): New macro.
281         (options): Add entry for dyld_info.
282         (mach_o_help): Likewise.
283         (load_and_dump, dump_dyld_info_rebase, dump_dyld_info_bind)
284         (dump_dyld_info_export_1, dump_dyld_info_export): New functions.
285         (bfd_mach_o_dyld_rebase_type_name): New array.
286         (export_info_data): New struct.
287         (dump_dyld_info): Add verbose argument.  Dump rebase, bind and
288         exports data.
289         (dump_load_command): Adjust dump_dyld_info call.
290         (mach_o_dump): Handle dyld_info.
291
292 2014-04-16  Tristan Gingold  <gingold@adacore.com>
293
294         * od-macho.c (dump_header): Display sizeofcmds in decimal too.
295         (dump_segment): Reformat output.
296         (dump_dyld_info): Also display end offsets.
297         (dump_load_command): Add IDX argument, display commands size
298         and offset, reformat display.
299         (dump_load_commands): Adjust for added argument.
300
301 2014-04-07  Alan Modra  <amodra@gmail.com>
302
303         PR binutils/16811
304         * objcopy.c (copy_object): Error if no sections.
305
306 2014-04-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
307
308         PR binutils/14698
309         ar.c: Set plugin_target early if plugins are supported.
310         nm.c: Likewise.
311
312 2014-04-03  Tristan Gingold  <gingold@adacore.com>
313
314         * od-macho.c (printf_uint64): New function.
315         (dump_load_command, dump_obj_compact_unwind): Use it.
316         (dump_exe_compact_unwind): Display personality functions.
317
318 2014-04-02  Tristan Gingold  <gingold@adacore.com>
319
320         * od-macho.c (OPT_TWOLEVEL_HINTS): New macro.
321         (options): Add entry for twolevel_hints.
322         (dump_data_in_code): Fix error message.
323         (dump_twolevel_hints): New function.
324         (dump_load_command): Handle prebound dylib, prebind cksum
325         and twolevel hints.
326         (mach_o_dump): Handle twolevel hints.
327
328 2014-04-01  Tristan Gingold  <gingold@adacore.com>
329
330         * od-macho.c (OPT_DATA_IN_CODE): New macro.
331         (options): Add entry for data in code.
332         (mach_o_help): Ditto.
333         (data_in_code_kind_name): New array.
334         (dump_data_in_code): New function.
335         (dump_load_command): Handle data in code.
336         (mach_o_dump): Ditto.
337         (dump_header): Display a terminal newline.
338
339 2014-03-27  Tristan Gingold  <gingold@adacore.com>
340
341         * od-macho.c (dump_load_command): Display value for
342         BFD_MACH_O_LC_DYLD_ENVIRONMENT.  Handle BFD_MACH_O_LC_DATA_IN_CODE
343         and BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS.
344
345 2014-03-27  Tristan Gingold  <gingold@adacore.com>
346
347         * od-macho.c (OPT_FUNCTION_STARTS): New macro.
348         (options): Add entry for function_starts.
349         (mach_o_help): Ditto.
350         (disp_segment_prot): New function.
351         (dump_section_map): Call disp_segment_prot.
352         (dump_function_starts): New function.
353         (dump_obj_compact_unwind): Fix ouput indentation.
354         (dump_exe_compact_unwind): Fix ouput indentation.
355         (mach_o_dump): Handle function_starts.
356
357 2014-03-26  Tristan Gingold  <gingold@adacore.com>
358
359         * od-macho.c (bfd_mach_o_cpu_name): Add BFD_MACH_O_CPU_TYPE_ARM64.
360
361 2014-03-24  Tristan Gingold  <gingold@adacore.com>
362
363         * objdump.c (load_specific_debug_section): Set address of section.
364
365 2014-03-24  Tristan Gingold  <gingold@adacore.com>
366
367         * od-macho.c (dump_unwind_encoding_x86): Set the factor.
368         (dump_exe_compact_unwind): Change the condition.  Improve
369         indentation.
370
371 2014-03-20  Nick Clifton  <nickc@redhat.com>
372
373         * readelf.c (process_version_sections): Fix off-by-one error in
374         previous delta.
375
376 2014-03-19  Nick Clifton  <nickc@redhat.com>
377
378         PR binutils/16723
379         * readelf.c (process_version_sections): Prevent an infinite loop
380         when the vn_next field is zero but there are still entries to be
381         processed.
382
383 2014-03-17  Tristan Gingold  <gingold@adacore.com>
384
385         * od-macho.c (dump_section_header): Renames of dump_section.
386         (dump_segment): Adjust after renaming.
387         (OPT_COMPACT_UNWIND): Define.
388         (options): Add compact unwind.
389         (mach_o_help): Document compact_unwind.
390         (unwind_x86_64_regs, unwind_x86_regs): New arrays.
391         (dump_unwind_encoding_x86, dump_unwind_encoding)
392         (dump_obj_compact_unwind, dump_exe_compact_unwind)
393         (dump_section_content): New functions.
394         (mach_o_dump): Handle compact unwind.
395
396 2014-03-17  Tristan Gingold  <gingold@adacore.com>
397
398         * od-macho.c (dump_load_command): Handle lazy load dylib.
399
400 2014-03-14  Anthony Green  <green@moxielogic.com>
401
402         * objcopy.c (copy_object): Check fwrite return code.
403
404 2014-03-14  Meador Inge  <meadori@codesourcery.com>
405
406         * dwarf.c (strnlen): Move prototype ...
407         * sysdep.h (strnlen): ... to here.
408
409 2014-03-12  Nick Clifton  <nickc@redhat.com>
410
411         PR binutils/16652
412         * doc/binutils.texi (ar cmdline): Move --plugin command line
413         option to after the command option.
414
415 2014-03-12  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
416
417         PR binutils/16567
418         * deflex.l: Add noinput and nounput options.
419
420 2014-03-12  Alan Modra  <amodra@gmail.com>
421
422         * Makefile.in: Regenerate.
423         * doc/Makefile.in: Regenerate.
424
425 2014-03-06  Nick Clifton  <nickc@redhat.com>
426
427         PR binutils/16664
428         * readelf.c (process_attributes): Add checks for corrupt
429         attribute section names.
430
431 2014-03-05  Alan Modra  <amodra@gmail.com>
432
433         Update copyright years.
434
435 2014-03-03  Alan Modra  <amodra@gmail.com>
436
437         * README: Add "Copyright Notices" paragraph.
438
439 2014-02-11  Cary Coutant  <ccoutant@google.com>
440
441         * binutils/dwarf.c (read_and_display_attr_value): Don't warn
442         for zero-length attribute value.
443
444 2014-02-10  Alan Modra  <amodra@gmail.com>
445
446         * po/binutils.pot: Regenerate.
447
448 2014-02-06  Andrew Pinski  <apinski@cavium.com>
449
450         * readelf.c  (get_machine_flags): Handle E_MIPS_MACH_OCTEON3 case.
451
452 2014-02-06  Cary Coutant  <ccoutant@google.com>
453
454         PR binutils/16444
455         * readelf.c (print_gnu_note): Add support for NT_GNU_GOLD_VERSION.
456
457 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
458
459         * version.c (print_version): Update copyright year to 2014.
460
461 2014-01-07  Tom Tromey  <tromey@redhat.com>
462
463         * bucomm.c (fatal, non_fatal): Replace obsolete VA_* macros with
464         stdarg macros.
465         * dlltool.c (inform): Replace obsolete VA_* macros with stdarg
466         macros.
467         * dllwrap.c (inform, warn): Replace obsolete VA_* macros with
468         stdarg macros.
469
470 2014-01-07  Tom Tromey  <tromey@redhat.com>
471
472         * coffgrok.h (coff_ofile): Don't use PARAMS.
473         * nlmheader.y (strerror): Don't use PARAMS.
474
475 For older changes see ChangeLog-2013
476 \f
477 Copyright (C) 2014 Free Software Foundation, Inc.
478
479 Copying and distribution of this file, with or without modification,
480 are permitted in any medium without royalty provided the copyright
481 notice and this notice are preserved.
482
483 Local Variables:
484 mode: change-log
485 left-margin: 8
486 fill-column: 74
487 version-control: never
488 End: