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