PR binutils/12325
[platform/upstream/binutils.git] / binutils / ChangeLog
1 2011-07-01  Nick Clifton  <nickc@redhat.com>
2
3         PR binutils/12325
4         * doc/binutils.texi (ar cmdline): Document --target, --version and
5         --help command line options.
6
7 2011-06-30  Nick Clifton  <nickc@redhat.com>
8
9         PR binutils/12558
10         * ar.c (main): When asked to move members in an archive that is
11         being created, ignore the move request.
12
13 2011-06-29  Nick Clifton  <nickc@redhat.com>
14
15         * readelf.c (get_section_type_name): When displaying an unknown
16         section type display the hex value first on the assumption that
17         the full message will probably be truncated into a 15 character
18         field.
19
20 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
21
22         * dwarf.c (decode_location_expression): For DW_OP_GNU_convert and
23         DW_OP_GNU_reinterpret, if uvalue is 0, don't add cu_offset.
24         Handle DW_OP_GNU_parameter_ref.
25
26 2011-06-16  Tom Tromey  <tromey@redhat.com>
27
28         * dwarf-mode.el (dwarf-do-insert-substructure): Call
29         expand-file-name.
30         (dwarf-do-refresh): Likewise.
31
32 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
33
34         * readelf.c (get_note_type): Handle NT_ARM_VFP.
35
36 2011-06-13  Walter Lee  <walt@tilera.com>
37
38         * readelf.c: Include tilepro.h and tilegx.h.
39         (guess_is_rela): Handle EM_TILEGX and EM_TILEPRO.
40         (dump_relocations): Likewise.
41         (get_machine_name): Likewise.
42         (is_32bit_abs_reloc): Likewise.
43         (is_32bit_pcerel_reloc): Likewise.
44         (is_64bit_abs_reloc): Likewise.
45         (is_64bit_pcrel_reloc): Likewise.
46
47 2011-06-09  Tristan Gingold  <gingold@adacore.com>
48
49         * od-xcoff.c (xcoff32_read_symbols): Allow missing string table
50         length.
51
52 2011-06-08  Nick Clifton  <nickc@redhat.com>
53
54         PR binutils/12855
55         * readelf.c (process_version_sections): Handle binaries containing
56         corrupt version information.
57         (process_symbol_table): Stop processing a symbol's version
58         information if it could not be read in.
59
60         (get_data): Add comment describing the function.
61         (process_section_headers): Set dynamic_strings_length to 0 if the
62         dynamic strings could not be read in.
63         (process_dynamic_section): Likewise.
64         (process_section_groups): Stop processing the group information if
65         the data could not be read in.
66         (hppa_processs_unwind): Assert that there is only one string table
67         in the file.
68         (arm_process_unwind): Likewise.
69         (ia64_process_unwind): Likewise.
70         Set the size of the unwind auxillary information to 0 if the data
71         could not be read.
72         (load_specific_debug_section): Handle a failure to read in the
73         section.
74         (process_mips_specific): Stop display of the PLT GOT section if it
75         could not be read in.
76
77 2011-06-08  Tristan Gingold  <gingold@adacore.com>
78
79         * makefile.vms (DEFS): Define OBJDUMP_PRIVATE_VECTORS.
80
81 2011-06-07  Cary Coutant  <ccoutant@google.com>
82
83         * dwarf.c: Fix conversion to TU number.
84
85 2011-06-02  Nick Clifton  <nickc@redhat.com>
86
87         * resres.c: Fix spelling typo.
88         * windint.h: Likewise.
89         * windmc.c: Likewise.
90         * windres.c: Likewise.
91         * po/POTFILES.in: Regenerate.
92         * po/binutils.pot: Regenerate.
93
94 2011-06-01  Daniel Jacobowitz  <drow@false.org>
95
96         * MAINTAINERS: Update my email address.
97
98 2011-05-31  Matthias Klose  <doko@ubuntu.com>
99
100         * configure.in (BUILD_INSTALL_MISC): Only add embedspu once.
101         * configure: Regenerate.
102
103 2011-05-30  Alan Modra  <amodra@gmail.com>
104
105         PR binutils/12820
106         * Makefile.am (bin_PROGRAMS): Move BUILD_INSTALL_MISC to..
107         (bin_SCRIPTS): ..here.
108         (EXTRA_SCRIPTS): Define.
109         (EXTRA_DIST): Add embedspu.sh.
110         (DISTCLEANFILES): Add embedspu.
111         (embedspu): Depend on Makefile.  Replace sed "s" command with "c".
112         * Makefile.in: Regenerate.
113
114 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
115
116         * dwarf.c (loc_offsets): New variable.
117         (loc_offsets_compar): New routine.
118         (display_debug_loc): Handle loc_offsets not being in ascending order
119         and also a single .debug_loc entry being used multiple times.
120
121 2011-05-18  Nick Clifton  <nickc@redhat.com>
122
123         PR binutils/12753
124         * nm.c (filter_symbols): Treat unique symbols as global symbols.
125         * doc/binutils.texi (nm): Mention that some lowercase letters
126         actually indicate global symbols.
127
128 2011-05-15  Tristan Gingold  <gingold@adacore.com>
129
130         * od-xcoff.c: New file.
131         * objdump.h: New file.
132         * objdump.c: Include objdump.h
133         (dump_private_options, objdump_private_vectors): New variables.
134         (usage): Mention -P/--private.  Display handled options.
135         (long_options): Add -P/--private.
136         (dump_target_specific): New function.
137         (dump_bfd): Handle dump_private_options.
138         (main): Handle -P.
139         * doc/binutils.texi (objdump): Document -P/--private.
140         * configure.in (OBJDUMP_PRIVATE_VECTORS, OBJDUMP_PRIVATE_OFILES):
141         New variables, compute them.
142         (od_vectors): Add vectors for private dumpers. Make them uniq.
143         (OBJDUMP_DEFS): Add OBJDUMP_PRIVATE_VECTORS.
144         * Makefile.am (HFILES): Add objdump.h
145         (CFILES): Add od-xcoff.c
146         (OBJDUMP_PRIVATE_OFILES): New variable.
147         (objdump_DEPENDENCIES): Append OBJDUMP_PRIVATE_OFILES.
148         (objdump_LDADD): Ditto.
149         (EXTRA_objdump_SOURCES): Define.
150         * Makefile.in: Regenerate.
151         * configure: Regenerate.
152
153 2011-05-10  Tristan Gingold  <gingold@adacore.com>
154
155         * dwarf.c (process_extended_line_op): Dump unknown records.
156
157 2011-05-07  Alan Modra  <amodra@gmail.com>
158
159         PR binutils/12632
160         * objcopy.c (copy_archive): Check bfd_openw result in unknown object
161         case.  Rewrite without goto.
162
163 2011-05-03  Jakub Jelinek  <jakub@redhat.com>
164
165         * dwarf.c (decode_location_expression): Handle DW_OP_GNU_const_type,
166         DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
167         and DW_OP_GNU_reinterpret.
168
169         * MAINTAINERS: Add myself as DWARF2 maintainer.
170
171 2011-05-02  Alan Modra  <amodra@gmail.com>
172
173         PR binutils/12720
174         Revert the following change
175         Michael Snyder  <msnyder@vmware.com>
176         * ar.c (move_members): Plug memory leak.
177         (delete_members): Plug memory leak.
178
179 2011-04-28  Tom Tromey  <tromey@redhat.com>
180
181         * NEWS: Add note about --dwarf-depth, --dwarf-start, and
182         dwarf-mode.el.
183         * objdump.c (suppress_bfd_header): New global.
184         (usage): Update.
185         (OPTION_DWARF_DEPTH, OPTION_DWARF_START): New constants.
186         (options): Add dwarf-depth and dwarf-start entries.
187         (dump_bfd): Use suppress_bfd_header.
188         (main): Handle OPTION_DWARF_START, OPTION_DWARF_DEPTH.
189         * doc/binutils.texi (objcopy): Document --dwarf-depth and
190         --dwarf-start.
191         (readelf): Likewise.
192         * dwarf-mode.el: New file.
193         * dwarf.c (dwarf_cutoff_level, dwarf_start_die): New globals.
194         (read_and_display_attr_value): Also check debug_info_p.
195         (process_debug_info): Handle dwarf_start_die and
196         dwarf_cutoff_level.
197         * dwarf.h (dwarf_cutoff_level, dwarf_start_die): Declare.
198         * readelf.c (usage): Update.
199         (OPTION_DWARF_DEPTH): New macro.
200         (OPTION_DWARF_START): Likewise.
201         (options): Add dwarf-depth and dwarf-start entries.
202         (parse_args): Handle OPTION_DWARF_START and OPTION_DWARF_DEPTH.
203
204 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
205
206         * dwarf.c (display_gdb_index): Support version 5, warn on version 4.
207
208 2011-04-27  Tristan Gingold  <gingold@adacore.com>
209
210         * dwarf.c (process_extended_line_op): Handle
211         DW_LNE_HP_source_file_correlation.
212
213 2011-04-27  Nick Clifton  <nickc@redhat.com>
214
215         * po/da.po: Updated Danish translation.
216
217 2011-04-21  Tom Tromey  <tromey@redhat.com>
218
219         * readelf.c (print_stapsdt_note): New function.
220         (process_note): Use it.
221
222 2011-04-21  Tom Tromey  <tromey@redhat.com>
223
224         * readelf.c (get_stapsdt_note_type): New function.
225         (process_note): Recognize "stapsdt" notes.
226
227 2011-04-21  Tom Tromey  <tromey@redhat.com>
228
229         * readelf.c (process_corefile_note_segment): Change header field
230         widths.
231         (process_note): Change field widths.
232
233 2011-04-21  Tom Tromey  <tromey@redhat.com>
234
235         * readelf.c (print_gnu_note): New function.
236         (process_note): Use it.
237
238 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
239
240         * MAINTAINERS: Update my email address.
241
242 2011-04-11  Kai Tietz  <ktietz@redhat.com>
243
244         * windres.c (usage): Add new --preprocessor-arg option.
245         (option_values): Add new OPTION_PREPROCESSOR_ARG enumerator.
246         (option long_options): Add preprocessor-arg option.
247         (main): Handle it.
248         * doc/binutils.texi: Add documentation for --preprocessor-arg
249         option.
250         * NEWS: Add line about new --preprocessor-arg option for windres.
251
252 2011-04-08  John Marino  <binutils@marino.st>
253
254         * arlex.l: Prevent redefinition of YY_NO_UNPUT.
255         * syslex.l: Likewise.
256
257 2011-04-07  Paul Brook  <paul@codesourcery.com>
258
259         * readelf.c (arm_section_get_word): Handle C6000 relocations.
260         (decode_tic6x_unwind_regmask, decode_arm_unwind_bytecode,
261         decode_tic6x_unwind_bytecode, expand_prel31): New functions.
262         (decode_arm_unwind): Split out common code from ARM specific bits.
263         (dump_arm_unwind): Use expand_prel31.
264         (arm_process_unwind): Handle SHT_C6000_UNWIND sections.
265         (process_unwind): Add SHT_C6000_UNWIND.
266
267 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
268
269         * configure.in (thumb-*-pe*): Remove.
270         * configure: Regenerate.
271
272 2011-04-05  Sterling Augustine  <augustine.sterling@gmail.com>
273
274         * MAINTAINERS: Update my email address.
275
276 2011-04-03  H.J. Lu  <hongjiu.lu@intel.com>
277
278         PR binutils/12632
279         * objcopy.c (copy_unknown_object): Make the archive element
280         readable.
281
282 2011-04-03  David S. Miller  <davem@davemloft.net>
283
284         * objdump.c (dump_reloc_set): Output R_SPARC_OLO10 relocations
285         accurately, rather than how they are represented internally.
286
287 2011-03-31  Tristan Gingold  <gingold@adacore.com>
288
289         * makefile.vms (readelf.exe): New target.
290
291 2011-03-31  Tristan Gingold  <gingold@adacore.com>
292
293         * makefile.vms (DEBUG_OBJS): Add elfcomm.obj.
294
295 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
296
297         * readelf.c (get_symbol_index_type): Handle SCOM for TIC6X.
298         (dump_relocations): Likewise.
299
300 2011-03-31  Tristan Gingold  <gingold@adacore.com>
301
302         * readelf.c (get_ia64_vms_note_type): New function.
303         (print_ia64_vms_note): Ditto.
304         (process_note): Recognize VMS/ia64 specific notes.
305         Display them.
306         (process_corefile_note_segment): Decode VMS notes.
307
308 2011-03-30  Catherine Moore  <clm@codesourcery.com>
309
310         * addr2line.c (translate_addresses): Sign extend the pc
311         if sign_extend_vma is enabled.
312
313 2011-03-30  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
314
315         * readelf.c (process_gnu_liblist): Stop memory leak.
316
317 2011-03-29  Alan Modra  <amodra@gmail.com>
318
319         * coffdump.c: Include bfd_stdint.h
320
321 2011-03-28  Pierre Muller  <muller@ics.u-strasbg.fr>
322
323         * coffdump.c (coff_dump): Correct spelling error.
324         (show_usage): Replace SYSROFF by COFF.
325
326 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
327
328         * coffdump.c (dump_coff_scope): Use double typecast for pointer P
329         to allow compilation for all targets.
330
331 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
332
333         * dwarf.c (process_debug_info): Use offset_size to determine
334         the bit-size of the computation unit's offset.
335         (decode_location_expression): Use dwarf_vmatoa function to display
336         DW_OP_addr OP.
337         (process_debug_info): Use dwarf_vma type for local variables
338         length and type_offset.
339
340 2011-03-25  Michael Snyder  <msnyder@vmware.com>
341
342         * strings.c (print_strings): Plug memory leak.
343         * ar.c (move_members): Plug memory leak.
344         (delete_members): Plug memory leak.
345         (write_archive): Plug memory leak.
346         * ieee.c (ieee_add_bb11): Plug memory leak.
347         (ieee_function_type): Likewise.
348         (ieee_class_baseclass): Likewise.
349         * prdbg.c (pr_function_type): Close memory leaks.
350         (pr_method_type): Likewise.
351         (tg_class_static_member): Likewise.
352         (tg_class_method_variant): Likewise.
353         (tg_class_static_method_variant): Likewise.
354         * stabs.c (parse_stab_enum_type): Fix memory leaks.
355         (parse_stab_struct_type): Likewise.
356         (parse_stab_struct_fields): Likewise.
357         (parse_stab_one_struct_field): Likewise.
358         (parse_stab_members): Likewise.
359         (stab_demangle_qualified): Likewise.
360         * objdump.c (dump_reloc_set): Free malloced memory.
361         * bucomm.c (make_tempname): Stop memory leak.
362
363 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
364
365         Replace bfd_vma type and analog types by dwarf_vma and analogs.
366         Use dwarf specific print functions to display these type values.
367         * dwarf.h (dwarf_signed_vma): New type;
368         (DWARF2_External_LineInfo): Replace bfd_vma by dwarf_vma.
369         (DWARF2_External_PubNames): Likewise.
370         (DWARF2_External_CompUnit): Likewise.
371         (DWARF2_External_ARange): Likewise.
372         (read_leb128): Change return type to dwarf_vma.
373         * dwarf.c (print_dwarf_vma): Use __MINGW32__ conditional and
374         check byte_size values.
375         (dwarf_vmatoa): Change parameter type to dwarf_vma.
376         (dwarf_svmatoa): New static function.
377         (read_leb128): Change return type to dwarf_vma.
378         (read_sleb128): New static function.
379         (struct State_Machine_Registers): Change address field type to
380         dwarf_vma.
381         (process_extended_line_op): Adapt to type changes.
382         (fetch_indirect_string): Likewise.
383         (idisplay_block): Likewise.
384         (decode_location_expression): Likewise.
385         (read_and_display_attr_value): Likewise.
386         (process_debug_info): Likewise.
387         (display_debug_lines_raw): Likewise.
388         (display_debug_lines_decoded): Likewise.
389         (SLEB macro): Use new read_sleb128 function.
390
391 2011-03-17  Alan Modra  <amodra@gmail.com>
392
393         PR 12590
394         * ar.c (ranlib_main): Init arg_index properly.
395         (usage): Describe --target.
396
397 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
398
399         * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
400         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_data_value,
401         DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered.
402         (get_AT_name): Handle DW_AT_GNU_call_site_value,
403         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
404         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
405         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites and
406         DW_AT_GNU_all_source_call_sites.
407         (decode_location_expression) <case DW_OP_GNU_entry_value>: Adjust
408         handling.
409
410 2011-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
411
412         * dwarf.c (get_TAG_name): Handle DW_TAG_GNU_call_site.
413         (decode_location_expression): Handle DW_OP_GNU_entry_value.
414         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_value.
415         (get_AT_name): Likewise.
416
417 2011-03-14  Michael Snyder  <msnyder@vmware.com>
418
419         * objcopy.c (set_pe_subsystem): Free subsystem.
420
421         * wrstabs.c (stab_start_struct_type): Close memory leak.
422
423         * readelf.c (process_version_sections): Free symbols.
424
425         * nm.c (display_rel_file): Free symsizes.
426
427 2011-03-10  Nick Clifton  <nickc@redhat.com>
428
429         * readelf.c (get_machine_name): Update EM_V850 entry.
430
431 2011-03-03  Mike Frysinger  <vapier@gentoo.org>
432
433         * objdump.c (usage): Fix single typo.
434         * po/bg.po, po/binutils.pot, po/da.po, po/es.po, po/fi.po,
435         po/fr.po, po/id.po, po/ja.po, po/ru.po, po/vi.po: Likewise.
436
437 2011-03-01  Akos Pasztory  <akos.pasztory@gmail.com>
438
439         PR binutils/12523
440         * readelf.c (process_object): Clear dynamic_info_DT_GNU_HASH.
441
442 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
443
444         * debug.c (debug_start_source): Use filename_(n)cmp.
445         * ieee.c (ieee_finish_compilation_unit): Likewise.
446         (ieee_lineno): Likewise.
447         * nlmconv.c (main): Likewise.
448         * objcopy.c (strip_main): Likewise.
449         (copy_main): Likewise.
450         * objdump.c (show_line): Likewise.
451         (dump_reloc_set): Likewise.
452         * srconv.c (main): Likewise.
453         * wrstabs.c (stab_lineno): Likewise.
454
455 2011-02-24  Zachary T Welch  <zwelch@codesourcery.com>
456
457         * readelf.c (decode_arm_unwind): Implement decoding of remaining
458         ARM unwind instructions (i.e. VFP/NEON and Intel Wireless MMX).
459
460 2011-02-23  Kai Tietz  <kai.tietz@onevision.com>
461
462         * dwarf.c (read_leb128): Use bfd_vma instead of
463         long type.
464         (dwarf_vmatoa): New helper routine.
465         (process_extended_line_op): Use for adr bfd_vma
466         type and print those typed values via BFD_VMA_FMT
467         or via dwarf_vmatoa for localized prints.
468         (fetch_indirect_string): Adjust offset's type.
469         (decode_location_expression): Adjust argument types
470         and uvalue type.
471         (read_and_display_attr_value): Likewise.
472         (read_and_display_attr): Likewise.
473         (decode_location_expression): Adjust printf format.
474         (process_debug_info): Likewise.
475         (display_debug_lines_raw): Likewise.
476         (display_debug_lines_decoded): Likewise.
477         (display_debug_pubnames): Likewise.
478         (display_debug_loc): Likewise.
479         (display_debug_aranges): Likewise.
480         * dwarf.h (DWARF2_External_LineInfo,
481         DWARF2_Internal_LineInfo, DWARF2_External_PubNames,
482         DWARF2_Internal_PubNames, DWARF2_External_CompUnit,
483         DWARF2_Internal_CompUnit, DWARF2_External_ARange,
484         DWARF2_Internal_ARange): Added..
485         (read_leb128): Adjust return type.
486
487 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
488
489         * configure: Regenerate.
490
491 2011-02-08  Nick Clifton  <nickc@redhat.com>
492
493         PR binutils/12467
494         * readelf.c (process_program_headers): Issue a warning if there
495         are no program headers but the file header has a non-zero program
496         header offset.
497         (process_section_headers): Issue a warning if there are no section
498         headers but the file header has a non-zero section header offset.
499         (process_section_groups): Reword the no section message so that it
500         can be distinguished from the one issued by process_section_headers.
501
502 2011-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
503             Doug Evans  <dje@google.com>
504
505         * dwarf.c (display_gdb_index): Support version 4, warn on version 3.
506
507 2011-01-19  Maciej W. Rozycki  <macro@codesourcery.com>
508
509         * readelf.c (process_object): Free dynamic_section after use.
510
511 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
512
513         PR binutils/12408
514         * readelf.c (process_archive): Free and reset dump_sects
515         after processing each archive member.
516
517 2011-01-11  Andreas Schwab  <schwab@redhat.com>
518
519         * readelf.c (print_symbol): Handle symbol characters as unsigned.
520         Whitespace fixes.
521
522 2011-01-10  Nick Clifton  <nickc@redhat.com>
523
524         * po/da.po: Updated Danish translation.
525
526 2011-01-06  Vladimir Siminov  <sv@sw.ru>
527
528         * bucomm.c (get_file_size): Check for negative sizes and issue a
529         warning message if encountered.
530
531 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
532
533         * version.c (print_version): Update copyright to 2011.
534
535 For older changes see ChangeLog-2010
536 \f
537 Local Variables:
538 mode: change-log
539 left-margin: 8
540 fill-column: 74
541 version-control: never
542 End: