OSDN Git Service

Set target from the the first object only if it isn't set.
[pf3gnuchains/pf3gnuchains4x.git] / binutils / ChangeLog
1 2011-10-16  H.J. Lu  <hongjiu.lu@intel.com>
2
3         PR binutils/13278
4         * ar.c (open_inarch): Set the target from the the first object
5         on the list only if it isn't set.
6
7 2011-10-13  Nick Clifton  <nickc@redhat.com>
8
9         Fixes to aid translation:
10         * addr2line.c (translate_address): Add comments describing context
11         of a couple of printf statements.
12         * ar.c (write_archive): Allow translation of error message.
13         * bucomm.c (endian_string): Allow translation of strings.
14         (display_target_list): Allow translation.
15         * coffdump.c (dump_coff_type): Allow translation of output.
16         (dump_coff_where): Likewise.
17         (dump_coff_symbol): Likewise.
18         (dump_coff_scope): Likewise.
19         (dump_coff_sfile): Likewise.
20         (dump_coff_section): Likewise.
21         (coff_dump): Likewise.
22         * dlltool (def_version): Allow translation of output.
23         (run): Likewise.
24         * dllwrap.c (run): Allow translation of output.
25         * dwarf.c (print_dwarf_vma): Allow translation of output.
26         (process_extended_line_op): Remove spurious translation.
27         Add translation for strings that can be translated.
28         (decode_location_exression): Allow translation of output.
29         (read_and_display_attr_value): Allow translation of output.
30         * readelf.c (slurp_rela_relocs): Add translation for error
31         messages when failing to get data.
32         (slurp_rel_relocs): Likewise.
33         (get_32bit_elf_symbols): Likewise.
34         (get_64bit_elf_symbols): Likewise.
35         (dump_ia64_vms_dynamic_relocs): Replace abbreviation with full
36         word.
37         (process_relocs): Remove spurious translation.
38         (decode_tic6x_unwind_bytecode): Likewise.
39         (process_version_section): Improve error messages.
40         (process_mips_specific): Likewise.
41         (print_gnu_note): Remove spurious translation.
42         (print_stapsdt_note): Likewise.
43         (get_ia64_vms_note_type): Likewise.
44         * sysdump.c (getCHARS): Allow translation.
45         (fillup): Allow translation of output.
46         (getone): Likewise.
47         (must): Likewise.
48         (derived_type): Likewise.
49         * doc/binutils.doc (addr2line): Extend description of command line
50         options.
51         * po/binutils.pot: Regenerate.
52
53 2011-10-13  Nick Clifton  <nickc@redhat.com>
54
55         PR binutils/13219
56         * readelf.c (GET_ELF_SYMBOLS): Add sym_count parameter.
57         (get_32bit_elf_symbols): Add num_syms_return argument.
58         Return the number of symbols loaded into the symbol table.
59         (get_64bit_elf_symbols): Likewise.
60         (process_section_headers): Use GET_ELF_SYMBOLS to initialise
61         symbol count.
62         (proces_relocs): Likewise.
63         (ia64_process_unwind): Likewise.
64         (hppa_process_unwind): Likewise.
65         (arm_process_unwind): Likewise.
66         (process_dynamic_section): Likewise.
67         (process_version_sections): Likewise.
68         (process_symbol_table): Likewise.
69         (process_section_groups): Likewise.
70         Add check before indexing into the symbol table.
71         (apply_relocations): Likewise.
72
73 2011-10-11  Chris  <player1@onet.eu>
74
75         PR binutils/13051
76         Fix a syntax error bug when compiling rc files with the VERSIONINFO resource
77         containing more than one language block inside a single StringFileInfo block.
78
79         * windint.h (rc_ver_stringtable): New structure definition.
80         (rc_ver_info): Use it.
81         * rcparse.y (verstringtable): New variable.
82         (verstringtables): New type.
83         (verstringtables:): New rule declaration.
84         (verblocks:): Use it.
85         * resrc.c (append_ver_stringtable): New function.
86         (append_ver_stringfileinfo): Update to use stringtables.
87         * windres.h (append_ver_stringfileinfo): Update declaration.
88         (append_ver_stringtable): New declaration.
89         * resrc.c (write_rc_versioninfo): Update to support multiple blocks.
90         * resbin.c (bin_to_res_version): Likewise.
91         (res_to_bin_versioninfo): Likewise.
92
93 2011-10-10  Nick Clifton  <nickc@redhat.com>
94
95         * po/bg.po: Updated Bulgarian translation.
96         * po/es.po: Updated Spansih translation.
97         * po/fi.po: Updated Finnish translation.
98         * po/fr.po: Updated French translation.
99
100 2011-10-05  DJ Delorie  <dj@redhat.com>
101             Nick Clifton  <nickc@redhat.com>
102
103         * readelf.c (get_machine_dlags): Add support for RX's PID mode.
104
105 2011-10-04  Paul Woegerer  <paul_woegerer@mentor.com>
106             Carlos O'Donell  <carlos@codesourcery.com>
107
108         * dwarf.c (display_debug_lines_decoded): Index directory_table with
109         directory_index from file_table entry.
110
111 2011-09-30  Cary Coutant  <ccoutant@google.com>
112
113         * binutils/dwarf.h (dwarf_section_display_enum): Add missing enum
114         constant.
115
116 2011-09-28  Tristan Gingold  <gingold@adacore.com>
117
118         * od-xcoff.c (dump_xcoff32_aout_header): Fix typo.
119
120 2011-09-27  Tristan Gingold  <gingold@adacore.com>
121
122         * od-xcoff.c (dump_xcoff32_aout_header): Remove some gettext macros.
123         (dump_xcoff32_sections_header): Likewise.
124         (dump_xcoff32_symbols, dump_xcoff32_relocs): Likewise.
125         (dump_xcoff32_lineno, dump_xcoff32_loader): Likewise.
126         (dump_xcoff32_except): Likewise.
127         (dump_xcoff32_typchk, dump_xcoff32_tbtags): Likewise.
128
129 2011-09-27  Tristan Gingold  <gingold@adacore.com>
130
131         * readelf.c (print_ia64_vms_note): Fix xgettext warnings.
132
133 2011-09-22  Tristan Gingold  <gingold@adacore.com>
134
135         * NEWS: Add marker for 2.22.
136
137 2011-09-21  David S. Miller  <davem@davemloft.net>
138
139         * MAINTAINER: Take over from Jakub Jalinek as SPARC maintainer.
140
141         * readelf.c (display_sparc_hwcaps): New.
142         (display_sparc_gnu_attribute): New.
143         (process_sparc_specific): New.
144         (process_arch_specific): When EM_SPARC, EM_SPARC32PLUS,
145         or EM_SPARCV9 invoke process_sparc_specific.
146
147 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
148
149         PR binutils/13196
150         * dwarf.c (display_debug_aranges): Check zero address size.
151
152 2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>
153
154         PR binutils/13180
155         * objcopy.c (is_strip_section_1): New.
156         (is_strip_section): Use it.  Remove the group section if all
157         members are removed.
158
159 2011-09-08  Nick Clifton  <nickc@redhat.com>
160
161         * po/ja.po: Updated Japanese translation.
162
163 2011-08-26  Nick Clifton  <nickc@redhat.com>
164
165         * po/es.po: Updated Spanish translation.
166
167 2011-08-08  Marcus Comstedt  <marcus@mc.pp.se>
168
169         PR binutils/12964
170         * Makefile.am (embedspu): Use awk rather than sed.
171         * Makefile.in: Regenerate.
172
173 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
174
175         * dwarf.c (read_and_display_attr_value): Recognize DW_FORM_data4 and
176         DW_FORM_data8 as location list pointers only for DWARF < 4.
177
178 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
179
180         * NEWS: Mention .debug_macro support.
181         * dwarf.c (read_and_display_attr_value): Don't print a tab
182         if attribute is 0.
183         (get_AT_name): Handle DW_AT_GNU_macros.
184         (get_line_filename_and_dirname, display_debug_macro): New
185         functions.
186         (debug_displays): Add an entry for .debug_macro and .zdebug_macro.
187         * readelf.c (process_section_headers): With do_debug_macinfo
188         handle also .debug_macro sections.
189         * dwarf.h (dwarf_section_display_enum): Add macro.
190
191 2011-07-24  Chao-ying Fu  <fu@mips.com>
192             Maciej W. Rozycki  <macro@codesourcery.com>
193
194         * readelf.c (get_machine_flags): Handle microMIPS ASE.
195         (get_mips_symbol_other): Likewise.
196
197 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
198
199         * dwarf.c (init_dwarf_regnames): Handle EM_K1OM.
200
201         * elfedit.c (elf_machine): Support EM_K1OM.
202         (elf_class): Likewise.
203
204         * readelf.c (guess_is_rela): Handle EM_K1OM.
205         (dump_relocations): Likewise.
206         (get_machine_name): Likewise.
207         (get_section_type_name): Likewise.
208         (get_elf_section_flags): Likewise.
209         (process_section_headers): Likewise.
210         (get_symbol_index_type): Likewise.
211         (is_32bit_abs_reloc): Likewise.
212         (is_32bit_pcrel_reloc): Likewise.
213         (is_64bit_abs_reloc): Likewise.
214         (is_64bit_pcrel_reloc): Likewise.
215         (is_none_reloc): Likewise.
216
217         * doc/binutils.texi: Mention K1OM for elfedit.
218
219 2011-07-11  Cary Coutant  <ccoutant@google.com>
220
221         PR 12983
222         * binutils/nm.c (display_file): Decompress debug sections when
223         printing line numbers.
224
225 2011-07-03  Samuel Thibault  <samuel.thibault@gnu.org>
226             Thomas Schwinge  <thomas@schwinge.name>
227
228         PR binutils/12913
229         * elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX
230         alias and ELFOSABI_HURD.  Add GNU alias.
231         * readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type):
232         Likewise.
233         * doc/binutils.texi <elfedit>: Update accordingly.
234
235 2011-07-01  Nick Clifton  <nickc@redhat.com>
236
237         PR binutils/12325
238         * doc/binutils.texi (ar cmdline): Document --target, --version and
239         --help command line options.
240
241 2011-06-30  Nick Clifton  <nickc@redhat.com>
242
243         PR binutils/12558
244         * ar.c (main): When asked to move members in an archive that is
245         being created, ignore the move request.
246
247 2011-06-29  Nick Clifton  <nickc@redhat.com>
248
249         * readelf.c (get_section_type_name): When displaying an unknown
250         section type display the hex value first on the assumption that
251         the full message will probably be truncated into a 15 character
252         field.
253
254 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
255
256         * dwarf.c (decode_location_expression): For DW_OP_GNU_convert and
257         DW_OP_GNU_reinterpret, if uvalue is 0, don't add cu_offset.
258         Handle DW_OP_GNU_parameter_ref.
259
260 2011-06-16  Tom Tromey  <tromey@redhat.com>
261
262         * dwarf-mode.el (dwarf-do-insert-substructure): Call
263         expand-file-name.
264         (dwarf-do-refresh): Likewise.
265
266 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
267
268         * readelf.c (get_note_type): Handle NT_ARM_VFP.
269
270 2011-06-13  Walter Lee  <walt@tilera.com>
271
272         * readelf.c: Include tilepro.h and tilegx.h.
273         (guess_is_rela): Handle EM_TILEGX and EM_TILEPRO.
274         (dump_relocations): Likewise.
275         (get_machine_name): Likewise.
276         (is_32bit_abs_reloc): Likewise.
277         (is_32bit_pcerel_reloc): Likewise.
278         (is_64bit_abs_reloc): Likewise.
279         (is_64bit_pcrel_reloc): Likewise.
280
281 2011-06-09  Tristan Gingold  <gingold@adacore.com>
282
283         * od-xcoff.c (xcoff32_read_symbols): Allow missing string table
284         length.
285
286 2011-06-08  Nick Clifton  <nickc@redhat.com>
287
288         PR binutils/12855
289         * readelf.c (process_version_sections): Handle binaries containing
290         corrupt version information.
291         (process_symbol_table): Stop processing a symbol's version
292         information if it could not be read in.
293
294         (get_data): Add comment describing the function.
295         (process_section_headers): Set dynamic_strings_length to 0 if the
296         dynamic strings could not be read in.
297         (process_dynamic_section): Likewise.
298         (process_section_groups): Stop processing the group information if
299         the data could not be read in.
300         (hppa_processs_unwind): Assert that there is only one string table
301         in the file.
302         (arm_process_unwind): Likewise.
303         (ia64_process_unwind): Likewise.
304         Set the size of the unwind auxillary information to 0 if the data
305         could not be read.
306         (load_specific_debug_section): Handle a failure to read in the
307         section.
308         (process_mips_specific): Stop display of the PLT GOT section if it
309         could not be read in.
310
311 2011-06-08  Tristan Gingold  <gingold@adacore.com>
312
313         * makefile.vms (DEFS): Define OBJDUMP_PRIVATE_VECTORS.
314
315 2011-06-07  Cary Coutant  <ccoutant@google.com>
316
317         * dwarf.c: Fix conversion to TU number.
318
319 2011-06-02  Nick Clifton  <nickc@redhat.com>
320
321         * resres.c: Fix spelling typo.
322         * windint.h: Likewise.
323         * windmc.c: Likewise.
324         * windres.c: Likewise.
325         * po/POTFILES.in: Regenerate.
326         * po/binutils.pot: Regenerate.
327
328 2011-06-01  Daniel Jacobowitz  <drow@false.org>
329
330         * MAINTAINERS: Update my email address.
331
332 2011-05-31  Matthias Klose  <doko@ubuntu.com>
333
334         * configure.in (BUILD_INSTALL_MISC): Only add embedspu once.
335         * configure: Regenerate.
336
337 2011-05-30  Alan Modra  <amodra@gmail.com>
338
339         PR binutils/12820
340         * Makefile.am (bin_PROGRAMS): Move BUILD_INSTALL_MISC to..
341         (bin_SCRIPTS): ..here.
342         (EXTRA_SCRIPTS): Define.
343         (EXTRA_DIST): Add embedspu.sh.
344         (DISTCLEANFILES): Add embedspu.
345         (embedspu): Depend on Makefile.  Replace sed "s" command with "c".
346         * Makefile.in: Regenerate.
347
348 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
349
350         * dwarf.c (loc_offsets): New variable.
351         (loc_offsets_compar): New routine.
352         (display_debug_loc): Handle loc_offsets not being in ascending order
353         and also a single .debug_loc entry being used multiple times.
354
355 2011-05-18  Nick Clifton  <nickc@redhat.com>
356
357         PR binutils/12753
358         * nm.c (filter_symbols): Treat unique symbols as global symbols.
359         * doc/binutils.texi (nm): Mention that some lowercase letters
360         actually indicate global symbols.
361
362 2011-05-15  Tristan Gingold  <gingold@adacore.com>
363
364         * od-xcoff.c: New file.
365         * objdump.h: New file.
366         * objdump.c: Include objdump.h
367         (dump_private_options, objdump_private_vectors): New variables.
368         (usage): Mention -P/--private.  Display handled options.
369         (long_options): Add -P/--private.
370         (dump_target_specific): New function.
371         (dump_bfd): Handle dump_private_options.
372         (main): Handle -P.
373         * doc/binutils.texi (objdump): Document -P/--private.
374         * configure.in (OBJDUMP_PRIVATE_VECTORS, OBJDUMP_PRIVATE_OFILES):
375         New variables, compute them.
376         (od_vectors): Add vectors for private dumpers. Make them uniq.
377         (OBJDUMP_DEFS): Add OBJDUMP_PRIVATE_VECTORS.
378         * Makefile.am (HFILES): Add objdump.h
379         (CFILES): Add od-xcoff.c
380         (OBJDUMP_PRIVATE_OFILES): New variable.
381         (objdump_DEPENDENCIES): Append OBJDUMP_PRIVATE_OFILES.
382         (objdump_LDADD): Ditto.
383         (EXTRA_objdump_SOURCES): Define.
384         * Makefile.in: Regenerate.
385         * configure: Regenerate.
386
387 2011-05-10  Tristan Gingold  <gingold@adacore.com>
388
389         * dwarf.c (process_extended_line_op): Dump unknown records.
390
391 2011-05-07  Alan Modra  <amodra@gmail.com>
392
393         PR binutils/12632
394         * objcopy.c (copy_archive): Check bfd_openw result in unknown object
395         case.  Rewrite without goto.
396
397 2011-05-03  Jakub Jelinek  <jakub@redhat.com>
398
399         * dwarf.c (decode_location_expression): Handle DW_OP_GNU_const_type,
400         DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
401         and DW_OP_GNU_reinterpret.
402
403         * MAINTAINERS: Add myself as DWARF2 maintainer.
404
405 2011-05-02  Alan Modra  <amodra@gmail.com>
406
407         PR binutils/12720
408         Revert the following change
409         Michael Snyder  <msnyder@vmware.com>
410         * ar.c (move_members): Plug memory leak.
411         (delete_members): Plug memory leak.
412
413 2011-04-28  Tom Tromey  <tromey@redhat.com>
414
415         * NEWS: Add note about --dwarf-depth, --dwarf-start, and
416         dwarf-mode.el.
417         * objdump.c (suppress_bfd_header): New global.
418         (usage): Update.
419         (OPTION_DWARF_DEPTH, OPTION_DWARF_START): New constants.
420         (options): Add dwarf-depth and dwarf-start entries.
421         (dump_bfd): Use suppress_bfd_header.
422         (main): Handle OPTION_DWARF_START, OPTION_DWARF_DEPTH.
423         * doc/binutils.texi (objcopy): Document --dwarf-depth and
424         --dwarf-start.
425         (readelf): Likewise.
426         * dwarf-mode.el: New file.
427         * dwarf.c (dwarf_cutoff_level, dwarf_start_die): New globals.
428         (read_and_display_attr_value): Also check debug_info_p.
429         (process_debug_info): Handle dwarf_start_die and
430         dwarf_cutoff_level.
431         * dwarf.h (dwarf_cutoff_level, dwarf_start_die): Declare.
432         * readelf.c (usage): Update.
433         (OPTION_DWARF_DEPTH): New macro.
434         (OPTION_DWARF_START): Likewise.
435         (options): Add dwarf-depth and dwarf-start entries.
436         (parse_args): Handle OPTION_DWARF_START and OPTION_DWARF_DEPTH.
437
438 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
439
440         * dwarf.c (display_gdb_index): Support version 5, warn on version 4.
441
442 2011-04-27  Tristan Gingold  <gingold@adacore.com>
443
444         * dwarf.c (process_extended_line_op): Handle
445         DW_LNE_HP_source_file_correlation.
446
447 2011-04-27  Nick Clifton  <nickc@redhat.com>
448
449         * po/da.po: Updated Danish translation.
450
451 2011-04-21  Tom Tromey  <tromey@redhat.com>
452
453         * readelf.c (print_stapsdt_note): New function.
454         (process_note): Use it.
455
456 2011-04-21  Tom Tromey  <tromey@redhat.com>
457
458         * readelf.c (get_stapsdt_note_type): New function.
459         (process_note): Recognize "stapsdt" notes.
460
461 2011-04-21  Tom Tromey  <tromey@redhat.com>
462
463         * readelf.c (process_corefile_note_segment): Change header field
464         widths.
465         (process_note): Change field widths.
466
467 2011-04-21  Tom Tromey  <tromey@redhat.com>
468
469         * readelf.c (print_gnu_note): New function.
470         (process_note): Use it.
471
472 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
473
474         * MAINTAINERS: Update my email address.
475
476 2011-04-11  Kai Tietz  <ktietz@redhat.com>
477
478         * windres.c (usage): Add new --preprocessor-arg option.
479         (option_values): Add new OPTION_PREPROCESSOR_ARG enumerator.
480         (option long_options): Add preprocessor-arg option.
481         (main): Handle it.
482         * doc/binutils.texi: Add documentation for --preprocessor-arg
483         option.
484         * NEWS: Add line about new --preprocessor-arg option for windres.
485
486 2011-04-08  John Marino  <binutils@marino.st>
487
488         * arlex.l: Prevent redefinition of YY_NO_UNPUT.
489         * syslex.l: Likewise.
490
491 2011-04-07  Paul Brook  <paul@codesourcery.com>
492
493         * readelf.c (arm_section_get_word): Handle C6000 relocations.
494         (decode_tic6x_unwind_regmask, decode_arm_unwind_bytecode,
495         decode_tic6x_unwind_bytecode, expand_prel31): New functions.
496         (decode_arm_unwind): Split out common code from ARM specific bits.
497         (dump_arm_unwind): Use expand_prel31.
498         (arm_process_unwind): Handle SHT_C6000_UNWIND sections.
499         (process_unwind): Add SHT_C6000_UNWIND.
500
501 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
502
503         * configure.in (thumb-*-pe*): Remove.
504         * configure: Regenerate.
505
506 2011-04-05  Sterling Augustine  <augustine.sterling@gmail.com>
507
508         * MAINTAINERS: Update my email address.
509
510 2011-04-03  H.J. Lu  <hongjiu.lu@intel.com>
511
512         PR binutils/12632
513         * objcopy.c (copy_unknown_object): Make the archive element
514         readable.
515
516 2011-04-03  David S. Miller  <davem@davemloft.net>
517
518         * objdump.c (dump_reloc_set): Output R_SPARC_OLO10 relocations
519         accurately, rather than how they are represented internally.
520
521 2011-03-31  Tristan Gingold  <gingold@adacore.com>
522
523         * makefile.vms (readelf.exe): New target.
524
525 2011-03-31  Tristan Gingold  <gingold@adacore.com>
526
527         * makefile.vms (DEBUG_OBJS): Add elfcomm.obj.
528
529 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
530
531         * readelf.c (get_symbol_index_type): Handle SCOM for TIC6X.
532         (dump_relocations): Likewise.
533
534 2011-03-31  Tristan Gingold  <gingold@adacore.com>
535
536         * readelf.c (get_ia64_vms_note_type): New function.
537         (print_ia64_vms_note): Ditto.
538         (process_note): Recognize VMS/ia64 specific notes.
539         Display them.
540         (process_corefile_note_segment): Decode VMS notes.
541
542 2011-03-30  Catherine Moore  <clm@codesourcery.com>
543
544         * addr2line.c (translate_addresses): Sign extend the pc
545         if sign_extend_vma is enabled.
546
547 2011-03-30  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
548
549         * readelf.c (process_gnu_liblist): Stop memory leak.
550
551 2011-03-29  Alan Modra  <amodra@gmail.com>
552
553         * coffdump.c: Include bfd_stdint.h
554
555 2011-03-28  Pierre Muller  <muller@ics.u-strasbg.fr>
556
557         * coffdump.c (coff_dump): Correct spelling error.
558         (show_usage): Replace SYSROFF by COFF.
559
560 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
561
562         * coffdump.c (dump_coff_scope): Use double typecast for pointer P
563         to allow compilation for all targets.
564
565 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
566
567         * dwarf.c (process_debug_info): Use offset_size to determine
568         the bit-size of the computation unit's offset.
569         (decode_location_expression): Use dwarf_vmatoa function to display
570         DW_OP_addr OP.
571         (process_debug_info): Use dwarf_vma type for local variables
572         length and type_offset.
573
574 2011-03-25  Michael Snyder  <msnyder@vmware.com>
575
576         * strings.c (print_strings): Plug memory leak.
577         * ar.c (move_members): Plug memory leak.
578         (delete_members): Plug memory leak.
579         (write_archive): Plug memory leak.
580         * ieee.c (ieee_add_bb11): Plug memory leak.
581         (ieee_function_type): Likewise.
582         (ieee_class_baseclass): Likewise.
583         * prdbg.c (pr_function_type): Close memory leaks.
584         (pr_method_type): Likewise.
585         (tg_class_static_member): Likewise.
586         (tg_class_method_variant): Likewise.
587         (tg_class_static_method_variant): Likewise.
588         * stabs.c (parse_stab_enum_type): Fix memory leaks.
589         (parse_stab_struct_type): Likewise.
590         (parse_stab_struct_fields): Likewise.
591         (parse_stab_one_struct_field): Likewise.
592         (parse_stab_members): Likewise.
593         (stab_demangle_qualified): Likewise.
594         * objdump.c (dump_reloc_set): Free malloced memory.
595         * bucomm.c (make_tempname): Stop memory leak.
596
597 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
598
599         Replace bfd_vma type and analog types by dwarf_vma and analogs.
600         Use dwarf specific print functions to display these type values.
601         * dwarf.h (dwarf_signed_vma): New type;
602         (DWARF2_External_LineInfo): Replace bfd_vma by dwarf_vma.
603         (DWARF2_External_PubNames): Likewise.
604         (DWARF2_External_CompUnit): Likewise.
605         (DWARF2_External_ARange): Likewise.
606         (read_leb128): Change return type to dwarf_vma.
607         * dwarf.c (print_dwarf_vma): Use __MINGW32__ conditional and
608         check byte_size values.
609         (dwarf_vmatoa): Change parameter type to dwarf_vma.
610         (dwarf_svmatoa): New static function.
611         (read_leb128): Change return type to dwarf_vma.
612         (read_sleb128): New static function.
613         (struct State_Machine_Registers): Change address field type to
614         dwarf_vma.
615         (process_extended_line_op): Adapt to type changes.
616         (fetch_indirect_string): Likewise.
617         (idisplay_block): Likewise.
618         (decode_location_expression): Likewise.
619         (read_and_display_attr_value): Likewise.
620         (process_debug_info): Likewise.
621         (display_debug_lines_raw): Likewise.
622         (display_debug_lines_decoded): Likewise.
623         (SLEB macro): Use new read_sleb128 function.
624
625 2011-03-17  Alan Modra  <amodra@gmail.com>
626
627         PR 12590
628         * ar.c (ranlib_main): Init arg_index properly.
629         (usage): Describe --target.
630
631 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
632
633         * dwarf.c (dw_TAG_name): Handle DW_TAG_GNU_call_site_parameter.
634         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_data_value,
635         DW_AT_GNU_call_site_target and DW_AT_GNU_call_site_target_clobbered.
636         (get_AT_name): Handle DW_AT_GNU_call_site_value,
637         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
638         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
639         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites and
640         DW_AT_GNU_all_source_call_sites.
641         (decode_location_expression) <case DW_OP_GNU_entry_value>: Adjust
642         handling.
643
644 2011-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
645
646         * dwarf.c (get_TAG_name): Handle DW_TAG_GNU_call_site.
647         (decode_location_expression): Handle DW_OP_GNU_entry_value.
648         (read_and_display_attr_value): Handle DW_AT_GNU_call_site_value.
649         (get_AT_name): Likewise.
650
651 2011-03-14  Michael Snyder  <msnyder@vmware.com>
652
653         * objcopy.c (set_pe_subsystem): Free subsystem.
654
655         * wrstabs.c (stab_start_struct_type): Close memory leak.
656
657         * readelf.c (process_version_sections): Free symbols.
658
659         * nm.c (display_rel_file): Free symsizes.
660
661 2011-03-10  Nick Clifton  <nickc@redhat.com>
662
663         * readelf.c (get_machine_name): Update EM_V850 entry.
664
665 2011-03-03  Mike Frysinger  <vapier@gentoo.org>
666
667         * objdump.c (usage): Fix single typo.
668         * po/bg.po, po/binutils.pot, po/da.po, po/es.po, po/fi.po,
669         po/fr.po, po/id.po, po/ja.po, po/ru.po, po/vi.po: Likewise.
670
671 2011-03-01  Akos Pasztory  <akos.pasztory@gmail.com>
672
673         PR binutils/12523
674         * readelf.c (process_object): Clear dynamic_info_DT_GNU_HASH.
675
676 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
677
678         * debug.c (debug_start_source): Use filename_(n)cmp.
679         * ieee.c (ieee_finish_compilation_unit): Likewise.
680         (ieee_lineno): Likewise.
681         * nlmconv.c (main): Likewise.
682         * objcopy.c (strip_main): Likewise.
683         (copy_main): Likewise.
684         * objdump.c (show_line): Likewise.
685         (dump_reloc_set): Likewise.
686         * srconv.c (main): Likewise.
687         * wrstabs.c (stab_lineno): Likewise.
688
689 2011-02-24  Zachary T Welch  <zwelch@codesourcery.com>
690
691         * readelf.c (decode_arm_unwind): Implement decoding of remaining
692         ARM unwind instructions (i.e. VFP/NEON and Intel Wireless MMX).
693
694 2011-02-23  Kai Tietz  <kai.tietz@onevision.com>
695
696         * dwarf.c (read_leb128): Use bfd_vma instead of
697         long type.
698         (dwarf_vmatoa): New helper routine.
699         (process_extended_line_op): Use for adr bfd_vma
700         type and print those typed values via BFD_VMA_FMT
701         or via dwarf_vmatoa for localized prints.
702         (fetch_indirect_string): Adjust offset's type.
703         (decode_location_expression): Adjust argument types
704         and uvalue type.
705         (read_and_display_attr_value): Likewise.
706         (read_and_display_attr): Likewise.
707         (decode_location_expression): Adjust printf format.
708         (process_debug_info): Likewise.
709         (display_debug_lines_raw): Likewise.
710         (display_debug_lines_decoded): Likewise.
711         (display_debug_pubnames): Likewise.
712         (display_debug_loc): Likewise.
713         (display_debug_aranges): Likewise.
714         * dwarf.h (DWARF2_External_LineInfo,
715         DWARF2_Internal_LineInfo, DWARF2_External_PubNames,
716         DWARF2_Internal_PubNames, DWARF2_External_CompUnit,
717         DWARF2_Internal_CompUnit, DWARF2_External_ARange,
718         DWARF2_Internal_ARange): Added..
719         (read_leb128): Adjust return type.
720
721 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
722
723         * configure: Regenerate.
724
725 2011-02-08  Nick Clifton  <nickc@redhat.com>
726
727         PR binutils/12467
728         * readelf.c (process_program_headers): Issue a warning if there
729         are no program headers but the file header has a non-zero program
730         header offset.
731         (process_section_headers): Issue a warning if there are no section
732         headers but the file header has a non-zero section header offset.
733         (process_section_groups): Reword the no section message so that it
734         can be distinguished from the one issued by process_section_headers.
735
736 2011-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
737             Doug Evans  <dje@google.com>
738
739         * dwarf.c (display_gdb_index): Support version 4, warn on version 3.
740
741 2011-01-19  Maciej W. Rozycki  <macro@codesourcery.com>
742
743         * readelf.c (process_object): Free dynamic_section after use.
744
745 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
746
747         PR binutils/12408
748         * readelf.c (process_archive): Free and reset dump_sects
749         after processing each archive member.
750
751 2011-01-11  Andreas Schwab  <schwab@redhat.com>
752
753         * readelf.c (print_symbol): Handle symbol characters as unsigned.
754         Whitespace fixes.
755
756 2011-01-10  Nick Clifton  <nickc@redhat.com>
757
758         * po/da.po: Updated Danish translation.
759
760 2011-01-06  Vladimir Siminov  <sv@sw.ru>
761
762         * bucomm.c (get_file_size): Check for negative sizes and issue a
763         warning message if encountered.
764
765 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
766
767         * version.c (print_version): Update copyright to 2011.
768
769 For older changes see ChangeLog-2010
770 \f
771 Local Variables:
772 mode: change-log
773 left-margin: 8
774 fill-column: 74
775 version-control: never
776 End: