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