OSDN Git Service

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