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