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