2008-11-19 Sterling Augustine <sterling@tensilica.com>
[external/binutils.git] / binutils / ChangeLog
1 2008-11-21 Sterling Augustine <sterling@tensilica.com>
2
3         * MAINTAINERS: Take over from Bob Wilson as Xtensa maintainer.
4
5 2008-11-19  Nick Clifton  <nickc@redhat.com>
6
7         * doc/fdl.texi: Update to v1.3
8         * doc/binutils.texinfo: Change license to v1.3.
9
10 2008-11-18  Catherine Moore  <clm@codesourcery.com>
11
12         * readelf.c (arm_attr_tag_ABI_FP_16bit_format): New.
13         (arm_attr_tag_VFP_HP_extension): New.
14         (arm_attr_public_tag arm_attr_public_tags): Support
15         new attributes. 
16
17 2008-11-17  Nick Clifton  <nickc@redhat.com>
18
19         * version.c (print_version): Update copyright year.
20
21 2008-11-16  Danny Smith  <dannysmith@usesr.sourceforge.net>
22
23         * dlltool.c (identify_search_section): Cast argument, not return
24         value, of xstrdup to 'char*'.
25
26 2008-11-15  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27
28         Added --identify option to dlltool.
29         * binutils/dlltool.c: Add new global variables
30         identify_imp_name and identify_dll_name.
31         (identify_dll_for_implib, identify_search_archive,
32         identify_search_member, identify_process_section_p,
33         identify_search_section): New functions.
34         (usage): Added --identify.
35         (long_options): Added --identify.
36         (main): Handle --identify option.
37         * binutils/doc/binutils.texi: Document --identify.
38
39 2008-11-14  Tristan Gingold  <gingold@adacore.com>
40
41         Remove outdated mach-o specific tests.
42         * objdump.c (load_debug_section): Remove mach-o specific test.
43         (mach_o_uncompressed_dwarf_sections): Removed.
44         (mach_o_compressed_dwarf_sections): Removed.
45         (generic_uncompressed_dwarf_sections): Removed.
46         (generic_compressed_dwarf_sections): Removed.
47         (check_mach_o_dwarf): Removed.
48         (dump_dwarf): Remove call to check_mach_o_dwarf.
49
50 2008-11-14  Tristan Gingold  <gingold@adacore.com>
51
52         * configure.com: Get version from configure.in of bfd.
53         * makefile.vms-in (DEBUG_OBJS): Add dwarf.obj.
54         (CFLAGS): Update flags.
55
56 2008-11-13  Hans-Peter Nilsson  <hp@axis.com>
57             Alan Modra  <amodra@bigpond.net.au>
58
59         * nm.c (filter_symbols): Only call memcpy when from != to.
60
61 2008-11-10  Tristan Gingold  <gingold@adacore.com>
62             Alan Modra  <amodra@bigpond.net.au>
63
64         * objdump.c (disassemble_bytes): Don't skip leading zeros when
65         end of section calculation overflows.
66
67 2008-11-07  Prafulla Thakare  <prafulla.thakare@kpitcummins.com>
68
69         * MAINTAINERS: Take over from Anil Paranjpe as H8300 maintainer.
70
71 2008-10-31  Alan Modra  <amodra@bigpond.net.au>
72
73         * po/id.po: New file.
74         * configure.in (ALL_LINGUAS): Add id.
75         * configure: Regenerate.
76
77 2008-10-21  Alan Modra  <amodra@bigpond.net.au>
78
79         * windmc.c (res_alloc): Remove unnecessary cast.
80         * windres.c (res_alloc, reswr_alloc): Likewise.
81
82 2008-10-20  Nick Clifton  <nickc@redhat.com>
83
84         * readelf.c: Tidy up code formatting.
85
86 2008-10-10  Nathan Froyd  <froydnj@codesourcery.com>
87
88         * readelf.c (display_power_gnu_attribute): Decode
89         Tag_GNU_Power_ABI_Struct_Return.
90
91 2008-10-10  Alan Modra  <amodra@bigpond.net.au>
92
93         * embedspu.sh: Pass -Wa,-noexecstack to $CC.
94
95 2008-10-09  Kai Tietz  <kai.tietz@onevision.com>
96
97         * dlltool.c (PAGE_SIZE): Make sure it has bfd_vma type.
98         (PAGE_MASK): Likewise.
99         (sfunc): Change to address size of bfd_vma for base-file.
100         (flush_page): Likewise.
101         (gen_exp_file): Likewise.
102
103 2008-10-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
104
105         * readelf.c (process_section_headers): Do not cut the section names and
106         types if running with --wide.
107
108 2008-10-06  Tom Tromey  <tromey@redhat.com>
109
110         * dwarf.c (display_debug_frames): Change text for uniformity.
111         (process_debug_info): Likewise.
112         (display_debug_aranges): Likewise.  Indent address output.
113         (display_debug_pubnames): Print offset in hex.
114
115 2008-10-02  Andrew Paprocki  <andrew@ishiboo.com>
116
117         PR 6934
118         * stabs.c (parse_stab_string): Parse and ignore =Y<name> strings
119         generated by the SUNPro C++ compiler.
120
121 2008-09-30  Andrew Paprocki  <andrew@ishiboo.com>
122
123         PR 6922
124         * stabs.c (parse_stab_sun_builtin_type): Parse, but ignore SUN's
125         'b' and 'v' extensions.
126
127 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
128             Steve Ellcey  <sje@cup.hp.com>
129
130         * configure: Regenerate for new libtool.
131         * aclocal.m4: Ditto.
132         * Makefile.in: Ditto.
133         * doc/Makefile.in: Ditto.
134
135 2008-09-28  Alan Modra  <amodra@bigpond.net.au>
136
137         * objcopy.c (setup_section): Set elf_group_id.
138
139 2008-09-24  Richard Henderson  <rth@redhat.com>
140
141         * dwarf.c (size_of_encoded_value, get_encoded_value): Move up.
142         (decode_location_expression): Add section parameter.  Handle
143         DW_OP_GNU_encoded_addr.
144         (read_and_display_attr_value): Update decode_location_expression call.
145         (display_debug_loc, display_debug_frames): Likewise.
146
147 2008-09-25  Alan Modra  <amodra@bigpond.net.au>
148
149         PR 6913
150         * dwarf.c (print_dwarf_vma): Don't call printf without format string.
151
152 2008-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
153
154         Suppress warnings on NONE relocations to discarded sections.
155         * readelf.c (is_none_reloc): New function.
156         (debug_apply_relocations): Ignore is_none_reloc() relocations.
157
158 2008-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
159
160         Fix loading large elf64 binaries on 32bit hosts.
161         * configure.in: Call AC_SYS_LARGEFILE.
162         * config.in: Regenerate.
163         * configure: Regenerate.
164
165 2008-09-11  Alan Modra  <amodra@bigpond.net.au>
166
167         * po/sv.po: Update.
168
169 2008-09-08  Tristan Gingold  <gingold@adacore.com>
170
171         * BRANCHES: Add 2.18 and 2.19 release branches.
172
173 2008-09-08  Tristan Gingold  <gingold@adacore.com>
174
175         * NEWS: Add a marker for the 2.19 features.
176
177 2008-09-05  Daniel Jacobowitz  <dan@codesourcery.com>
178
179         * readelf.c (load_specific_debug_section): New function, from
180         load_debug_section.
181         (load_debug_section): Use load_specific_debug_section.
182         (display_debug_section): Use load_specific_debug_section.  Check for
183         multiple sections with the same name.
184
185 2008-08-28  Tristan Gingold  <gingold@adacore.com>
186
187         * objdump.c (dump_stabs): Add sections for Darwin.
188
189 2008-08-25  Alan Modra  <amodra@bigpond.net.au>
190
191         * sysdep.h: Include "binary-io.h".
192         (O_BINARY): Don't define here.
193         * bin2c.c (O_BINARY, O_TEXT, SET_BINARY): Don't define here.
194         * strings.c: Likewise.
195         (main): Remove #ifdef SET_BINARY.
196         * Makefile.am: Run "make dep-am"
197         * Makefile.in: Regenerate.
198
199 2008-08-24  Alan Modra  <amodra@bigpond.net.au>
200
201         * configure.in: Update a number of obsolete autoconf macros.
202         * configure: Regenerate.
203         * aclocal.m4: Regenerate.
204
205 2008-08-21  Richard Henderson  <rth@redhat.com>
206
207         * readelf.c (is_32bit_pcrel_reloc): Fix hppa entry.
208         (is_64bit_pcrel_reloc): New.
209         (debug_apply_relocations): Use it.  Handle hppa pcrel bias.
210
211 2008-08-15  Alan Modra  <amodra@bigpond.net.au>
212
213         PR 6526
214         * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
215         * Makefile.in: Regenerate.
216         * aclocal.m4: Regenerate.
217         * config.in: Regenerate.
218         * configure: Regenerate.
219         * doc/Makefile.in: Regenerate.
220
221 2008-08-09  Alan Modra  <amodra@bigpond.net.au>
222
223         PR 6615
224         * rename.c (smart_rename): Punctuate error messages.
225
226 2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
227             Daniel Jacobowitz  <dan@codesourcery.com>
228             Catherine Moore  <clm@codesourcery.com>
229             Mark Shinwell  <shinwell@codesourcery.com>
230
231         * readelf.c (get_mips_symbol_other): Handle STO_MIPS_PLT and
232         STO_MIPS_PIC.
233         (slurp_rela_relocs, slurp_rel_relocs): Handle MIPS ELF64 here.
234         (dump_relocations, debug_apply_relocations): Don't handle it here.
235         (get_mips_dynamic_type): Handle DT_MIPS_PLTGOT and DT_MIPS_RWPLT.
236         (print_mips_pltgot_entry): New function.
237         (process_mips_specific): Dump the PLT GOT.
238
239 2008-08-08  Alan Modra  <amodra@bigpond.net.au>
240
241         * readelf.c (is_64bit_abs_reloc): Return true for R_MIPS_64.
242
243 2008-08-06  Alan Modra  <amodra@bigpond.net.au>
244
245         PR 6774
246         * objcopy.c (copy_object): Don't setup_bfd_headers when extract_symbol.
247         (setup_section): Don't zero vma and lma when extract_symbol.
248         (copy_section): Discard relocations when extract_symbol.
249         * doc/binutils.texi: Update --extract-symbol description.
250
251 2008-08-04  Alan Modra  <amodra@bigpond.net.au>
252
253         * Makefile.am (POTFILES.in): Set LC_ALL=C.
254         * Makefile.in: Regenerate.
255
256 2008-08-04  Markus Weiss  <weissms@aros.org>
257
258         * readelf.c (get_osabi_name <ELFOSABI_AROS>): Change name.
259
260 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
261
262         * dwarf.c (dwarf_regnames_i386): Remove AVX registers.
263         (dwarf_regnames_x86_64): Likewise.
264
265 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
266
267         * dlltool.c, dwarf.c, objdump.c, readelf.c, resrc.c, resres.c,
268         windmc.c: Silence gcc warnings.
269
270 2008-07-28  Alan Modra  <amodra@bigpond.net.au>
271
272         * readelf.c (print_vma): Typo fix.
273
274 2008-07-28  Alan Modra  <amodra@bigpond.net.au>
275
276         PR 6769
277         * readelf.c (print_dec_vma, print_hex_vma): Delete.
278         (print_vma): Use BFD_VMA_FMT.
279         * size.c (size_number, rprint_number): Likewise.
280
281 2008-07-26  Michael Eager <eager@eagercon.com>
282
283         * readelf.c (display_power_gnu_attribute): Display
284         single-precision hard float.
285
286 2008-07-21  Luis Machado  <luisgpm@br.ibm.com>
287
288         * readelf.c (get_note_type): Handle VSX notes.
289
290 2008-07-15  H.J. Lu  <hongjiu.lu@intel.com>
291
292         * objdump.c (load_debug_section): Initialize section_is_compressed 
293         for gcc 3.4/ia64.
294         * readelf.c (load_debug_section): Likewise.
295
296 2008-07-12  Jie Zhang  <jie.zhang@analog.com>
297
298         Revert
299         2008-07-12  Jie Zhang  <jie.zhang@analog.com>
300         * readelf.c (get_machine_flags): Deal with Blackfin specific
301         flags.
302
303 2008-07-12  Jie Zhang  <jie.zhang@analog.com>
304
305         * readelf.c (get_machine_flags): Deal with Blackfin specific
306         flags.
307
308 2008-07-09  Craig Silverstein  <csilvers@google.com>
309
310         * config.in: Add HAVE_ZLIB_H
311         * configure.in: Add test for libz and zlib.h
312         * configure: Regenerate.
313         * dwarf.c (debug_displays): Add .zdebug_* strings.
314         * dwarf.h (struct dwarf_section): Add fields uncompressed_namd
315         and compressed_name.
316         * objdump.c (load_debug_section): Call
317         bfd_uncompress_section_contents when loading a compressed
318         section.
319         (dump_dwarf_section): Recognize compressed section name.
320         (mach_o_dwarf_sections): Rename as
321         mach_o_uncompressed_dwarf_sections.
322         (mach_o_compressed_dwarf_sections): New variable.
323         (generic_dwarf_section): Rename as
324         generic_uncompressed_dwarf_sections.
325         (generic_compressed_dwarf_sections): New variable.
326         (check_mach_o_dwarf): Save and restore
327         mach_o_compressed_dwarf_sections.
328         * readelf.c: Add #include for config.h and zlib.h
329         (process_section_headers): Recognize compressed section name.
330         (uncompress_section_contents): New function.
331         (load_debug_section): Call uncompress_section_contents when
332         loading a compressed section.
333         (display_debug_section): Recognize compressed section name.
334
335 2008-07-07  Alan Modra  <amodra@bigpond.net.au>
336
337         * objdump.c (find_symbol_for_address): Prefer symbols in current
338         section.
339
340 2008-07-07  Alan Modra  <amodra@bigpond.net.au>
341
342         * ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
343         * nlmconv.c (main, powerpc_build_stubs): Likewise.
344         * rescoff.c (write_coff_file): Likewise.
345         * resres.c (write_res_file): Likewise.
346         * windmc.c (windmc_write_bin): Likewise.
347
348 2008-06-18  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
349
350         * readelf.c (guess_is_rela): Add EM_CR16_OLD.
351         (dump_relocations): Likewise.
352         (get_machine_name): Likewise.
353         (is_32bit_abs_reloc): Likewise.
354
355 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
356
357         * configure: Regenerate.
358
359 2008-06-12  DJ Delorie  <dj@redhat.com>
360
361         * readelf.c (guess_is_rela): Add EM_M32C_OLD.
362         (dump_relocations): Likewise.
363         (process_section_headers): Likewise.
364         (is_32bit_abs_reloc): Likewise.
365         (is_16bit_abs_reloc): Likewise.
366
367 2008-06-12  Nick Clifton  <nickc@redhat.com>
368
369         PR binutils/6483
370         * objdump.c (dump_bfd): If the -g option found no STABS or IEEE
371         debug information to display, try dumping DWARF information
372         instead.
373         * rddbg.c (read_debugging_info): Add a parameter to suppress the
374         display of a warning message when no debug information is found.
375         * budbg.h (read_debugging_info): Update prototype.
376         * objcopy.c (copy_object): Continue to allow read_debugging_info
377         to produce warning messages.
378         * doc/binutils.texi (--debugging): Document new behaviour of the
379         -g/--debugging option.
380
381 2008-06-10  Ben Elliston  <bje@gnu.org>
382
383         * MAINTAINERS: Remove myself as m68k maintainer.
384
385 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
386
387         * Makefile.in: Regenerate.
388         * doc/Makefile.in: Regenerate.
389
390 2008-05-12  Alan Modra  <amodra@bigpond.net.au>
391
392         * embedspu.sh: Test for presence of ._ea by looking at section
393         table rather than looking at relocs.  Correct toe_addr substitution.
394
395 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
396
397         * embedspu.sh: Take note of R_SPU_PPU32/64 relocs without a symbol,
398         and if present, put image in ".data.speelf".  Put program handle
399         in ".data.spehandle".
400
401 2008-05-01  Nick Clifton  <nickc@redhat.com>
402
403         * readelf.c (print_symbol): Add code to display non-printing
404         characters.
405
406 2008-04-30  John Heidemann  <johnh@isi.edu>
407
408         * doc/binutils.texi (strings): Add "unicode" to the documentation
409         of strings in order to make explicit that it supports this
410         feature.
411
412 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
413
414         * readelf.c (process_program_headers): Correct section in segment
415         display.
416
417 2008-04-28  M Thomas  <mthomas@rhrk.uni-kl.de>
418             Nick Clifton  <nickc@redhat.com>
419
420         PR binutils/6449
421         * objdump.c (slurp_file): Open the file in binary mode.
422         * ar.c: Remove conditional definition of O_BINARY.
423         * bin2.c: Likewise.
424         * rename.c: Likewise.
425         * strings.c: Likewise.
426         * sysdep.h: Add conditional definition of O_BINARY.
427
428 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
429
430         * aclocal.m4: Regenerate.
431         * configure: Regenerate.
432
433 2008-04-16  Jean-Yves Lefort  <jylefort@brutele.be>
434
435         PR binutils/6034
436         * objcopy.c (stuct symlist): Rename to
437         is_specified_symbol_predicate_data.
438         (strip_specific_list): Rename to strip_specific_htab.
439         (strip_unneeded_list): Rename to strip_unneeded_htab.
440         (keep_specific_list):  Rename to keep_specific_htab.
441         (localize_specific_list): Rename to localize_specific_htab.
442         (globalize_specific_list): Rename to globalize_specific_htab.
443         (keepglobal_specific_list): Rename to keepglobal_specific_htab.
444         (weaken_specific_list): Rename to weaken_specific_htab.
445         (eq_string): New function.
446         (create_symbol_htab): New function.
447         (create_symbol_htabs): New function.
448         (add_specific_symbol): Change to use hash tables.
449         (is_specified_symbol_predicate): New function.
450         (is_specified_symbol): Use hash table lookup.
451         (is_strip_section): Update to use new functions and hash tables.
452         (filter_symbols): Likewise.
453         (copy_object): Likewise.
454         (copy_section): Likewise.
455         (strip_main): Likewise.
456         (copy_main): Likewise.
457         (main): Likewise.
458
459 2008-04-14  David S. Miller  <davem@davemloft.net>
460
461         * readelf.c (get_gnu_elf_note_type): Recognize NT_GNU_GOLD_VERSION.
462
463 2008-04-11  Torleif Sandnes  <torleif.sandnes@gmail.com>
464
465         * dwarf.c (display_debug_lines): Rename to
466         display_debug_lines_raw.
467         (display_debug_lines_decoded): New function.  Displays the
468         interpreted contents of a .debug_line section.
469         (display_debug_lines): New function: Selects either a raw dump or
470         a decoded dump (or both) as requested by the user.
471         * dwarf.h (do_debug_lines_decoded): New extern.
472         * readelf.c: Add support for -wL or --debug-dump=decodedline
473         option to display the decoded contents of a .debug_line section.
474         * doc/binutils.texi: Document the new option.
475         * NEWS: Mention the new feature.
476
477 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
478
479         * dwarf.c: Remove trailing whitespace throughout file.
480
481 2008-04-04  Nick Clifton  <nickc@redhat.com>
482
483         * po/sk.po: Updated Slovak translation.
484
485 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
486
487         * dwarf.c (dwarf_regnames_i386): Add AVX registers.
488         (dwarf_regnames_x86_64): Likewise.
489
490 2008-03-27  Cary Coutant <ccoutant@google.com>
491
492         Add support for thin archives.
493         * ar.c (make_thin_archive): New global flag.
494         (map_over_members): Deal with full pathnames in thin archives.
495         (usage, main): Add 'T' option for building thin archives.
496         (replace_members): Pass thin archive flag to ar_emul_append.
497         * arsup.c (ar_open): Initialize new flag.
498         * binemul.c (ar_emul_append): Add new parameter for
499         flattening nested archives.
500         (do_ar_emul_default_append): New function.
501         (ar_emul_default_append): Factored out recursive code.
502         * binutils/binemul.h (ar_emul_default_append): Add new parameter.
503         (struct bin_emulation_xfer_struct): New parameter for ar_append.
504         * dlltool.c (gen_lib_file): Initialize thin archive flag.
505         * emul_aix.c (ar_emul_aix_internal): Add new flatten
506         parameter, currently unimplemented.
507         All callers changed.
508         * objcopy.c (copy_archive): Preserve thin archive flag.
509         * doc/binutils.texi: Update ar documentation.
510         * NEWS: Mention the new feature.
511
512 2008-03-20  H.J. Lu  <hongjiu.lu@intel.com>
513
514         * readelf.c (process_mips_specific): Declare addr_size as int.
515
516 2008-03-20  Richard Sandiford  <rsandifo@nildram.co.uk>
517
518         * readelf.c (print_mips_got_entry): New function.
519         (process_mips_specific): Print GOT information.
520
521 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
522
523         * aclocal.m4: Regenerate.
524         * configure: Likewise.
525         * Makefile.in: Likewise.
526         * doc/Makefile.in: Likewise.
527
528 2008-03-16  Brian Dessent  <brian@dessent.net>
529
530         * rcparse.y (resid): Allow control text to span multiple lines.
531
532 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
533
534         * readelf.c: Use %u throughout when printing sh_link or sh_info,
535         %lu when printing sh_addralign.
536         (process_version_sections): Use identical formats when printing
537         all offset and sh_link fields.
538
539 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
540
541         * Makefile.am: Run "make dep-am".
542         * Makefile.in: Regenerate.
543         * doc/Makefile.in: Regenerate.
544         * configure: Regenerate.
545
546 2008-03-12  Alan Modra  <amodra@bigpond.net.au>
547
548         PR 5900
549         * readelf.c (SECTION_HEADER_INDEX, SECTION_HEADER_NUM): Delete.
550         Remove use throughout file.
551         (SECTION_HEADER): Likewise.
552         (dump_relocations): Don't adjust st_shndx for reserved range.
553         (process_file_header): Mask SHN_XINDEX to values seen in external
554         elf structs.  Simplify valid section index tests.
555         (get_32bit_elf_symbols, get_64bit_elf_symbols): Mask SHN_XINDEX.
556         Map reserved st_shndx to internal form.
557         (process_section_groups): Test that group symbol st_shndx is in
558         range, not just non-zero.  Delete reserved range check.
559         (get_symbol_index_type): Mask "type" to 16 bits when printing PRC,
560         OS or RSV.
561
562 2008-03-09  Paul Brook  <paul@codesourcery.com>
563
564         * readelf.c (arm_attr_tag_VFP_arch): Add "VFPv3-D16".
565
566 2008-03-03  James E. Wilson  <wilson@tuliptree.org>
567
568         * MAINTAINERS: Update my email address.
569
570 2008-03-03  Nick Clifton  <nickc@redhat.com>
571
572         * dwarf.c (decode_location_expression): Handle
573         DW_OP_PGI_omp_thread_num.
574
575 2008-03-01  Alan Modra  <amodra@bigpond.net.au>
576
577         * objdump.c (objdump_print_addr): Initialise "sym".
578
579 2008-02-27  Justin Pryzby  <justinpryzby@users.sourceforge.net>
580             Nick Clifton  <nickc@redhat.com>
581
582         * ar.c (usage): Mention -t command line switch.
583         * doc/binutils.texi (ranlib): Document -t command line switch.
584
585 2008-02-26  Nick Clifton  <nickc@redhat.com>
586
587         * objdump.c (objdump_print_addr): If displaying file offsets, show
588         the offset even if there are no symbols available.
589         (dump_section): Display nothing if none of the section is going to
590         be dumped.  Display the file offset, if requested, of the location
591         from where the dump starts.
592         * doc/binutils.texi (objdump): Mention that dumping via the -s
593         switch is also affected by the -F option.
594
595 2008-02-26  Nick Clifton  <nickc@redhat.com>
596
597         Re-apply this patch which was accidentally deleted:
598         2006-05-16  Carlos O'Donell  <carlos@codesourcery.com>
599
600         * doc/binutils.texi: Use "Binutils Index" for index name.
601
602 2008-02-22  Nick Clifton  <nickc@redhat.com>
603
604         * objdump.c (display_file_offsets): New variable.
605         (long_options): Add -F/--file-offsets.
606         (objdump_print_addr_with_sym): If displaying file offsets, print
607         the offset of the given address.
608         (disassemble_bytes): If displaying file offsets, tell the user how
609         many zeroes are skipped and the file offset of the point where
610         dumping resumes.
611         (disassemble_section): Only display the name of the section if
612         data is going to be dumped from it.
613         (main): Handle new option.  Produce error messages if the start or
614         stop addresses do not make sense.
615         * doc/binutils.texi: Document the new feature.
616         * NEWS: Mention the new feature.
617
618 2008-02-15  Chu Li  <chul@cn.fujitsu.com>
619             Nick Clifton  <nickc@redhat.com>
620
621         PR binutils/5713
622         * strings.c (integer_arg): Delete function.
623         (string_min): Initialise to 4.
624         (main): Use strtoul to parse integer arguments.
625         Move check for an invalid string length to after all the arguments
626         have been parsed.
627         (usage): Use indentation to indicate that -<n> is a another form
628         of the --bytes= command line option.
629
630 2008-02-12  Nick Clifton  <nickc@redhat.com>
631
632         * dlltool.c (mcore_elf_cache_filename): Add a const qualifier to
633         the argument.
634         (scan_obj_filename): Do not drop the const qualifier when calling
635         mcore_elf_cache_filename.
636         (struct fname_cache): Add const qualifier to filename field.
637
638 2008-02-08  H.J. Lu  <hongjiu.lu@intel.com>
639
640         PR binutils/5713
641         * strings.c (main): Set string_min to 4 if it is <= 0.
642
643 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
644
645         * objdump.c (main): Don't pass unadorned NULL to concat.
646
647 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
648
649         PR 5715
650         * configure: Regenerated.
651
652 2008-02-03  Adam Nemet  <anemet@caviumnetworks.com>
653
654         * readelf.c (get_machine_flags): Handle Octeon.
655
656 2008-01-30  Tristan Gingold  <gingold@adacore.com>
657
658         * readelf.c (dump_relocations): Decode OpenVMS-specific sections.
659         (get_ia64_dynamic_type): Decode OpenVMS-specific tags.
660         (get_dynamic_type): Handle IA64-specific tags.
661         (get_ia64_section_type_name): Handle OpenVMS-specific sections.
662         (get_section_type_name): Handle OS-specific sections (and
663         particularly IA64 OpenVMS one).
664         (get_elf_section_flags): Makes flags static.  Add entries for IA64 and
665         decode them.
666
667 2008-01-29  Nick Clifton  <nickc@redhat.com>
668
669         * dwarf.c (print_dwarf_vma): New function.  Display the value of a
670         dwarf_vma type at a specified precision.  Use mingw field type
671         specifier if necessary.
672         (display_debug_loc): Use dwarf_vma type for begin and end values.
673         Use print_dwarf_vma to display their values.  Use byte_get_signed
674         in order to correctly detect the -1 escape value.
675         (display_debug_aranges): Likewise.
676         (display_debug_ranges): Likewise.
677
678 2008-01-29  Alan Modra  <amodra@bigpond.net.au>
679
680         * dwarf.c (display_debug_loc): Correct test for base address
681         entry when 64-bit host dumping 32-bit object.
682
683 2008-01-29  Alan Modra  <amodra@bigpond.net.au>
684
685         * MAINTAINERS: Remove myself as ix86 maintainer.  Add for SPU.
686
687 2008-01-28  Nick Clifton  <nickc@redhat.com>
688
689         PR binutils/5529
690         * rclex.c (yylex): Also allow the hypen character.
691
692 2008-01-28  H.J. Lu  <hongjiu.lu@intel.com>
693
694         * dwarf.c: Include "elf/common.h".
695         (eh_addr_size): Changed to int.
696         (dwarf_regnames_i386): New.
697         (dwarf_regnames_x86_64): Likewise.
698         (dwarf_regnames): Likewise.
699         (dwarf_regnames_count): Likewise.
700         (init_dwarf_regnames): Likewise.
701         (regname): Likewise.
702         (frame_display_row): Properly support different address size.
703         Call regname to get register name.
704         (display_debug_frames): Call regname to get register name.
705         Display DW_CFA_def_cfa_register as DW_CFA_def_cfa_register
706         instead of DW_CFA_def_cfa_reg.
707
708         * dwarf.h (init_dwarf_regnames): New.
709
710         * objdump.c: Include "elf-bfd.h".
711         (dump_dwarf): Call init_dwarf_regnames on ELF input.
712
713         * readelf.c (guess_is_rela): Change argument to int.
714         (parse_args): Remove the undocumented upper case options for
715         -wX.
716         (process_file_header): Call init_dwarf_regnames.
717
718 2008-01-25  DJ Delorie  <dj@redhat.com>
719
720         * readelf.c (process_section_headers): Add m16c handler.
721         (is_16bit_abs_reloc): Recognize R_M32C_16.
722
723 2008-01-25  Kai Tietz  <kai.tietz@onevision.com>
724
725         * prdbg.c: Correct formatter style use.
726         * readelf.c: Likewise.
727         * strings.c: Likewise.
728
729 2008-01-25  Nick Clifton  <nickc@redhat.com>
730
731         * po/ru.po: Updated Russian translation.
732
733 2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
734
735         * MAINTAINERS: Update my email address.
736
737 2008-01-14  Nick Clifton  <nickc@redhat.com>
738
739         * dwarf.c (process_debug_info): Include the CU offset and corrupt
740         version value when reporting unrecognised DWARF version numbers.
741         (load_debug_info): Remember a failed attempt to load and parse the
742         .debug_info section and do not repeat such attempts.
743         (display_debug_lines): Check the return value from load_debug_info
744         and return whilst displaying a warning message if the load failed.
745         (display_debug_loc): Likewise.
746         (display_debug_ranges): Likewise.
747         (DEBUG_INFO_UNAVAILABLE): Value stored in num_debug_info_entries
748         when the .debug_info section could not be loaded/parsed.
749         (process_debug_info): Display the length of the compilation unit
750         in hex, so that it corresponds with the offsets that will follow.
751         Tell the user if the length was 32-bit or 64-bit.
752         If a DIE abbreviation could not be found, tell the user the offset
753         of the DIE.
754         (free_debug_memory): Do not attempt to free any entries in the
755         debug_information array if num_debug_info_entries is set to
756         DEBUG_INFO_UNAVAILABLE.
757
758 2008-01-10  Andreas Schwab  <schwab@suse.de>
759
760         * readelf.c (is_64bit_abs_reloc): Handle R_S390_64.
761
762 2008-01-09  Jakub Zawadzki  <darkjames@darkjames.ath.cx>
763
764         PR binutils/55326
765         * bucomm.c (list_supported_architectures): Free architecture list
766         after use.
767         * windres.c (set_endianess): Likewise.
768         * windmc.c (set_endianess): Likewise.
769
770 2008-01-08  Kai Tietz  <kai.tietz@onevision.com>
771
772         PR binutils/5529
773         * binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post
774         characters for name tokens.
775
776 2008-01-04  Greg McGary  <greg@mcgary.org>
777
778         * prdbg.c (print_vma): Print as long long, if host supports it.
779
780 2008-01-03  Nick Clifton  <nickc@redhat.com>
781
782         * dwarf.c (read_and_display_attr_value): Prefix values that are
783         displayed in hexadecimal with 0x.
784         For the DW_AT_import attribute display the abbreviation number and
785         tag of the imported DIE.
786         (process_debug_info): Warn about lengths that reserved by the
787         DWARF3 specification.
788         Provide more information when corrupted DIEs are detected.
789         Warn if DIE corruption makes the sibling level negative.
790
791 For older changes see ChangeLog-2007
792 \f
793 Local Variables:
794 mode: change-log
795 left-margin: 8
796 fill-column: 74
797 version-control: never
798 End: