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