OSDN Git Service

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