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