* readelf.c (dynamic_info): Correct size of array.
[binutils.git] / binutils / ChangeLog
blobfd9b2f55bbaca5a050330965b31057022e14fb95
1 2009-10-23  Thomas Cougnard  <thomas.cougnard@gmail.com>
3         * readelf.c (dynamic_info): Correct size of array.
5 2009-10-21  Ben Elliston  <bje@gnu.org>
7         * MAINTAINERS (BUILD SYSTEM, TESTSUITES): Remove myself.
9 2009-10-19  Jerker Bäck  <jerker.back@gmail.com>
11         PR binutils/10793
12         * prdbg.c (tg_end_struct_type): Warning fix.
14         PR binutils/10792
15         * dlltool.c (dll_name_list_append): Declare variable at start
16         of block.
17         (dll_name_list_count, dll_name-list_print): Likewise.
19 2009-10-16  Doug Evans  <dje@sebabeach.org>
21         * MAINTAINERS: Add myself as m32r maintainer.
23 2009-10-16  Jerker Bäck <jerker.back@gmail.com>
25         PR 10764
26         * Makefile.am (sysinfo.o, syslex.o): Place source file after all
27         command line switches.
28         * Makefile.in: Regenerate.
30 2009-10-16  Yann Droneaud  <yann@droneaud.fr>
32         PR 10768
33         * dlltool.c (bfd_get_errmsg): New macro.
34         (scan_obj_file): Use it.
35         (make_one_lib_file): Use it.
36         (make_head): Use it.
37         (make_delay_head): Use it.
38         (make_tail): Use it.
39         (gen_lib_file): Use it.
40         (identify_dll_for_implib): Use it.
41         (identify_search_archive):  Use it.
43 2009-10-16  Nick Clifton  <nickc@redhat.com>
45         * readelf.c (usage): Add mention of --debug-dump=frames-interp.
46         Wrap output to 80 columns.
47         * objdump.c (usage): Likewise.
48         * doc/binutils.texi (readelf): Add note about =frames-interp.
50 2009-10-01  Alan Modra  <amodra@bigpond.net.au>
52         * addr2line.c (slurp_symtab): Don't use bfd_read_minisymbols.
54 2009-09-29  Nick Clifton  <nickc@redhat.com>
56         * doc/binutils.texi (c++filt): Remove spurious description of
57         nonexistent --java command line switch for cxxfilt.
59 2009-09-29  DJ Delorie  <dj@redhat.com>
61         * readelf.c: Add support for RX target.
62         * MAINTAINERS: Add DJ and NickC as maintainers for RX.
64 2009-09-28  Alan Modra  <amodra@bigpond.net.au>
66         * configure.in: Don't invoke configure.tgt on $enable_targets.
67         * configure: Regenerate.
69 2009-09-28  Nick Clifton  <nickc@redhat.com>
71         PR 10478
72         * readelf.c (get_elf_section_flags): Allow SHN_BEFORE and
73         SHN_AFTER section link values in x86 binaries.
74         (process_section_headers): Likewise.
76 2009-09-25  Dimitry Gorbachev  <d.g.gorbachev@gmail.com>
78         PR 10656
79         * readelf.c: Remove duplicate declaration of variable do_wide.
80         * dwarf.h: Add export of do_wide.
82 2009-09-24  Cary Coutant  <ccoutant@google.com>
84         * dwarf.c (get_TAG_name): Add missing DWARF-3 and new DWARF-4 tags.
85         (get_FORM_name): Add new DWARF-4 forms.
86         (read_and_display_attr_value): Add DW_FORM_ref_sig8, DW_LANG_Python.
87         (get_AT_name): Add new DWARF-4 and GNU-specific attributes.
88         (process_debug_info): Add do_types parameter; change all callers.
89         Add support for .debug_types sections.
90         (display_debug_types): New function.
91         (debug_displays): Add .debug_types section.
92         * readelf.c (process_section_headers): Add .debug_types section.
93         (display_debug_section): Simplify call to streq.
95 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
97         * readelf.c (print_dynamic_symbol): Format entries as for
98         normal symbol table.
99         (process_symbol_table): Use -7s format string for visibility.
101 2009-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
103         * objdump.c (disassemble_section): Use bfd_get_arch_size
104         instead of assuming that the address size is 32 bits.
106 2009-09-21  Alan Modra  <amodra@bigpond.net.au>
108         * readelf.c (get_ppc_dynamic_type): Add TLSOPT.
109         (get_ppc64_dynamic_type): Likewise.
111 2009-09-18  Nick Clifton  <nickc@redhat.com>
113         * po/es.po: Updated Spanish translation.
114         * po/vi.po: Updated Vietnamese translation.
116 2009-09-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
118         * readelf.c (process_version_sections, process_symbol_table):
119         Use symbolic constants.
121 2009-09-11  Nick Clifton  <nickc@redhat.com>
123         * po/binutils.pot: Updated by the Translation project.
125 2009-09-11  Philippe De Muyter  <phdm@macqel.be>
127         * obcopy.c (copy_object): New parameter `input_arch', architecture
128         of input file, if not specified in input file itself; all callers
129         updated; `binary_architecture' hack removed.
130         (copy_archive, copy_file): New parameter `input_arch', for
131         `copy_object' usage.
132         (copy_main): Accept `-B' (`--binary-architecture') option also
133         for any arch-less input ifile format, not only `binary'; remove
134         bfd_external_binary_architecture hack; instead, add `input_arch'
135         to calls to `copy_file'.
136         * windres.c, windmc.c : Obsolete and useless external references
137         to `bfd_external_binary_architecture' or `bfd_external_machine'
138         removed.
139         * doc/binutils.texi: Mention that -B parameter can be used for any
140         input file type which does not have its own architecture.
142 2009-09-10  Martin Thuresson  <martin@mtme.org>
144         Update sources to compile cleanly with -Wc++-compat:
145         * addr2line.c (slurp_symtab): Fix casts. Introduce variable
146         minisyms to avoid aliasing varning.
147         * ar.c: Add casts.
148         (normalize): Use name del instead of delete.
149         (display_target_list,display_info_table): Change loop counter
150         variable a to int.
151         * bucomm.c: Add casts.
152         * debug.c: Update function to use new names.
153         (struct debug_baseclass): Rename member from virtual to
154         is_virtual.
155         (struct debug_type_s, struct debug_field_s, struct
156         debug_baseclass_s, struct debug_method_s, struct
157         debug_method_variant_s, struct debug_type_s): Rename struct from
158         avoid name collision.
159         * debug.h: Use new struct names.
160         * dwarf.c: Add casts.
161         (free_debug_memory): Change loop counter variable a to int.
162         * ieee.c: Add casts.
163         (enum ieee_var_kind): Move to top level.
164         (ieee_class_baseclass): Rename parameter virtual to is_virtual.
165         (ieee_class_method_var): Rename variable virtual to is_virtual.
166         * nm.c: Add casts.
167         * objcopy.c: Add casts.
168         (copy_archive): Rename variable delete to del.
169         * objdump.c: Add casts.
170         (dump_dwarf_section): Change loop counter variable i to int.
171         * prdbg.c: Add casts.
172         (pr_class_baseclass,tg_class_baseclass): Rename parameters virtual
173         to is_virtual.
174         * readelf.c: Add casts.
175         (struct ia64_unw_table_entry,struct hppa_unw_table_entry): Move to
176         top level.
177         * size.c: Add casts.
178         * stabs.c (parse_stab_type, parse_stab_range_type,
179         (parse_stab_cpp_abbrev): Rename parameter from typename to
180         type_name.
181         (parse_stab_baseclasses): Rename variable virtual to is_virtual.
182         * strings.c: Add casts.
183         * wrstabs.c (stab_class_baseclass): Rename parameter virtual to
184         is_virtual.
186 2009-09-09  Nick Clifton  <nickc@redhat.com>
188         PR 10478:
189         readelf.c (get_elf_section_flags): Add support for SHF_EXCLUDE and
190         SHF_ORDERED.
191         (process_section_headers): Warn about out of range sh_link
192         values.  When displaying detailed section header information
193         annote the SHN_BEFORE and SHN_AFTER values.
195 2009-09-08  Alan Modra  <amodra@bigpond.net.au>
197         * dwarf.c (byte_get_little_endian): Handle size of 3.
198         (byte_get_big_endian): Likewise.
199         * readelf.c (byte_put_little_endian): Likewise.
200         (byte_put_big_endian): Likewise.
201         (is_24bit_abs_reloc): New function.
202         (is_none_reloc): Formatting.
203         (apply_relocations): Use is_24bit_abs_reloc.  Handle pj and xtensa
204         reloc peculiarity.
206 2009-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
208         * readelf.c (is_none_reloc <EM_XTENSA_OLD>, is_none_reloc <EM_XTENSA>):
209         New.
211 2009-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
213         * dwarf.c (process_debug_info): Support section padding abbrev codes.
215 2009-09-07  Tristan Gingold  <gingold@adacore.com>
217         * po/binutils.pot: Regenerate.
219 2009-09-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
221         * Makefile.am (sysdump.o): Depend on sysroff.c.
222         * Makefile.in: Regenerate.
224 2009-09-05  Martin Thuresson  <martin@mtme.org>
226         * ieee.c (ieee_read_cxx_misc, ieee_read_cxx_class,
227         ieee_read_reference): Rename variables named class to cxxclass.
229 2009-09-04  Tristan Gingold  <gingold@adacore.com>
231         * BRANCHES: Add binutils-2_20-branch.
233 2009-09-04  Tristan Gingold  <gingold@adacore.com>
235         * NEWS: Add marker for 2.20.
237 2009-09-04  Timo Kreuzer  <timo.kreuzer@web.de>
239         * dlltool.c (delayimp_name): Add new global variable
240         (usage, long_options, main): Add new option "-y" / "--output-delaylib"
241         (struct mac): Add fields how_dljtab_size, how_dljtab_roff1,
242         how_dljtab_roff2, how_dljtab, trampoline.
243         (i386_dljtab): Add binary stub for x86 delay import.
244         (i386_trampoline): Add text assembly stub for x86 delay import.
245         (mtable): Add delay import data for M386 and MX86 only.
246         (make_delay_head): New function.
247         (make_one_lib_file): New arg delay creates delay-load import stub.
248         (gen_lib_file): New arg delay likewise.
249         (HOW_JTAB, HOW_JTAB_SIZE, HOW_JTAB_ROFF): New arg delay likewise.
250         (HOW_JTAB_ROFF2, HOW_JTAB_ROFF3): New macros for delay import.
251         (make_tail): Convert hard TABS embedded in strings to "\t" escapes.
252         * NEWS: Mention new feature.  Also fix whitespace.
253         * doc/binutils.texi: Updated dlltool documentation.
255 2009-09-02  Tristan Gingold  <gingold@adacore.com>
257         * configure.com: Do not copy makefile.vms-in to makefile.vms
258         * makefile.vms-in: Renamed to...
259         * makefile.vms: ... this usual name as it is not processed anymore.
260         Remove WRITE_DEBUG_OBJS (unused) and reorder object files for
261         objdump.exe.
263 2009-09-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
265         * Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
266         (deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
267         source file name for generated files which may be in $(srcdir).
268         * Makefile.in: Regenerate.
270 2009-09-01  H.J. Lu  <hongjiu.lu@intel.com>
272         * version.c (print_version): Change to "Copyright 2009".
274 2009-09-01  Tristan Gingold  <gingold@adacore.com>
276         * makefile.vms-in: Remove unused VERSION variable.  Remove unused
277         dependencies.
278         * configure.com: Ported to Itanium VMS.  Create build.com DCL script.
280 2009-08-29  Martin Thuresson  <martin@mtme.org>
282         * nlmconv.c (main): Rename variable new to new_name.
284 2009-08-28  H.J. Lu  <hongjiu.lu@intel.com>
286         * Makefile.am (sysinfo$(EXEEXT_FOR_BUILD)): Replace
287         CFLAGS/LDFLAGS with CFLAGS_FOR_BUILD/LDFLAGS_FOR_BUILD.
288         (syslex.o): Likewise.
289         (sysinfo.o): Likewise.
290         (bin2c$(EXEEXT_FOR_BUILD)): Likewise.
291         * Makefile.in: Regenerated.
293 2009-08-27  Dave Korn  <dave.korn.cygwin@gmail.com>
295         * doc/binutils.texi (--only-keep-debug): Relocate stray para here ...
296         (--subsystem): ... from here.
298 2009-08-24  Cary Coutant  <ccoutant@google.com>
300         * objdump.c (find_symbol_for_address): Avoid costly call to
301         bfd_octets_per_byte.
303 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
305         * Makefile.am (am__skiplex, am__skipyacc): New.
306         * Makefile.in: Regenerate.
308 2009-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
310         * Makefile.am (syslex.o): Depend on sysinfo.h config.h.
311         * Makefile.in: Regenerate.
313 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
315         * Makefile.am (AM_CPPFLAGS): Renamed from ...
316         (INCLUDES): ... this.
317         (bin2c$(EXEEXT_FOR_BUILD): Adjust rule.
318         (installcheck-local): Renamed from ...
319         (installcheck): ... this.
320         * Makefile.in: Regenerate.
322         * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add no-dist and
323         foreign.
324         (MKDEP, CLEANFILES): Remove now-unneeded variables.
325         (DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
326         (mkdep section): Remove.
327         (BUILT_SOURCES): New variable, list $(GENERATED_HFILES).
328         (EXTRA_ar_SOURCES): New, list $(CFILES).
329         (syslex.o): Depend on syslex.c.
330         (sysinfo.o): Depend on sysinfo.c.
331         (arparse.h, defparse.h, nlmheaders.h rcparse.h mcparse.h):
332         Remove dependencies, now tracked by automake.
333         (srconv.o): Depend on sysroff.c.
334         (objdump.o, arparse.o, arlex.o, sysroff.o, defparse.o, deflex.o)
335         (nlmheader.o, rcparse.o, mcparse.o, rclex.o, mclex.o, dlltool.o)
336         (rescoff.o, nlmconv.o): Rewrite using automake-style dependency
337         tracking rules; only list the dependency upon the primary source
338         file, but no included headers.
339         * Makefile.in: Regenerate.
341         * Makefile.am (install-pdf, install-pdf-recursive, install-html)
342         (install-html-recursive): Remove.
343         * Makefile.in: Regenerate.
344         * doc/Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
345         (html__strip_dir, install-html, install-html-am): Remove.
346         * doc/Makefile.in: Regenerate.
348         * Makefile.in: Regenerate.
349         * aclocal.m4: Likewise.
350         * config.in: Likewise.
351         * configure: Likewise.
352         * doc/Makefile.in: Likewise.
354 2009-08-17  Nick Clifton  <nickc@redhat.com>
356         * readelf.c (is_32bit_abs_reloc): Treat R_PARISC_SECREL32 as a
357         32-bit absolute reloc for the purposes of processing debug
358         sections.
360 2009-08-10  Daniel Gutson  <dgutson@codesourcery.com>
362         * readelf.c (get_arm_section_type_name): Added support for
363         new sections headers.
365 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
367         PR binutils/10364
368         * objcopy.c (strip_main): Check return from smart_rename.
369         (copy_main): Likewise.
371 2009-07-27  Nick Clifton  <nickc@redhat.com>
373         PR 10413
374         * objdump.c (dump_section_header): Skip sections that we are
375         ignoring.
377 2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>
379         * readelf.c (guess_is_rela): Handle EM_L1OM.
380         (dump_relocations): Likewise.
381         (get_machine_name): Likewise.
382         (get_section_type_name): Likewise.
383         (get_elf_section_flags): Likewise.
384         (get_symbol_index_type): Likewise.
385         (is_32bit_abs_reloc): Likewise.
386         (is_32bit_pcrel_reloc): Likewise.
387         (is_64bit_abs_reloc): Likewise.
388         (is_64bit_pcrel_reloc): Likewise.
389         (is_none_reloc): Likewise.
391 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
393         * readelf.c (get_symbol_binding): For Linux targeted files return
394         UNIQUE for symbols with the STB_GNU_UNIQUE binding.
395         * doc/binutils.texi: Document the meaning of the 'u' symbol
396         binding in the output of nm and objdump --syms.
398 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
400         * NEWS: Mention --insn-width.
402         * objdump.c (insn_width): New.
403         (usage): Display --insn-width.
404         (option_values): Add OPTION_INSN_WIDTH.
405         (long_options): Add --insn-width.
406         (disassemble_bytes): Handle insn_width.
407         (main): Handle OPTION_INSN_WIDTH.
409         * doc/binutils.texi: Document --insn-width.
411 2009-07-17  Nick Clifton  <nickc@redhat.com>
413         * dwarf.c (display_debug_lines): If do_debug_lines has not been
414         set then default to displaying raw .debug_line section contents.
416 2009-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
418         Support unordered .debug_info references to .debug_ranges.
419         * dwarf.c (struct range_entry, range_entry_compar): New.
420         (display_debug_ranges): Remove variables last_offset, first, j,
421         seen_first_offset, use_debug_info and next.  New variables
422         range_entries and range_entry_fill.  Create the sorted copy
423         range_entries.  Remove the FIXME error on detected unordered references.
424         * dwarf.h (debug_info <range_lists>): New comment.
426 2009-07-14  Nick Clifton  <nickc@redhat.com>
428         PR 10380
429         * README: Document use of LDFLAGS="--static".
431 2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>
433         * Makefile.am: Run "make dep-am".
434         * Makefile.in: Regenerated.
436 2009-07-10  Tom Tromey  <tromey@redhat.com>
438         * Makefile.am (dwarf.o): Refer to dwarf2.h, not elf/dwarf2.h.
439         * Makefile.in: Rebuild.
440         * dwarf.c: Include dwarf2.h, not elf/dwarf2.h.
442 2009-07-06  Tristan Gingold  <gingold@adacore.com>
444         * objdump.c (dump_dwarf_section): Handle .eh_frame like other dwarf
445         sections.
446         * dwarf.h (struct dwarf_section_display): Remove eh_frame field.
447         * dwarf.c (debug_displays): Adjust for removed field.
449 2009-07-03  Jakub Jelinek  <jakub@redhat.com>
451         * dwarf.c (decode_location_expression): Handle DW_OP_stack_value
452         and DW_OP_implicit_value.
454 2009-07-01  Nick Clifton  <nickc@redhat.com>
456         PR 6714
457         * rclex.c (handle_quotes): Do not complain about whitespace
458         separating quoted strings.
459         (rclex_string): Ignore whitespace when looking for a new opening
460         quote following a closing quote.
462 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
464         PR binutils/10321
465         * bucomm.c (get_file_size): Return -1 on error.
467         * objcopy.c (copy_file): Report empty file.
469 2009-06-23  Nick Clifton  <nickc@redhat.com>
471         * dwarf.c (display_debug_lines_raw): Include the name of the
472         section in warning message.
473         (struct debug_display): Enable reloc processing for .debug_line
474         and .debug_ranges sections.
476         * readelf.c: Add --relocated-dump command line option to dump the
477         relocated contents of a specified section.
478         (request_dump): New function.
479         (parse_args): Use it.
480         (dump_section_as_bytes): Add parameter to indicate whether the
481         contents should be relocated.
482         (target_specific_reloc_handling): Add code for a R_MN10300_16
483         reloc found after a R_MN10300_SYM_DIFF reloc.
484         (debug_apply_relocations): Rename to apply_relocations.
485         (get_section_contents): New function.  Replaces common code found
486         in dump_section_as_strings and dump_section_as_bytes.
487         * doc/binutils.texi: Document new command line option.
488         * NEWS: Mention the new feature.
490 2009-06-22  Nick Clifton  <nickc@redhat.com>
492         * readelf.c (target_specific_reloc_handling): New function:
493         Processes relocs in a target specific manner.
494         (debug_apply_relocations): Use the new function.
495         * dwarf.c (display_debug_loc): End the dump with a blank line.
496         (struct debug_display): Enable reloc processing for .debug_aranges
497         and .debug_loc sections.
499 2009-06-19  Nick Clifton  <nickc@redhat.com>
501         * ar.c (usage): Do not use #ifdef inside _("...).
502         * nm.c (usage): Likewise.
504 2009-06-18  Nick Clifton  <nickc@redhat.com>
506         PR 10288
507         * objdump.c (disassemble_bytes): Set the
508         USER_SPECIFIED_MACHINE_TYPE flag in the disassemble_info structure
509         if the user has invoked the -m switch.
510         * doc/binutils.texi: Document the additional behaviour of
511         objdump's -m switch for ARM targets.
513 2009-06-18  Dave Korn  <dave.korn.cygwin@gmail.com>
515         * configure.in: Merge cegcc and mingw32ce target name changes from
516         CeGCC project.
518 2007-12-25  Pedro Alves  <pedro_alves@portugalmail.pt>
520         * configure.in: Add arm*-*-cegcc* and arm*-*-mingw32ce* targets.
521         * configure: Regenerate.
523 2009-06-15  Nick Clifton  <nickc@redhat.com>
525         PR 10263
526         * objdump.c (disassemble_bytes): Set the DISASSEMBLE_DATA bit in
527         the flags field of the disassemble_info structure if the -D switch
528         is in operation.
530 2009-06-12  Homer Xing  <homer.xing@yahoo.com>
532         * NEWS: Mention new feature added to gprof.
534 2009-06-12  John Reiser  <jreiser@BitWagon.com>
536         * readelf.c (process_symbol_table): Set gnubuckets to NULL after
537         freeing it and before returning.
539 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
541         * readelf.c (process_symbol_table): Don't return early if
542         .hash/.gnu.hash is empty/unusable and not -D.
544 2009-06-09  Tom Bramer  <tjb@postpro.net>
546         PR 10165
547         * winduni.c (wind_MultiByteToWideChar): Do not pass MB_PRECOMPOSED
548         to MultiByteToWideChar when using the CP_UTF8 or CO_UTF7 types.
550 2009-06-04  Alan Modra  <amodra@bigpond.net.au>
552         * strings.c (main): Delay parsing of decimal digits.
554 2009-06-04  Alan Modra  <amodra@bigpond.net.au>
556         * dep-in.sed: Don't use \n in replacement part of s command.
557         * Makefile.am (DEP1): LC_ALL for uniq.
558         Run "make dep-am".
559         * Makefile.in: Regenerate.
561 2009-06-03  Tristan Gingold  <gingold@adacore.com>
563         * MAINTAINERS: Add myself as Mach-O maintainer.
565 2009-06-01  Alan Modra  <amodra@bigpond.net.au>
567         PR 10199
568         * doc/binutils.texi (nm): Correct -S description.
570 2009-05-28  Nick Clifton  <nickc@redhat.com>
572         * po/da.po: Updated Danish translation.
574 2009-05-28  Nick Clifton  <nickc@redhat.com>
576         * readelf.c (display_debug_section): Do not display debug sections
577         with the NOBITS section type.
579 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
581         * aclocal.m4: Include ../config/plugins.m4.
582         * configure.in: Use AC_PLUGINS.
583         * configure: Regenerate.
584         * Makefile.in: Regenerate.
585         * doc/Makefile.in: Regenerate.
587 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
589         * ar.c (main): Call bfd_plugin_set_program_name.
590         * nm.c (main): Call bfd_plugin_set_program_name.
592 2009-05-27  Nathan Sidwell  <nathan@codesourcery.com>
594         * sysdump.c (tab): Use puts rather than two printfs.
596 2009-05-26  Nick Clifton  <nickc@redhat.com>
598         * po/id.po: Updated Indonesian translation.
599         * po/binutils.pot: Updated template file.
601 2009-05-26  Rafael Avila de Espindola  <espindola@google.com>
603         * ar.c: Include plugin.h.
604         (main): Handle the --plugin option.
605         * nm.c: Include plugin.h.
606         (OPTION_PLUGIN): New.
607         (long_options): Add plugin.
608         (main): Handle OPTION_PLUGIN.
609         * NEWS: Mention  the new feature.
610         * doc/binutils: Documement the new command line options.
611         * configure.in: Check for --enable-plugins.
612         * configure: Regenerate.
614 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
616         * dep-in.sed: Output one filename per line with all lines having
617         continuation backslash.  Prefix first line with "A", following
618         lines with "B".
619         * Makefile.am (DEP): Don't use dep.sed here.
620         (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
621         sort and uniq.
622         * Makefile.in: Regenerate.
624 2009-05-25  Tristan Gingold  <gingold@adacore.com>
626         * makefile.vms-in: Fix CFLAGS, add addr2line.exe target.
628         * configure.com: Fix it: handle alloca and define TARGET in config.h.
630 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
632         * Makefile.am: Run "make dep-am".
633         * Makefile.in: Regenerate.
635 2009-05-12  Alan Modra  <amodra@bigpond.net.au>
637         * objcopy.c (set_long_section_mode): Check input_bfd is coff
638         before accessing coff specific fields of bfd.
640 2009-05-09  Dave Korn  <dave.korn.cygwin@gmail.com>
642         * MAINTAINERS:  Add myself as PE/COFF co-maintainer.
644 2009-05-08  Kai Tietz  <kai.tietz@onevision.com>
646         * winduni.c (iconv_onechar): Only define when HAVE_ICONV
647         is defined, but not when __CYGWIN__ or _WIN32 are defined.
648         See wind_iconv_cp for call logic of this local funtion.
650 2009-05-05  Guillaume Duhamel  <guillaume.duhamel@gmail.com>
652         PR 10109
653         * winduni.c: Replace test of HAVE_ICONV_H with a test of
654         HAVE_ICONV.
655         (iconv_onechar): Use ICONV_CONST instead of "const".
656         (wind_MultiByteToWideChar): Initialise local strings.
658 2009-04-30  Nick Clifton  <nickc@redhat.com>
660         * readelf.c (dump_relocations): Display a relocation against an
661         ifunc symbol as if it were a function invocation.
662         (get_symbol_type): Handle STT_GNU_IFUNC.
664 2009-04-29  Anthony Green  <green@moxielogic.com>
666         * NEWS: Tweak verilog support description.
668 2009-04-29  Alan Modra  <amodra@bigpond.net.au>
669             Denis Scherbakov <denis_scherbakov@yahoo.com>
671         * readelf.c (slurp_ia64_unwind_table): Correct 64-bit unwind table
672         read, and merge with 32-bit case.
674 2009-04-27  Anthony Green  <green@moxielogic.com>
676         * NEWS: Mention verilog support added to bfd.
678 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
680         * objcopy.c (copy_object): Copy pe_opthdr before changing PE
681         parameters.
683 2009-04-24  Cary Coutant  <ccoutant@google.com>
685         * dwarf.c (process_extended_line_op): Add DW_LNE_set_discriminator.
686         Add missing newlines to HP extensions.
688 2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>
690         * objcopy.c (set_pe_subsystem): Replace efi-rom with sal-rtd.
691         * doc/binutils.texi: Likewise.
693 2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>
695         PR binutils/10074
696         * objcopy.c: Include coff/i386.h and coff/pe.h.
697         (pe_file_alignment): New.
698         (pe_heap_commit): Likewise.
699         (pe_heap_reserve): Likewise.
700         (pe_image_base): Likewise.
701         (pe_section_alignment): Likewise.
702         (pe_stack_commit): Likewise.
703         (pe_stack_reserve): Likewise.
704         (pe_subsystem): Likewise.
705         (pe_major_subsystem_version): Likewise.
706         (pe_minor_subsystem_version): Likewise.
707         (set_pe_subsystem): Likewise.
708         (convert_efi_target): Likewise.
709         (command_line_switch): Add OPTION_FILE_ALIGNMENT,
710         OPTION_HEAP, OPTION_IMAGE_BASE, OPTION_SECTION_ALIGNMENT,
711         OPTION_STACK and OPTION_SUBSYSTEM.
712         (copy_options): Likewise.
713         (copy_usage): Add --file-alignment, --heap, --image-base,
714         --section-alignment, --stack and --subsystem.
715         (copy_object): Set up PE parameters.
716         (copy_main): Process Add OPTION_FILE_ALIGNMENT,
717         OPTION_HEAP, OPTION_IMAGE_BASE, OPTION_SECTION_ALIGNMENT,
718         OPTION_STACK and OPTION_SUBSYSTEM.   Convert EFI target to
719         PEI target.
721         * NEWS: Mention --file-alignment, --heap, --image-base,
722         --section-alignment, --stack and --subsystem command line
723         options for objcopy.
725         * doc/binutils.texi: Document --file-alignment, --heap,
726         --image-base, --section-alignment, --stack and --subsystem
727         command line options for objcopy.
729 2009-04-15  Anthony Green  <green@moxielogic.com>
731         * MAINTAINERS: Add myself as Moxie port maintainer.
733 2009-04-14  Dave Korn  <dave.korn.cygwin@gmail.com>
735         * objcopy.c (enum long_section_name_handling):  New enum type.
736         (enum command_line_switch):  Add OPTION_LONG_SECTION_NAMES.
737         (copy_options[]):  Add entry for --long-section-names option.
738         (copy_usage):  Document it.
739         (set_long_section_mode):  New subroutine.
740         (copy_file):  Call it.
741         (copy_main):  Accept OPTION_LONG_SECTION_NAMES and parse arg.
742         * doc/binutils.texi:  Update objcopy documentation with details
743         of new option.
745 2009-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
747         * dlltool.c (set_dll_name_from_def):  Accept new second arg that
748         indicates if we are building DLL or EXE, and use it to add a
749         default suffix to the output filename when none is already present.
750         (def_name):  Indicate we are building an EXE when calling it.
751         (def_library):  Indicate we are building a DLL when calling it.
753 2009-04-01  Jari Aalto  <jari.aalto@cante.net>
755         PR 9972
756         * doc/binutils.texi (strings): Document the -V alias for the
757         --version option.
758         * strings.c (usage): Likewise.
760 2009-03-31  Nick Clifton  <nickc@redhat.com>
762         PR 9992
763         * configure.in: Import Solaris specific largefile test from
764         bfd/configure.in.
765         * configure: Regenerate.
767 2009-03-30  Richard Sandiford  <rdsandiford@googlemail.com>
769         * MAINTAINERS: Add self.
771 2009-03-27  Nick Clifton  <nickc@redhat.com>
773         * dwarf.c (display_debug_ranges): Add the base address to the
774         displayed values for 'Begin' and 'End'.
776 2009-03-25  Ryan Mansfield  <rmansfield@qnx.com>
778         * readelf.c (process_file_header): Don't report a corrupt string
779         table index if it is zero.
781 2009-03-19  H.J. Lu  <hongjiu.lu@intel.com>
783         * dwarf.c (dwarf_regnames): Moved before frame_need_space.
784         (dwarf_regnames_count): Likewise.
785         (frame_need_space): Return int.
786         (display_debug_frames): Check invalid registers.
788 2009-03-19  H.J. Lu  <hongjiu.lu@intel.com>
790         * readelf.c (debug_apply_relocations): Check relocations
791         against STT_SECTION symbol.
793 2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>
795         * readelf.c (debug_apply_relocations): Allow relocations
796         against function symbols.
798 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
800         * sysdep.h: Include alloca-conf.h instead of config.h and remove
801         existing #if's handling alloca.
802         * Makefile.am: Run "make dep-am".
803         * Makefile.in: Regenerate.
805 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
807         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
808         * configure.in: Likewise.
809         * configure: Regenerate.
811 2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>
813         PR binutils/9945
814         * objcopy.c (copy_object): Clear HAS_RELOC when stripping all.
816 2009-03-11  Chris Demetriou  <cgd@google.com>
818         * ar.c (deterministic): New global variable.
819         (main): Recognize new 'D' option, which enables 'deterministic mode'.
820         (usage): Document new 'D' option.
821         (write_archive): Set BFD_DETERMINISTIC_OUTPUT in output archive's
822         flags if deterministic mode was requested.
823         * doc/binutils.texi (ar): Document deterministic mode ('D' option).
825 2009-03-09  H.J. Lu  <hongjiu.lu@intel.com>
827         PR binutils/9933
828         * objcopy.c (filter_symbols): Properly handle common symbols
829         in relocatable file.
831 2009-03-06  Nick Clifton  <nickc@redhat.com>
833         * po/es.po: Updated Spanish translation.
835 2009-03-05  Nick Clifton  <nickc@redhat.com>
837         * objdump.c (disassemble_section): If the computed next offset is
838         not beyond the current offset then just continue to the end.
840 2009-03-04  Tristan Gingold  <gingold@adacore.com>
842         * MAINTAINERS: Add myself as VMS maintainer.
844 2009-03-03  Nick Clifton  <nickc@redhat.com>
846         * readelf.c: Update formatting.
848 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
850         * Makefile.am: Run "make dep-am".
851         * Makefile.in: Regenerate.
853 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
855         * objdump.c (disassemble_section): Mask address before sign extending.
857 2009-03-02  Sebastian Biallas  <sb@biallas.net>
859         * ieee.c (parse_ieee_ty): Add support for undocumented 'v' type.
860         (parse_ieee_bb): Set the filename if it has not already been
861         discovered.
863 2009-03-02  Cary Coutant  <ccoutant@google.com>
865         * readelf.c (adjust_relative_path): New function.
866         (struct archive_info): New type.
867         (setup_archive): New function.
868         (release_archive): New function.
869         (setup_nested_archive): New function.
870         (get_archive_member_name): New function.
871         (get_archive_member_name_at): New function.
872         (make_qualified_name): New function.
873         (process_archive): Factor out code for reading archive index and
874         long filename table to setup_archive.  Add support for thin archives.
876 2009-03-02  Nick Clifton  <nickc@redhat.com>
878         * po/sk.po: Updated Slovak translation.
880 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
882         * configure: Regenerate.
884 2009-02-23  Cary Coutant <ccoutant@google.com>
886         * objdump.c (load_specific_debug_section): New function, from
887         load_debug_section.
888         (load_debug_section): Use load_specific_debug_section.
889         (dump_dwarf_section): Likewise.
891 2009-02-23  Cary Coutant <ccoutant@google.com>
893         * readelf.c (parse_args): Select all sections explicitly for -w.
895 2009-02-09  Kai Tietz  <kai.tietz@onevision.com>
897         * windres.c (set_endianess): Copy name without leading '-'.
899 2009-02-09  Tristan Gingold  <gingold@adacore.com>
901         * NEWS: Mention feature match between objdump and readelf for dumping
902         dwarf info.
904         * doc/binutils.texi (objdump): Document -W/--dwarf improvments to
905         objdump.
907         * objdump.c (usage): Update documentation for -W/--dwarf.
908         (enum option_values): Add OPTION_DWARF.
909         (long_options): --dwarf can accept arguments.
910         (dump_dwarf_section): Also check enabled field.
911         (main): Option -W can accept arguments, code moved to
912         dwarf.c and call dwarf_select_sections_all instead.
913         * readelf.c (process_section_headers): Remove do_debug_lines_decoded.
914         (parse_args): Move code to...
915         * dwarf.c (dwarf_select_sections_by_letters,
916         dwarf_select_sections_by_names): : ...here (new functions).
917         (do_debug_lines_decoded): Remove and replaced by ...
918         (FLAG_DEBUG_LINES_RAW, FLAG_DEBUG_LINES_DECODED): ... new macros.
919         (display_debug_lines): Adjust for previous change.
920         (dwarf_select_sections_all): New function.
921         (debug_displays): Add initializer for enabled field.
922         * dwarf.h (do_debug_lines_decoded): Remove.
923         Add prototypes for the new functions.
924         (struct dwarf_section_display): Add enabled field.
926 2009-02-06  Nick Clifton  <nickc@redhat.com>
928         * po/vi.po: Updated Vietnamese translation.
930 2009-02-03  Sandip Matte  <sandip@rmicorp.com>
932         * readelf.c (get_machine_flags): Handle E_MIPS_MACH_XLR.
934 2009-02-03  H.J. Lu  <hongjiu.lu@intel.com>
936         * NEWS: Move --as-needed change to ...
937         * ../ld/NEWS: Here.
939 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
941         * configure.in: AC_SUBST pdfdir.
942         * Makefile.am: Add install-pdf, install-pdf-am,
943         and install-pdf-recursive targets.
944         * doc/Makefile.am: Define pdf__strip_dir. Add
945         install-pdf and install-pdf-am targets.
946         * po/Make-in: Add install-pdf target.
947         * configure: Regenerate.
948         * Makefile.in: Regenerate.
949         * doc/Makefile.in: Regenerate.
951 2009-02-03  H.J. Lu  <hongjiu.lu@intel.com>
953         PR binutils/9784
954         * NEWS: Mention --prefix=PREFIX and --prefix-strip=LEVEL.
956         * doc/binutils.texi: Document --prefix=PREFIX and
957         --prefix-strip=LEVEL.
959         * objdump.c: Include "filenames.h".
960         (prefix): New.
961         (prefix_strip): Likewise.
962         (prefix_length): Likewise.
963         (usage): Add --prefix=PREFIX and --prefix-strip=LEVEL.
964         (option_values): Add OPTION_PREFIX and OPTION_PREFIX_STRIP.
965         (long_options): Likewise.
966         (show_line): Handle prefix and prefix_strip.
967         (main): Handle OPTION_PREFIX and OPTION_PREFIX_STRIP.
969         * readelf.c (PATH_MAX): Moved to ...
970         * sysdep.h: Here.
972 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
974         * NEWS: Mention --as-needed change.
976 2009-01-29  Alan Modra  <amodra@bigpond.net.au>
978         PR 9798
979         * bucomm.c (bfd_nonfatal_message): Use bfd_get_archive_filename.
980         (bfd_get_archive_filename): Constify param.
981         * bucomm.h (bfd_get_archive_filename): Update prototype.
982         * objcopy.c (RETURN_NONFATAL): Delete.
983         (copy_unknown_object): Don't call bfd_get_archive_filename for
984         bfd_nonfatal_message filename, instead just pass bfd.
985         (copy_object): Likewise.
986         (copy_archive, copy_file): Likewise.  Expand RETURN_NONFATAL.  On
987         bfd_close errors, do not pass the bfd to bfd_nonfatal_message.
988         (setup_bfd_headers): Fix error message.
990 2009-01-27  Nick Clifton  <nickc@redhat.com>
992         PR 9774
993         * objdump.c (disassemble_section): When the target uses signed
994         addresses make sure that we compute signed values.
996 2009-01-27  Nick Clifton  <nickc@redhat.com>
998         * MAINTAINERS: Remove Thiemo Seufer's name from the list of MIPS
999         maintainers.
1001 2009-01-26  Nick Clifton  <nickc@redhat.com>
1003         PR 9766
1004         * dlltool.c (xlate): When strip text after the @ sign, look for
1005         the last one not the first one.
1007 2009-01-16  Alan Modra  <amodra@bigpond.net.au>
1009         * configure.in (commonbfdlib): Delete.
1010         * configure: Regenerate.
1012 2008-01-14  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1014         Cleanup code related to --identify option.
1016         * dlltool.c (file scope): Removed globals identify_ms,
1017         identify_member_contains_symname_result,
1018         identify_dll_name_list_head, and identify_dll_name_list_tail.
1019         Renamed existing typedef dll_name_list_type to
1020         dll_name_list_node_type.
1021         Added new typedefs dll_name_list_type, symname_search_data_type,
1022         and identify_data_type.
1023         (identify_append_dll_name_to_list): Renamed to...
1024         (dll_name_list_append): ...here.  Changed signature to accept list
1025         argument rather than use global.
1026         (identify_count_dll_name_list): Renamed to...
1027         (dll_name_list_count): ...here.  Changed signature to accept list
1028         argument rather than use global.
1029         (identify_print_dll_name_list): Renamed to...
1030         (dll_name_list_print): ...here.  Changed signature to accept list
1031         argument rather than use global.
1032         (identify_free_dll_name_list): Renamed to...
1033         (dll_name_list_free_contents): ...here.
1034         (dll_name_list_free): New function.
1035         (dll_name_list_create): New function.
1036         (identify_process_section_p): Changed signature to accept
1037         ms_style_implib argument rather than use global.
1038         (identify_member_contains_symname): Expect incoming void * data to
1039         be symname_search_data_type.
1040         (identify_dll_for_implib): Use new functions dll_name_list_create
1041         and dll_name_list_free.  Use new types symname_search_data_type
1042         and identify_data_type to communicate with search routines.
1043         (identify_search_section): Expect incoming void * data to be
1044         identify_data_type. Use its contents rather than global
1045         variables.
1047 2009-01-13  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1049         Add --identify-strict option.  Handle ms-style implibs:
1051         * dlltool.c (file scope): Added new globals identify_ms and
1052         identify_strict. New typedef dll_name_list_type, and globals
1053         identify_dll_name_list_head and identify_dll_name_list_tail. Added
1054         new global identify_member_contains_symname_result.
1055         (identify_append_dll_name_to_list): New function.
1056         (identify_count_dll_name_list): New function.
1057         (identify_print_dll_name_list): New function.
1058         (identify_free_dll_name_list): New function.
1059         (identify_search_archive): Changed signature to take function
1060         pointer to operation to apply to each member, and data to pass on
1061         to that function.
1062         (identify_search_member): Changed signature to accept user data
1063         from caller.
1064         (identify_member_contains_symname): New function.
1065         (identify_dll_for_implib): Rewrite. Now determines whether implib
1066         is ms- or binutils- style, before searching sections for
1067         dllname. Allows multiple dllnames.
1068         (identify_process_section_p): Search alternate section for dllname
1069         when implib is ms-style.
1070         (identify_search_section): Add additional conditions to excludes
1071         candidate sections from consideration.
1072         (usage): Added --identify-strict.
1073         (long_options): Added --identify-strict.
1074         (main): Handle --identify-strict option.
1075         * doc/binutils.texi: Document --identify-strict option.
1076         * NEWS: Document --identify and --identify-strict options.
1078 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
1080         PR 7034
1081         * doc/binutils.texi (objdump -R): Note effect of -d or -D.
1083 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
1085         * objdump.c (disassemble_section): Don't assume non-instruction
1086         data if object symbol at given address is in different section.
1088 2009-01-12  Kai Tietz  <kai.tietz@onevision.com>
1090         * dlltool.c (create_for_pep): New.
1091         (flush_page): Use create_for_pep instead of using
1092         macro DLLTOOL_MX86_64 clause.
1093         (generate_idata_ofile): Likewise.
1094         (make_one_lib_file): Likewise.
1095         (make_head): Likewise.
1096         (make_tail): Likewise.
1097         (main): Initialize create_for_pep.
1099 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
1101         * dlltool.c (use_nul_prefixed_import_tables): New.
1102         (make_head): Make prefix leading zero prefix element for
1103         idata$4 and idata$5 dependent to new flag.
1104         (usage): Add new option  --use-nul-prefixed-import-tables.
1105         (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
1106         (long_options): Add --use-nul-prefixed-import-tables.
1107         (main): Likewise.
1108         * doc/binutils.texi: Add new option documentation for
1109         --use-nul-prefixed-import-tables.
1110         * NEWS: Add new option.
1112 2009-01-06  Kai Tietz  <kai.tietz@onevision.com>
1114         * windres.c (set_endianess): Get architecture name
1115         for internal target names like "pe-arm-wince-little".
1116         (find_arch_match): New helper.
1117         * ChangeLog: Reset it.
1118         * ChangeLog-2008: Moved old ChangeLog.
1120 For older changes see ChangeLog-2008
1122 Local Variables:
1123 mode: change-log
1124 left-margin: 8
1125 fill-column: 74
1126 version-control: never
1127 End: