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