OSDN Git Service

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