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