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