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