OSDN Git Service

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