OSDN Git Service

2011-05-10 Tristan Gingold <gingold@adacore.com>
[pf3gnuchains/pf3gnuchains4x.git] / binutils / ChangeLog
1 2011-05-10  Tristan Gingold  <gingold@adacore.com>
2
3         * dwarf.c (process_extended_line_op): Dump unknown records.
4
5 2011-05-07  Alan Modra  <amodra@gmail.com>
6
7         PR binutils/12632
8         * objcopy.c (copy_archive): Check bfd_openw result in unknown object
9         case.  Rewrite without goto.
10
11 2011-05-03  Jakub Jelinek  <jakub@redhat.com>
12
13         * dwarf.c (decode_location_expression): Handle DW_OP_GNU_const_type,
14         DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
15         and DW_OP_GNU_reinterpret.
16
17         * MAINTAINERS: Add myself as DWARF2 maintainer.
18
19 2011-05-02  Alan Modra  <amodra@gmail.com>
20
21         PR binutils/12720
22         Revert the following change
23         Michael Snyder  <msnyder@vmware.com>
24         * ar.c (move_members): Plug memory leak.
25         (delete_members): Plug memory leak.
26
27 2011-04-28  Tom Tromey  <tromey@redhat.com>
28
29         * NEWS: Add note about --dwarf-depth, --dwarf-start, and
30         dwarf-mode.el.
31         * objdump.c (suppress_bfd_header): New global.
32         (usage): Update.
33         (OPTION_DWARF_DEPTH, OPTION_DWARF_START): New constants.
34         (options): Add dwarf-depth and dwarf-start entries.
35         (dump_bfd): Use suppress_bfd_header.
36         (main): Handle OPTION_DWARF_START, OPTION_DWARF_DEPTH.
37         * doc/binutils.texi (objcopy): Document --dwarf-depth and
38         --dwarf-start.
39         (readelf): Likewise.
40         * dwarf-mode.el: New file.
41         * dwarf.c (dwarf_cutoff_level, dwarf_start_die): New globals.
42         (read_and_display_attr_value): Also check debug_info_p.
43         (process_debug_info): Handle dwarf_start_die and
44         dwarf_cutoff_level.
45         * dwarf.h (dwarf_cutoff_level, dwarf_start_die): Declare.
46         * readelf.c (usage): Update.
47         (OPTION_DWARF_DEPTH): New macro.
48         (OPTION_DWARF_START): Likewise.
49         (options): Add dwarf-depth and dwarf-start entries.
50         (parse_args): Handle OPTION_DWARF_START and OPTION_DWARF_DEPTH.
51
52 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
53
54         * dwarf.c (display_gdb_index): Support version 5, warn on version 4.
55
56 2011-04-27  Tristan Gingold  <gingold@adacore.com>
57
58         * dwarf.c (process_extended_line_op): Handle
59         DW_LNE_HP_source_file_correlation.
60
61 2011-04-27  Nick Clifton  <nickc@redhat.com>
62
63         * po/da.po: Updated Danish translation.
64
65 2011-04-21  Tom Tromey  <tromey@redhat.com>
66
67         * readelf.c (print_stapsdt_note): New function.
68         (process_note): Use it.
69
70 2011-04-21  Tom Tromey  <tromey@redhat.com>
71
72         * readelf.c (get_stapsdt_note_type): New function.
73         (process_note): Recognize "stapsdt" notes.
74
75 2011-04-21  Tom Tromey  <tromey@redhat.com>
76
77         * readelf.c (process_corefile_note_segment): Change header field
78         widths.
79         (process_note): Change field widths.
80
81 2011-04-21  Tom Tromey  <tromey@redhat.com>
82
83         * readelf.c (print_gnu_note): New function.
84         (process_note): Use it.
85
86 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
87
88         * MAINTAINERS: Update my email address.
89
90 2011-04-11  Kai Tietz  <ktietz@redhat.com>
91
92         * windres.c (usage): Add new --preprocessor-arg option.
93         (option_values): Add new OPTION_PREPROCESSOR_ARG enumerator.
94         (option long_options): Add preprocessor-arg option.
95         (main): Handle it.
96         * doc/binutils.texi: Add documentation for --preprocessor-arg
97         option.
98         * NEWS: Add line about new --preprocessor-arg option for windres.
99
100 2011-04-08  John Marino  <binutils@marino.st>
101
102         * arlex.l: Prevent redefinition of YY_NO_UNPUT.
103         * syslex.l: Likewise.
104
105 2011-04-07  Paul Brook  <paul@codesourcery.com>
106
107         * readelf.c (arm_section_get_word): Handle C6000 relocations.
108         (decode_tic6x_unwind_regmask, decode_arm_unwind_bytecode,
109         decode_tic6x_unwind_bytecode, expand_prel31): New functions.
110         (decode_arm_unwind): Split out common code from ARM specific bits.
111         (dump_arm_unwind): Use expand_prel31.
112         (arm_process_unwind): Handle SHT_C6000_UNWIND sections.
113         (process_unwind): Add SHT_C6000_UNWIND.
114
115 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
116
117         * configure.in (thumb-*-pe*): Remove.
118         * configure: Regenerate.
119
120 2011-04-05  Sterling Augustine  <augustine.sterling@gmail.com>
121
122         * MAINTAINERS: Update my email address.
123
124 2011-04-03  H.J. Lu  <hongjiu.lu@intel.com>
125
126         PR binutils/12632
127         * objcopy.c (copy_unknown_object): Make the archive element
128         readable.
129
130 2011-04-03  David S. Miller  <davem@davemloft.net>
131
132         * objdump.c (dump_reloc_set): Output R_SPARC_OLO10 relocations
133         accurately, rather than how they are represented internally.
134
135 2011-03-31  Tristan Gingold  <gingold@adacore.com>
136
137         * makefile.vms (readelf.exe): New target.
138
139 2011-03-31  Tristan Gingold  <gingold@adacore.com>
140
141         * makefile.vms (DEBUG_OBJS): Add elfcomm.obj.
142
143 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
144
145         * readelf.c (get_symbol_index_type): Handle SCOM for TIC6X.
146         (dump_relocations): Likewise.
147
148 2011-03-31  Tristan Gingold  <gingold@adacore.com>
149
150         * readelf.c (get_ia64_vms_note_type): New function.
151         (print_ia64_vms_note): Ditto.
152         (process_note): Recognize VMS/ia64 specific notes.
153         Display them.
154         (process_corefile_note_segment): Decode VMS notes.
155
156 2011-03-30  Catherine Moore  <clm@codesourcery.com>
157
158         * addr2line.c (translate_addresses): Sign extend the pc
159         if sign_extend_vma is enabled.
160
161 2011-03-30  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
162
163         * readelf.c (process_gnu_liblist): Stop memory leak.
164
165 2011-03-29  Alan Modra  <amodra@gmail.com>
166
167         * coffdump.c: Include bfd_stdint.h
168
169 2011-03-28  Pierre Muller  <muller@ics.u-strasbg.fr>
170
171         * coffdump.c (coff_dump): Correct spelling error.
172         (show_usage): Replace SYSROFF by COFF.
173
174 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
175
176         * coffdump.c (dump_coff_scope): Use double typecast for pointer P
177         to allow compilation for all targets.
178
179 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
180
181         * dwarf.c (process_debug_info): Use offset_size to determine
182         the bit-size of the computation unit's offset.
183         (decode_location_expression): Use dwarf_vmatoa function to display
184         DW_OP_addr OP.
185         (process_debug_info): Use dwarf_vma type for local variables
186         length and type_offset.
187
188 2011-03-25  Michael Snyder  <msnyder@vmware.com>
189
190         * strings.c (print_strings): Plug memory leak.
191         * ar.c (move_members): Plug memory leak.
192         (delete_members): Plug memory leak.
193         (write_archive): Plug memory leak.
194         * ieee.c (ieee_add_bb11): Plug memory leak.
195         (ieee_function_type): Likewise.
196         (ieee_class_baseclass): Likewise.
197         * prdbg.c (pr_function_type): Close memory leaks.
198         (pr_method_type): Likewise.
199         (tg_class_static_member): Likewise.
200         (tg_class_method_variant): Likewise.
201         (tg_class_static_method_variant): Likewise.
202         * stabs.c (parse_stab_enum_type): Fix memory leaks.
203         (parse_stab_struct_type): Likewise.
204         (parse_stab_struct_fields): Likewise.
205         (parse_stab_one_struct_field): Likewise.
206         (parse_stab_members): Likewise.
207         (stab_demangle_qualified): Likewise.
208         * objdump.c (dump_reloc_set): Free malloced memory.
209         * bucomm.c (make_tempname): Stop memory leak.
210
211 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
212
213         Replace bfd_vma type and analog types by dwarf_vma and analogs.
214         Use dwarf specific print functions to display these type values.
215         * dwarf.h (dwarf_signed_vma): New type;
216         (DWARF2_External_LineInfo): Replace bfd_vma by dwarf_vma.
217         (DWARF2_External_PubNames): Likewise.
218         (DWARF2_External_CompUnit): Likewise.
219         (DWARF2_External_ARange): Likewise.
220         (read_leb128): Change return type to dwarf_vma.
221         * dwarf.c (print_dwarf_vma): Use __MINGW32__ conditional and
222         check byte_size values.
223         (dwarf_vmatoa): Change parameter type to dwarf_vma.
224         (dwarf_svmatoa): New static function.
225         (read_leb128): Change return type to dwarf_vma.
226         (read_sleb128): New static function.
227         (struct State_Machine_Registers): Change address field type to
228         dwarf_vma.
229         (process_extended_line_op): Adapt to type changes.
230         (fetch_indirect_string): Likewise.
231         (idisplay_block): Likewise.
232         (decode_location_expression): Likewise.
233         (read_and_display_attr_value): Likewise.
234         (process_debug_info): Likewise.
235         (display_debug_lines_raw): Likewise.
236         (display_debug_lines_decoded): Likewise.
237         (SLEB macro): Use new read_sleb128 function.
238
239 2011-03-17  Alan Modra  <amodra@gmail.com>
240
241         PR 12590
242         * ar.c (ranlib_main): Init arg_index properly.
243         (usage): Describe --target.
244
245 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
246
247         * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
248         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_data_value,
249         DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered.
250         (get_AT_name): Handle DW_AT_GNU_call_site_value,
251         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
252         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
253         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites and
254         DW_AT_GNU_all_source_call_sites.
255         (decode_location_expression) <case DW_OP_GNU_entry_value>: Adjust
256         handling.
257
258 2011-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
259
260         * dwarf.c (get_TAG_name): Handle DW_TAG_GNU_call_site.
261         (decode_location_expression): Handle DW_OP_GNU_entry_value.
262         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_value.
263         (get_AT_name): Likewise.
264
265 2011-03-14  Michael Snyder  <msnyder@vmware.com>
266
267         * objcopy.c (set_pe_subsystem): Free subsystem.
268
269         * wrstabs.c (stab_start_struct_type): Close memory leak.
270
271         * readelf.c (process_version_sections): Free symbols.
272
273         * nm.c (display_rel_file): Free symsizes.
274
275 2011-03-10  Nick Clifton  <nickc@redhat.com>
276
277         * readelf.c (get_machine_name): Update EM_V850 entry.
278
279 2011-03-03  Mike Frysinger  <vapier@gentoo.org>
280
281         * objdump.c (usage): Fix single typo.
282         * po/bg.po, po/binutils.pot, po/da.po, po/es.po, po/fi.po,
283         po/fr.po, po/id.po, po/ja.po, po/ru.po, po/vi.po: Likewise.
284
285 2011-03-01  Akos Pasztory  <akos.pasztory@gmail.com>
286
287         PR binutils/12523
288         * readelf.c (process_object): Clear dynamic_info_DT_GNU_HASH.
289
290 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
291
292         * debug.c (debug_start_source): Use filename_(n)cmp.
293         * ieee.c (ieee_finish_compilation_unit): Likewise.
294         (ieee_lineno): Likewise.
295         * nlmconv.c (main): Likewise.
296         * objcopy.c (strip_main): Likewise.
297         (copy_main): Likewise.
298         * objdump.c (show_line): Likewise.
299         (dump_reloc_set): Likewise.
300         * srconv.c (main): Likewise.
301         * wrstabs.c (stab_lineno): Likewise.
302
303 2011-02-24  Zachary T Welch  <zwelch@codesourcery.com>
304
305         * readelf.c (decode_arm_unwind): Implement decoding of remaining
306         ARM unwind instructions (i.e. VFP/NEON and Intel Wireless MMX).
307
308 2011-02-23  Kai Tietz  <kai.tietz@onevision.com>
309
310         * dwarf.c (read_leb128): Use bfd_vma instead of
311         long type.
312         (dwarf_vmatoa): New helper routine.
313         (process_extended_line_op): Use for adr bfd_vma
314         type and print those typed values via BFD_VMA_FMT
315         or via dwarf_vmatoa for localized prints.
316         (fetch_indirect_string): Adjust offset's type.
317         (decode_location_expression): Adjust argument types
318         and uvalue type.
319         (read_and_display_attr_value): Likewise.
320         (read_and_display_attr): Likewise.
321         (decode_location_expression): Adjust printf format.
322         (process_debug_info): Likewise.
323         (display_debug_lines_raw): Likewise.
324         (display_debug_lines_decoded): Likewise.
325         (display_debug_pubnames): Likewise.
326         (display_debug_loc): Likewise.
327         (display_debug_aranges): Likewise.
328         * dwarf.h (DWARF2_External_LineInfo,
329         DWARF2_Internal_LineInfo, DWARF2_External_PubNames,
330         DWARF2_Internal_PubNames, DWARF2_External_CompUnit,
331         DWARF2_Internal_CompUnit, DWARF2_External_ARange,
332         DWARF2_Internal_ARange): Added..
333         (read_leb128): Adjust return type.
334
335 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
336
337         * configure: Regenerate.
338
339 2011-02-08  Nick Clifton  <nickc@redhat.com>
340
341         PR binutils/12467
342         * readelf.c (process_program_headers): Issue a warning if there
343         are no program headers but the file header has a non-zero program
344         header offset.
345         (process_section_headers): Issue a warning if there are no section
346         headers but the file header has a non-zero section header offset.
347         (process_section_groups): Reword the no section message so that it
348         can be distinguished from the one issued by process_section_headers.
349
350 2011-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
351             Doug Evans  <dje@google.com>
352
353         * dwarf.c (display_gdb_index): Support version 4, warn on version 3.
354
355 2011-01-19  Maciej W. Rozycki  <macro@codesourcery.com>
356
357         * readelf.c (process_object): Free dynamic_section after use.
358
359 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
360
361         PR binutils/12408
362         * readelf.c (process_archive): Free and reset dump_sects
363         after processing each archive member.
364
365 2011-01-11  Andreas Schwab  <schwab@redhat.com>
366
367         * readelf.c (print_symbol): Handle symbol characters as unsigned.
368         Whitespace fixes.
369
370 2011-01-10  Nick Clifton  <nickc@redhat.com>
371
372         * po/da.po: Updated Danish translation.
373
374 2011-01-06  Vladimir Siminov  <sv@sw.ru>
375
376         * bucomm.c (get_file_size): Check for negative sizes and issue a
377         warning message if encountered.
378
379 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
380
381         * version.c (print_version): Update copyright to 2011.
382
383 For older changes see ChangeLog-2010
384 \f
385 Local Variables:
386 mode: change-log
387 left-margin: 8
388 fill-column: 74
389 version-control: never
390 End: