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