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