binutils/
[platform/upstream/binutils.git] / binutils / ChangeLog
1 2013-10-11  Roland McGrath  <mcgrathr@google.com>
2
3         * winduni.c (languages): Use \345 (octal syntax) rather than
4         literal non-ASCII/non-UTF8 character in string literal.
5
6         * readelf.c (print_dynamic_symbol): Use array subscript syntax
7         rather than addition syntax with string literal.
8
9 2013-10-09  Nick Clifton  <nickc@redhat.com>
10
11         PR binutils/16023
12         * debug.c (debug_type_samep): Add missing break statement.
13
14         PR binutils/16024
15         * objdump.c (usage): Mark as a no-return function.
16         (main): Add comment explaining why a break statement is not
17         needed.
18
19         * dwarf.c (add64): New function.
20         (read_and_display_attr_value): Add CU offset in to the value
21         displayed for a DW_AT_ref8 attribute.
22
23 2013-10-01  Cory Fields  <cory@coryfields.com>
24
25         * arsup.c (ar_save): Respect the deterministic setting when
26         reading from an mri script.
27         * ar.c (main): Set the default deterministic mode when reading
28         from an mri script.
29
30 2013-10-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31
32         * dwarf.c (SAFE_BYTE_GET): Fix argument check.
33
34 2013-09-27  H.J. Lu  <hongjiu.lu@intel.com>
35
36         * dwarf.c (display_debug_frames): Pass offset_size to
37         print_dwarf_vma for cie_id.
38
39 2013-09-20  Alan Modra  <amodra@gmail.com>
40
41         * configure: Regenerate.
42
43 2013-09-18  Tristan Gingold  <gingold@adacore.com>
44
45         * NEWS: Add marker for 2.24.
46
47 2013-09-18  Tristan Gingold  <gingold@adacore.com>
48
49         * Makefile.am (LEXLIB): Define.  Replase references to @LEXLIB@
50         by $(LEXLIB).
51         * Makefile.in: Regenerate.
52
53 2013-09-17  Doug Gilmore  <Doug.Gilmore@imgtec.com>
54
55         * readelf.c (get_machine_flags): Handle EF_MIPS_FP64.
56
57 2013-09-12  Nick Clifton  <nickc@redhat.com>
58
59         * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a
60         precision parameter.
61         (dwarf_vmatoa): New wrapper for dwarf_vmatoa_1.
62         (print_dwarf_vma): Use dwarf_vmatoa_1.
63         (SAFE_BYTE_GET): Add check that VAL is big enough to contain
64         AMOUNT bytes.
65         (process_debug_info): Use an unsigned int for the offset size.
66         (process_debug_pubnames): Likewise.
67         (display_debug_aranges): Likewise.
68         (struct Frame_Chunk): Use dwarf_vma type for pc_begin and pc_range
69         fields.
70         (frame_display_row): Use print_dwarf_vma to display dwarf_vma
71         values.
72         (display_debug_frames): Likewise.
73
74 2013-09-10  Nick Clifton  <nickc@redhat.com>
75
76         * dwarf.c (display_debug_frames): Check for DW64_CIE_ID when
77         parsing 64-bit frames.
78
79 2013-08-27  Nick Clifton  <nickc@redhat.com>
80
81         PR binutils/15796
82         * ar.c (map_over_members): Correctly handle multiple same-name
83         entries on the command line and in the archive.
84
85 2013-08-23  H.J. Lu  <hongjiu.lu@intel.com>
86
87         * doc/binutils.texi: Remove the extra space.
88
89 2013-08-23  Mikael Pettersson  <mikpe@it.uu.se>
90
91         PR binutils/15779
92         * doc/binutils.texi (ranlib -D): Correct description.
93         PR binutils/15777
94         (nm --special-syms): Fix typo.
95
96 2013-08-23  Nick Clifton  <nickc@redhat.com>
97
98         PR binutils/15798
99         * doc/binutils.texi (ar cmdline): Update description of 'q'
100         command.
101
102         PR binutils/14136
103         (nm): Add description of 'I' symbol type.
104
105 2013-08-23  Yuri Chornoivan  <yurchor@ukr.net>
106
107         PR binutils/15834
108         * od-xcoff.c: Fix typos.
109
110 2013-08-19  Tristan Gingold  <gingold@adacore.com>
111
112         * nm.c (print_size_symbols): Directly get symbol size.
113
114 2013-08-12  Andreas Schwab  <schwab@suse.de>
115
116         PR binutils/15818
117         * objdump.c (disassemble_section): Return early if nothing from
118         this section needs to be disassembled.
119
120 2013-08-09  Nick Clifton  <nickc@redhat.com>
121
122         * readelf.c (get_machine_flags): Handle RL78 G10 flag.
123
124 2013-07-26  Sergey Guriev  <sergey.s.guriev@intel.com>
125             Alexander Ivchenko  <alexander.ivchenko@intel.com>
126             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
127             Sergey Lega  <sergey.s.lega@intel.com>
128             Anna Tikhonova  <anna.tikhonova@intel.com>
129             Ilya Tocar  <ilya.tocar@intel.com>
130             Andrey Turetskiy  <andrey.turetskiy@intel.com>
131             Ilya Verbin  <ilya.verbin@intel.com>
132             Kirill Yukhin  <kirill.yukhin@intel.com>
133             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
134
135         * dwarf.c (dwarf_regnames_i386): Add k0-k7 registers and
136         numeration in comments.
137         (dwarf_regnames_x86_64): Add xmm16-31 and k0-k7 registers to
138         dwarf table.
139
140 2013-07-19  Nick Clifton  <nickc@redhat.com>
141
142         PR binutils/15745
143         * readelf.c (get_unwind_section_word): Whilst searching for a
144         reloc section associated with an unwind section, check the type as
145         well as the section number.
146
147 2013-07-18  Jim Thomas  <thomas@cfht.hawaii.edu>
148
149         * ar.c (usage): Fix C conformance issue.
150
151 2013-07-18  Nick Clifton  <nickc@redhat.com>
152
153         * doc/binutils.texi (nm, objdump): Remove bogus links to STABS
154         documentation.
155
156         * readelf.c (process_unwind): Do not return the result of a void
157         function.
158
159 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
160
161         * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic
162         numbers with enum values.
163
164 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
165
166         * readelf.c (get_machine_flags): Handle EF_MIPS_NAN2008.
167
168 2013-07-10  Tristan Gingold  <gingold@adacore.com>
169
170         * od-xcoff.c (OPT_LDINFO): Define.
171         (options): Add ldinfo.
172         (xcoff_help): Mention ldinfo.
173         (xcoff_dump): Rename to ...
174         (xcoff_dump_obj): ... this.  Add a break.
175         (dump_dumpx_core): New function.
176         (xcoff_dump_core): Likewise.
177         (xcoff_dump): Likewise.
178         * doc/binutils.texi (objdump): Mention ldinfo.
179
180 2013-07-09  Tristan Gingold  <gingold@adacore.com>
181
182         * configure.com: Add new defines to match changes in configure.
183
184 2013-05-28  Cary Coutant  <ccoutant@google.com>
185
186         * dwarf.c (display_debug_lines_raw): Print section offsets.
187
188 2013-05-15  Cary Coutant  <ccoutant@google.com>
189
190         * dwarf.c (SAFE_BYTE_GET64): Correct end-of-buffer check;
191         don't increment PTR.
192         (decode_location_expression): DW_OP_const2u should read 2 bytes.
193         (display_debug_lines_decoded): Adjust formatting.
194         * elfcomm.c (byte_get_little_endian): Add cases for 5-, 6-, and
195         7-byte reads.
196         (byte_get_big_endian): Likewise.
197         (byte_get_signed): Likewise.
198
199 2013-05-09  Andrew Pinski  <apinski@cavium.com>
200
201         * doc/binutils.texi: Document -Mvirt disassembler option.
202
203 2013-05-02  Nick Clifton  <nickc@redhat.com>
204
205         * readelf.c: Add support for MSP430X architecture.
206
207 2013-05-02  Nick Clifton  <nickc@redhat.com>
208
209         * dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo
210         sections as if they were fragmentary .debug_line sections.
211         (display_debug_lines_decoded): Likewise.
212
213 2013-04-29  Nick Clifton  <nickc@redhat.com>
214
215         * dwarf.c (read_debug_line_header): New function.  Reads in a
216         header in a .debug_line section.
217         (display_debug_lines_raw): Use new function.  Handle fragmentary
218         .debug_line sections.
219         (display_debug_lines_decoded): Likewise.
220         * readelf.c (process_section_headers): Handle fragmenatry
221         .debug_line sections.
222         (display_debug_section): Likewise.
223
224 2013-04-26  Ian Lance Taylor  <iant@google.com>
225
226         * MAINTAINERS: Add myself and Cary as gold maintainers.
227
228 2013-04-08  Tom Tromey  <tromey@redhat.com>
229
230         * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
231
232 2013-04-08  Tom Tromey  <tromey@redhat.com>
233
234         * dwarf-mode.el: Bump version number.
235         (dwarf-mode): Remove autoload.
236         (dwarf-die-reference): Relax regexp.
237
238 2013-04-05  Alan Modra  <amodra@gmail.com>
239
240         PR binutils/15324
241         * configure.in: Add strnlen to AC_CHECK_DECLS, sort.
242         * dwarf.c (strnlen): Provide fallback decl.
243         * config.in: Regnerate.
244         * configure: Regenerate.
245
246 2013-03-29  H.J. Lu  <hongjiu.lu@intel.com>
247
248         * dwarf.c (process_debug_info): Increment hdrptr by 8 after
249         SAFE_BYTE_GET64.
250
251 2013-03-27  Phil Krylov <phil.krylov@gmail.com>
252
253         PR binutils/13409
254         * winduni.c (codepages[]): Use UTF-16LE.
255         (wind_MultiByteToWideChar): Likewise.
256         (wind_WideCharToMultiByte): Likewise.
257
258 2013-03-27  Alan Modra  <amodra@gmail.com>
259
260         PR binutils/15206
261         * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
262
263 2013-03-26  Nick Clifton  <nickc@redhat.com>
264
265         PR binutils/15206
266         * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer
267         space before calling byte_get.
268         (SAFE_BYTE_GET_AND_INC): New macro.
269         (SAFE_SIGNED_BYTE_GET): New macro.
270         (SAFE_SIGNED_BYTE_GET_AND_INC): New macro.
271         (SAFE_BYTE_GET64): New macro.
272         (process_extened_line_op): Use new macros.  Use strnlen when
273         appropriate.
274         (fetch_indirect_string): Likewise.
275         (get_FORM_name): Likewise.
276         (decode_location_expression): Likewise.
277         (read_and_display_attr_value): Likewise.
278         (process_debug_info): Likewise.
279         (display_debug_lines_raw): Likewise.
280         (display_debug_lines_decoded): Likewise.
281         (display_debug_pubnames): Likewise.
282         (display_debug_macinfo): Likewise.
283         (get_line_filename_and_dirname): Likewise.
284         (display_debug_macro): Likewise.
285         (display_loc_list): Likewise.
286         (display_loc_list_dwo): Likewise.
287         (display_debug_aranges): Likewise.
288         (display_debug_ranges): Likewise.
289         (frame_display_row): Likewise.
290         (display_debug_frames): Likewise.
291
292 2013-03-25  Nick Clifton  <nickc@redhat.com>
293
294         PR binutils/15202
295         * dwarf.c (read_leb128): Add END parameter.  Do not read at or
296         beyond end.
297         (read_sleb128): Add END parameter.
298         (read_uleb128): New function.
299         (process_extended_line_op): Pass END to leb128 functions.
300         (process_abbrev_section): Likewise.
301         (decode_location_expression): Likewise.
302         (read_and_display_attr_value): Likewise.
303         (read_and_display_attr): Likewise.
304         (process_debug_info): Likewise.
305         (display_debug_lines_raw): Likewise.
306         (display_debug_lines_decoded): Likewise.
307         (display_debug_macinfo): Likewise.
308         (get_line_filename_and_dirname): Likewise.
309         (display_debug_macro): Likewise.
310         (display_loc_list_dwo): Likewise.
311         (display_debug_ranges): Likewise.
312         * dwarf.h (read_leb128): Update prototype.
313         * readelf.c (read_uleb128): Add END parameter.
314         (decode_arm_unwind_bytecode): Pass END to read_uleb128.
315         (decode_tic6x_unwind_bytecode): Likewise.
316         (display_tag_value): New function.
317         (display_arm_attribute): Add END parameter. Pass END to
318         read_uleb128.  Use display_tag_value.
319         (display_gnu_attribute): Likewise.
320         (display_power_gnu_attribute): Likewise.
321         (display_sparc_gnu_attribute): Likewise.
322         (display_mips_gnu_attribute): Likewise.
323         (display_tic6x_attribute): Likewise.
324         (process_attributes): Likewise.
325         (display_raw_attribute): New function.
326
327 2013-03-22  Nick Clifton  <nickc@redhat.com>
328
329         PR binutils/15201
330         * dwarf.c (display_debug_ranges): Add checks for reading beyond
331         the end of the section.
332
333         PR binutils/15157
334         * readelf.c (apply_relocations): Catch relocations with negative
335         offsets.
336
337 2013-03-15  Nick Clifton  <nickc@redhat.com>
338
339         * addr2line.c (slurp_symtab): If canonicalization reveals that
340         there were no ordinary symbols, try loading the dynamic symbols
341         instead.
342
343 2013-03-14  Markos Chandras  <markos.chandras@imgtec.com>
344
345         * MAINTAINERS: Add myself as Meta maintainer.
346
347 2013-03-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
348
349         * readelf.c (get_note_type): Add NT_S390_TDB.
350
351 2013-03-07  Alan Modra  <amodra@gmail.com>
352
353         * strings.c (get_char): Dispense with buf[].  Instead shift
354         chars into big-endian value and byte-swap later if
355         little-endian.  Don't EOF check value read from object.
356
357 2013-03-05  Corinna Vinschen  <vinschen@redhat.com>
358
359         * configure.in: Build DLL tools on x86_64-*-cygwin* as well.
360         * configure: Regenerate.
361
362 2013-03-04  Nick Clifton  <nickc@redhat.com>
363
364         * elfcomm.c (error): Flush stdout before emitting the error
365         message.
366         (warn): Likewise.
367
368 2013-03-01  Cary Coutant  <ccoutant@google.com>
369
370         * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size)
371         (shndx_pool_used): Move to top of file.
372         (struct cu_tu_set): New type.
373         (cu_count, tu_count, cu_sets, tu_sets): New file scope variables.
374         (fetch_indexed_string): Add "this_set" parameter.  Update all callers.
375         (find_cu_tu_set_v2): New function.
376         (read_and_display_attr_value): Add "this_set" parameter.
377         (read_and_display_attr): Likewise.
378         (process_debug_info): Track base offsets for DWARF package files.
379         (load_debug_info): Call load_cu_tu_indexes.
380         (get_DW_SECT_short_name): New function.
381         (process_cu_tu_index): Add support for version 2 DWARF package files.
382
383 2013-02-27  Alan Modra  <amodra@gmail.com>
384
385         PR binutils/15191
386         * readelf.c (offsetof): Define.
387         (CHECK_ENTSIZE_VALUES): Remove extraneous indefinite article.
388         (process_corefile_note_segment): Allow notes without name or
389         desc.  Combine out-of-range checks.  Disallow "negative"
390         notesz or descsz.
391
392 2013-02-26  Nick Clifton  <nickc@redhat.com>
393
394         PR binutils/15191
395         * readelf.c (process_corefile_note_segment): Prevent attempts to
396         read beyond the end of the note buffer.
397
398 2013-02-15  Kai Tietz  <ktietz@redhat.com>
399
400         * objcopy.c (copy_main): Initialize context variable.
401
402 2013-02-15  Nick Clifton  <nickc@redhat.com>
403
404         PR binutils/15140
405         * ar.c (open_inarch): Fail on attempts to convert a normal archive
406         to a thin archive or vice versa.
407         * elfcomm.c (make_qualified_name): Handle corrupted thin
408         archives.
409         * readelf.c (process_archive): Likewise.
410         * doc/binutils.texi: Clarify documentation describing thin
411         archives.
412
413 2013-02-15  Nick Clifton  <nickc@redhat.com>
414
415         PR binutils/15033
416         * objcopy.c (enum change_action): Delete.
417         (struct section_list): Delete remove, copy, change_vma, change_lma
418         and set_flags fields.  Add context field.
419         (find_section_list): Add a context parameter.  Add support for
420         wildcard characters in section names.
421         (is_strip_section): Check for sections being both  copied and
422         removed.
423         (copy_object): Pass context to find_section_list.
424         (setup_section): Likewise.
425         (copy_section): Likewise.
426         (copy_main): Likewise.
427         * doc/binutils: Document the new behaviour.
428         * NEWS: Mention the new feature
429
430 2013-02-14  Nick Clifton  <nickc@redhat.com>
431
432         PR binutils/15125
433         * objcopy.c (copy_object): Provide a helpful warning message when
434         adding a gnu_debuglink section to an object which already contains
435         one.
436
437 2013-02-07  Nick Clifton  <nickc@redhat.com>
438
439         * elfcomm.c (get_archive_member_name): Prevent seg-fault if a
440         corrupt archive uses long names but has no long name table.
441
442 2013-02-06  Sandra Loosemore  <sandra@codesourcery.com>
443             Andrew Jenner <andrew@codesourcery.com>
444
445         Based on patches from Altera Corporation.
446
447         * readelf.c: Include elf/nios2.h.
448         (dump_relocations): Add case for EM_ALTERA_NIOS2.
449         (get_nios2_dynamic_type): New.
450         (get_dynamic_type): Add case for EM_ALTERA_NIOS2.
451         (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
452         (is_16bit_abs_reloc): Likewise.
453         (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
454         * NEWS: Note Altera Nios II support.
455         * MAINTAINERS: Add Nios II maintainers.
456
457 2013-01-29  Xi Wang  <xi.wang@gmail.com>
458
459         * readelf.c (process_version_sections): Fix overflow checks to
460         avoid undefined behaviour.
461
462 2013-01-28  Doug Evans  <dje@google.com>
463
464         * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
465
466 2013-01-28  Robert Schiele  <rschiele@gmail.com>
467
468         * objcopy.c (parse_flags): Add merge and strings section flags.
469
470 2013-01-25  Cary Coutant  <ccoutant@google.com>
471
472         * dwarf.c (display_loc_list): Update offset for each line
473         printed.
474         (print_addr_index): New function.
475         (display_loc_list_dwo): Update offset for each line printed.
476         Fix problems displaying loclists in .dwo files.  Add support
477         for type 4 entries.
478         (display_debug_loc): Remove custom header for .dwo files.
479         (display_debug_addr): Adjust formatting.
480
481 2013-01-25  Marco Atzeri  <marco.atzeri@gmail.com>
482
483         * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
484
485 2013-01-24  Doug Evans  <dje@google.com>
486
487         * dwarf.c (display_debug_addr): Add missing parentheses to expression.
488
489 2013-01-24  Nick Clifton  <nickc@redhat.com>
490
491         * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
492
493 2013-01-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
494
495         * readelf.c: Add strings for NT_S390_LAST_BREAK and
496         NT_S390_SYSTEM_CALL.
497
498 2013-01-18  Nick Clifton  <nickc@redhat.com>
499
500         PR binutils/15026
501         * addr2line.c (translate_addresses): When pretty printing, print
502         unknown function names on the same line as unknown symbol names.
503
504 2013-01-17  Nickolai Zeldovich  <nickolai@csail.mit.edu>
505
506         * objdump.c (dump_target_specific): Fix NULL pointer test.
507
508 2013-01-16  Alan Modra  <amodra@gmail.com>
509
510         PR binutils/15018
511         * stabs.c (parse_stab_members): Always set physname here to avoid
512         gcc warning..
513         (parse_stab_argtypes): ..and don't duplicate the init here.
514
515 2013-01-10  Will Newton <will.newton@imgtec.com>
516
517         * binutils/readelf.c: (guess_is_rela): Add EM_METAG.
518         (dump_relocations): Add EM_METAG.
519         (get_machine_name): Correct case for Meta.
520         (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc.
521         (is_none_reloc): Add support for Meta NONE reloc.
522
523 2013-01-08  Yufeng Zhang  <yufeng.zhang@arm.com>
524
525         * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK
526         and NT_ARM_HW_WATCH.
527
528 2013-01-07  Roland McGrath  <mcgrathr@google.com>
529
530         * objcopy.c (deterministic): Make int rather than bfd_boolean,
531         initialize to -1.
532         (strip_options, copy_options): Add -U/--disable-deterministic-archives.
533         (default_deterministic): New function.
534         (strip_main, copy_main): Handle -U.  Call default_deterministic.
535         (copy_usage, strip_usage): Describe -U.  Cite whether -D or -U is
536         the default based on DEFAULT_AR_DETERMINISTIC.
537         * doc/binutils.texi (objcopy, strip): Describe -U and effect of
538         configure options on -D.
539
540         * ar.c (default_deterministic): Comment fix.
541
542 2013-01-07  Patrice Dumas  <pertusus@free.fr>
543
544         * doc/binutils.texi: Fix ordering of top level nodes.
545         Replace erroneous uses of @itemx with @item.
546
547 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
548
549         * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
550
551 2013-01-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
552
553         * MAINTAINERS: Add myself as AArch64 co-maintainer.
554
555 2013-01-02  H.J. Lu  <hongjiu.lu@intel.com>
556
557         * version.c (print_version): Update copyright year to 2013.
558
559 For older changes see ChangeLog-2012
560 \f
561 Copyright (C) 2013 Free Software Foundation, Inc.
562
563 Copying and distribution of this file, with or without modification,
564 are permitted in any medium without royalty provided the copyright
565 notice and this notice are preserved.
566
567 Local Variables:
568 mode: change-log
569 left-margin: 8
570 fill-column: 74
571 version-control: never
572 End: