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