* Makefile.am: Add LIBICONV to windres.
[platform/upstream/binutils.git] / binutils / ChangeLog
1 007-06-05  Kai Tietz  <Kai.Tietz@onevision.com>
2
3         * Makefile.am: Add LIBICONV to windres.
4         * acinclude.m4: Added missing "lib-*.m4" and "lt*.m4" files.
5         * configure.in: Add AC_CHECK_HEADER for iconv.h and use AM_ICONV.
6         * config.in: Add ICONV defines.
7         * aclocal: Regenerate.
8         * confugure: Regenerate.
9         * winduni.c: (local_iconv_map codepages, wind_language_t
10         languages, unicode_is_valid_codepage, wind_find_language_by_id,
11         wind_find_language_by_codepage, wind_find_codepage_info,
12         unicode_from_codepage, codepage_from_unicode, iconv_onechar,
13         wind_iconv_cp, wind_MultiByteToWideChar wind_WideCharToMultiByte):
14         New.
15         (ascii_from_unicode): Use codepage_from_unicode.
16         (ascii_from_unicode): Use unicode_from_codepage.
17         Use for cygwin windows API for unicode transformation.
18         * winduni.h: (CP_ACP, CP_UTF7, CP_UTF8, CP_OEM, CP_UTF16): New
19         macros.
20         (wind_language_t, local_iconv_map): New types.
21         (wind_find_language_by_id, wind_find_language_by_codepage,
22         unicode_is_valid_codepage, wind_find_codepage_info,
23         unicode_from_codepage, codepage_from_unicode): New
24         prototypes.
25
26 2007-06-05  Alan Modra  <amodra@bigpond.net.au>
27
28         * embedspu.sh: Handle R_SPU_PPU* relocs with no symbol.
29
30 2007-05-30  Alan Modra  <amodra@bigpond.net.au>
31
32         * objcopy.c (copy_object): Revert 2007-05-11 change.  Don't
33         avoid calling bfd_copy_private_bfd_data for ELF STRIP_NONDEBUG.
34         (setup_section): Don't modify flags, and don't avoid calling
35         bfd_copy_private_section_data for ELF STRIP_NONDEBUG.
36         * readelf.c (process_program_headers): Ignore .dynamic of type
37         SHT_NOBITS.
38
39 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
40
41         * embedspu.sh: Emit SPU ELF image to .data.rel.ro.speelf if
42         pic or pie and image needs relocs.
43
44 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
45
46         * Makefile.in: Regenerate.
47         * configure: Regenerate.
48         * aclocal.m4: Regenerate.
49         * doc/Makefile.in: Regenerate.
50
51 2007-05-24  Kai Tietz  <Kai.Tietz@onevision.com>
52
53         * rcparse.y: Join strings for elements having no side-effects in
54         "rc"-grammar.
55
56 2007-05-23  Kai Tietz  <Kai.Tietz@onevision.com>
57
58         * rclex.c: New file replacing rclex.l.
59         * rclex.l: Removed.
60         * windint.h: New file holding common structure and type
61         definitions.
62         * Makefile.am: Added new header windint.h and exchanged rclex.l by
63         rclex.c.
64         * Makefile.in: Regenerate.
65         * rcparse.y: Renamed some structures.
66         Use in internal representation always bfd_vma instead of long or
67         int.
68         Removed from %union unused stringtable.
69         Added to %union suni structure for unicode strings.
70         Added new tokens for ANICURSOR, ANIICON, DLGINCLUDE,
71         DLGINIT, FONTDIR, HTML, MANIFEST, PLUGPLAY, VXD,
72         TOOLBAR, BUTTON, QUOTEDUNISTRING, and SIZEDUNISTRING.
73         Added support for these new rc file tokens.
74         * resbin.c: Rewrote using bfd and binary structures, and support
75         new resource types.
76         * rescoff.c: Likewise.
77         * resres.c: Likewise.
78         * resrc.c: Likewise. Dumps as RC are now recompilable.
79         * windres.c: As above. Using bfd for res and provide target
80         specific endianess support.
81         * windres.h: Use windint.h as include. Additionally removed K&R
82         syntax.
83         * winduni.c: New printing and unichar support routines.
84         * winduni.h: Prototypes for new unichar helpers.
85         * windint.h: New file.
86
87 2007-05-22  Paul Brook  <paul@codesourcery.com>
88
89         * objdump.c (find_symbol_for_address): Merge section and target
90         specific filtering code.
91
92 2007-05-22  Nick Clifton  <nickc@redhat.com>
93
94         * doc/binutils.texi: Use @copying around the copyright notice.
95
96 2007-05-21  Richard Sandiford  <richard@codesourcery.com>
97
98         * objdump.c (disassemble_bytes): Ignore disassembler_needs_relocs
99         for executables and shared libraries.
100
101 2007-05-18  Nathan Sidwell  <nathan@codesourcery.com>
102
103         * objcopy.c (strip_main): Detect identical input and output file
104         names.
105         (copy_main): Refactor tempname detection and use.
106
107 2007-05-17  Nick Clifton  <nickc@redhat.com>
108
109         * objdump.c (load_debug_section): Select bias for DWARF debug
110         addresses based on the flavour of the bfd.
111
112 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
113
114         PR 4479
115         * objcopy.c (copy_object): Don't copy ELF program headers for
116         --only-keep-debug.
117
118 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
119
120         * embedspu.sh (find_prog): Prefer prog in same dir as embedspu
121         over one found on the users path.
122         (main): Generate .reloc for each R_SPU_PPU* reloc.
123
124 2007-04-28  Alan Modra  <amodra@bigpond.net.au>
125
126         * prdbg.c (tg_variable): Adjust for changed demangler.
127         (tg_start_function): Likewise.
128
129 2007-04-27  Alan Modra  <amodra@bigpond.net.au>
130
131         * bucumm.h: Split off host dependencies to..
132         * sysdep.h: ..here.
133         Many files: Include sysdep.h.  Remove duplicate headers and reorder.
134         * Makefile.am: Run "make dep-am".
135         * Makefile.in: Regenerate.
136
137 2007-04-24  Nick Clifton  <nickc@redhat.com>
138
139         * srconv.c (walk_tree_type_1): Initialise dpt.dunno.
140
141 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
142             Phil Edwards  <phil@codesourcery.com>
143
144         * objcopy.c (filter_symbols): Explicitly stripping a symbol
145         used in relocations is an error.
146         Retype 'keep' to bfd_boolean.
147
148 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
149
150         * Makefile.in: Regenerate.
151         * doc/Makefile.in: Regenerate.
152
153 2007-04-20  Nathan Froyd  <froydnj@codesourcery.com>
154             Phil Edwards  <phil@codesourcery.com>
155             Thomas de Lellis <tdel@windriver.com>
156
157         * objcopy.c (reverse_bytes):  New variable.
158         (command_line_switch, copy_main):  Add OPTION_REVERSE_ENDIAN.
159         (copy_options, copy_usage):  Add "reverse-bytes" entry.
160         (copy_section):  Reverse bytes within output sections.
161         * doc/binutils.texi:  Document new objcopy option.
162
163 2007-04-20  Nick Clifton  <nickc@redhat.com>
164
165         * rclex.l: Allow underscores at the start of identifiers.
166
167 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
168
169         * budemang.c: Delete.
170         * budemang.h: Delete.
171         * addr2line.c (translate_addresses): Call bfd_demangle rather than
172         demangle.
173         * nm.c (print_symname): Likewise.
174         * objdump.c (objdump_print_symname, dump_symbols): Likewise.
175         (dump_bfd): Likewise.
176         * prdbg.c (struct pr_handle <demangler>): Add int param.
177         (tg_variable, tg_start_function): Adjust demangler calls.
178         * Makefile.am: Remove mention of budemang.[ch].  Run "make dep-am".
179         * Makefile.in: Regenerate.
180         * po/POTFILES.in: Regenerate.
181
182 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
183
184         * Makefile.am: Add ACLOCAL_AMFLAGS.
185         * configure.in: Change macro call order.
186         * Makefile.in: Regenerate.
187         * configure: Regenerate.
188
189 2007-04-13  Nathan Sidwell  <nathan@codesourcery.com>
190
191         * Makefile.am (TOOL_PROGS): Add objcopy.
192         * Makefile.in: Rebuilt.
193
194 2007-04-12  H.J. Lu  <hongjiu.lu@intel.com>
195
196         PR binutils/4348
197         * objcopy.c (copy_object): Don't stop when there are no
198         sections to be copied.
199
200 2007-04-10  Vladimir Prus  <vladimir@codesourcery.com>
201
202         * NEWS: Mention disjoint histograms support in
203         gprof.
204
205 2007-04-09  Daniel Jacobowitz  <dan@codesourcery.com>
206
207         * dwarf.c (process_debug_info): Do not require DW_AT_frame_base for
208         DW_TAG_inlined_subroutine.
209
210 2007-04-06  Matt Thomas  <matt@netbsd.org>
211
212         * MAINTAINERS: Add myself as VAX and NetBSD support maintainer.
213
214 2007-04-05  Alan Modra  <amodra@bigpond.net.au>
215
216         PR binutils/4292
217         * nm.c (print_value): Cast bfd_vma to unsigned long to suit
218         value_format_32bit.
219
220 2007-04-02  Nick Clifton  <nickc@redhat.com>
221
222         PR binutils/4292
223         * nm.c (value_format): Replace with value_format_32bit and
224         value_format_64bit.
225         (set_radix): Update setting of value_format.
226         (set_print_width): New function.  Compute the address size of a
227         given bfd and set the print_width global appropriately.
228         (display_archive): Use set_print_width.
229         (display_file): Likewise,
230         (print_object_filename_sysv): Update use of print_width.
231         (print_archive_member_sysv): Likewise.
232         (print_symbol_filename_posix): Likewise.
233         (print_sumbol_info_bfd, print_symbol_info_sysv): Likewise.
234
235 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
236             Phil Edwards  <phil@codesourcery.com>
237
238         * doc/binutils.texi: Put the contents after the title page rather
239         than at the end of the document.
240
241 2007-03-28  Nick Clifton  <nickc@redhat.com>
242
243         * readelf.c (slurp_rela_relocs): Add newline to end of error
244         messages.
245         (slurp_rel_relocs, request_dump, request_dump_byname,
246         process_program_headers, process_dynamic_section,
247         process_symbol_table, process_mips_specific, main): Likewise.
248
249 2007-03-28  Alan Modra  <amodra@bigpond.net.au>
250
251         * MAINTAINERS: Update mailing list addresses.  Add myself
252         as PPC maintainer.
253
254 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
255
256         * embedspu.sh: Correct toe_addr quoting.
257
258 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
259
260         * embedspu.sh: Combine "_EAR_" and "_EAR_*" patterns.  Tighten
261         .toe section and .toe address checks.  Use .reloc for _EAR*
262         symbols defined in non-BSS sections.  Build table for _SPUEAR_
263         symbols.
264
265 2007-03-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
266
267         PR gas/3811
268         * readelf.c (debug_apply_rela_addends): Do nothing for SH.
269
270 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
271
272         * doc/binutils.texi: Include VERSION_PACKAGE when reporting
273         version.
274
275 2007-03-16  Kai Tietz  <Kai.Tietz@onevision.com>
276
277         * dlltool.c (make_one_lib_file): Use pc-relative relocation
278         instead of an absolute relocation for x86_64-pc-mingw32 target.
279
280 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
281
282         * Makefile.am (REPORT_BUGS_TO): Removed.
283         (INCLUDES): Remove -DREPORT_BUGS_TO.
284         * Makefile.in: Regenerated.
285
286         * bucomm.c: Don't include bfdver.h.
287         * objdump.c: Likewise.
288         * version.c: Likewise.
289
290         * bucomm.h: Include bfdver.h.
291
292         * configure.in (--with-bugurl): Removed.
293         * configure: Regenerated.
294
295         * doc/Makefile.am (binutils_TEXINFOS): Removed.
296         (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
297         (TEXI2DVI): Likewise.
298         (config.texi): Removed.
299         (MOSTLYCLEANFILES): Remove config.texi.
300         * doc/Makefile.in: Regenerated.
301
302         * doc/binutils.texi: Include bfdver.texi instead of
303         config.texi.
304
305 2007-03-13  Nick Clifton  <nickc@redhat.com>
306
307         * readelf.c (dump_section): Also test for SHT_REL sections when
308         producing the warning about unapplied relocs.
309
310 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
311
312         * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
313         bug-reporting URL.
314         * doc/Makefile.am (config.texi): Define BUGURL.
315         * doc/binutils.texi: Use BUGURL.  Remove text about large files
316         and uuencoding.
317         * Makefile.in, configure, doc/Makefile.in: Regenerate.
318
319 2007-03-01  Phil Edwards  <phil@codesourcery.com>
320             Richard Sandiford  <richard@codesourcery.com>
321
322         * NEWS: Mention addition of --extract-symbol.
323         * doc/binutils.texi: Document it.
324         * objcopy.c (extract_symbol): New variable.
325         (OPTION_EXTRACT_SYMBOLS): New command_line_switch.
326         (copy_options): Add an entry for --extract-symbol.
327         (copy_usage): Mention --extract-symbol.
328         (copy_object): Set the start address to zero for --extract-symbol.
329         Do not copy private BFD data in that case.
330         (setup_section): Set the size, LMA and VMA to zero for
331         --extract-symbol.  Do not copy private BFD data in that case.
332         (copy_section): Do not copy section contents if --extract-symbol
333         is passed.
334         (copy_main): Set extract_symbol to TRUE if --extract-symbol
335         is passed.
336
337 2007-03-01  Paul Brook  <paul@codesourcery.com>
338
339         * MAINTAINERS: Update my entry.
340
341 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
342
343         * version.c: Update copyright date.
344
345 2007-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
346
347         * Makefile.am (install-exec-local): Depend on $(noinst_PROGRAMS).
348         Adjust $(EXEEXT) handling for $(RENAMED_PROGS).
349         * Makefile.in, doc/Makefile.in: Regenerate.
350
351 2007-03-01  Alan Modra  <amodra@bigpond.net.au>
352
353         * embedspu.sh: Set type and size of global program handle symbol.
354
355 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
356
357         * Makefile.am (PROGS): Delete.
358         (RENAMED_PROGS): Define.  Extracted from..
359         (noinst_PROGRAMS): ..here.  Add BUILD_MISC.
360         (install-exec-local): Adjust.
361         * Makefile.in: Regenerate.
362
363 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
364
365         * Makefile.am (PROGS): Add BUILD_INSTALL_MISC.
366         (bin_PROGRAMS): Replace BUILD_MISC with BUILD_INSTALL_MISC.
367         (EXTRA_PROGRAMS): Remove bin2c.
368         (bin2c$(EXEEXT_FOR_BUILD)): New rule.
369         (bin2c_SOURCES): Delete.
370         (DISTCLEANFILES): Remove sysinfo.
371         (MOSTLYCLEANFILES): Add sysinfo$(EXEEXT_FOR_BUILD) and
372         bin2c$(EXEEXT_FOR_BUILD).
373         * configure.in (BUILD_MISC): Add $(EXEEXT_FOR_BUILD) to bin2c.
374         Move embedspu to..
375         (BUILD_INSTALL_MISC): ..here.
376         * Makefile.in: Regenerate.
377         * configure: Regenerate.
378
379 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
380
381         * bin2c.c: New file.
382         * Makefile.am (EXTRA_PROGRAMS): Add bin2c.
383         (CFILES): Add bin2c.c.
384         (bin2c_SOURCES): Define.
385         (bin2c.o): Dependencies from "make dep-am".
386         * configure.in (BUILD_MISC): Add bin2c.
387         * version.c: Update year.
388         * po/POTFILES.in: Regenerate.
389         * Makefile.in: Regenerate.
390         * configure: Regenerate.
391
392 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
393             Nathan Sidwell  <nathan@codesourcery.com>
394             Vladimir Prus  <vladimir@codesourcery.com
395             Joseph Myers  <joseph@codesourcery.com>
396
397         * configure.in (--with-bugurl): New option.
398         * configure: Regenerate.
399         * Makefile.am (REPORT_BUGS_TO): Define.
400         (INCLUDES): Define REPORT_BUGS_TO.
401         Regenerate dependencies.
402         * Makefile.in: Regenerate.
403         * doc/Makefile.in: Regenerate.
404         * bucomm.h: Remove include of bin-bugs.h.
405         * addr2line.c (usage): Don't print empty REPORT_BUGS_TO.
406         * ar.c (usage): Pass s to list_supported_targets.  Don't print
407         empty REPORT_BUGS_TO.
408         * coffdump.c (show_usage): Don't print empty REPORT_BUGS_TO.
409         * cxxfilt.c (usage): Print bug url when giving help.
410         * dlltool.c (usage): Likewise.
411         * dllwrap.c (usage): Likewise.
412         * nlmconv.c (show_usage): Don't print empty REPORT_BUGS_TO.
413         * nm.c (usage): Likewise.
414         * objcopy.c (copy_usage, strip_usage): Likewise.
415         * objdump.c (usage): Likewise.
416         * readelf.c ((usage): Likewise. Add STREAM argument.  Adjust
417         callers.
418         * size.c (usage): Don't print empty REPORT_BUGS_TO.
419         * srconv.c (show_usage): Likewise.
420         * strings.c (usage): Likewise.
421         * sysdymp.c (show_usage): Likewise.
422         * windres.c (usage): Likewise.
423
424 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
425
426         * embedspu.sh: Add -W to readelf invocation.
427
428 2007-02-06  Dave Brolley  <brolley@redhat.com>
429
430         * MAINTAINERS: Add myself as the maintainer of the MeP port.
431
432 2007-02-06  Nick Clifton  <nickc@redhat.com>
433
434         PR gas/3800
435         * readelf.c: Include elf/h8.h twice.  The first time in order to
436         get the reloc numbers, the second time in order to get the reloc
437         decoder function.
438         (dump_section): Tell the user if the section being displayed has
439         unprocessed relocs associated with it.
440         (get_reloc_size): New function - returns the size of a reloc.
441         (debug_apply_rela_addends): Use get_reloc_size().
442         * dwarf.c (read_and_display_attr_value): Extend number of
443         languages known for the DW_AT_language attribute.
444         (process_debug_info): Display the attribute offset before decoding
445         the attribute, in case there are problems.
446
447 2007-02-05  Dave Brolley  <brolley@redhat.com>
448
449         * readelf.c (dump_relocations): Don't check for
450         (rtype == NULL && type == R_RELC).
451
452 2007-02-05  Dave Brolley  <brolley@redhat.com>
453
454         * Makefile.am (readelf.o): Depends on $(INCDIR)/elf/mep.h.
455         * Makefile.in: Regenerated.
456         * Contribute the following changes:
457         2003-10-29  Dave Brolley  <brolley@redhat.com>
458
459         * configure.in: Define SKIP_ZEROES and SKIP_ZEROES_AT_END for mep.
460         * configure: Regenerated.
461
462         2001-04-03  Ben Elliston  <bje@redhat.com>
463
464         * readelf.c: Include "elf/mep.h".
465         (guess_is_rela): Handle EM_CYGNUS_MEP.
466         (get_machine_name): Ditto.
467         (dump_relocations): Ditto.
468
469 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
470
471         * MAINTAINERS: Add a space between H.J. and Lu.
472
473 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
474
475         * doc/binutils.texi (objdump): Document the new addr64 option
476         for i386 disassembler.
477
478 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
479
480         PR binutils/3945
481         * configure.in (DLLTOOL_DEFAULT): New. Defined for the first PE
482         target.
483         (DLLTOOL_DEFS): Add $DLLTOOL_DEFAULT.
484         * configure: Regenerated.
485
486         * dlltool.c (mname): Defined with DLLTOOL_DEFAULT_XXX.
487
488 2007-02-02  Nick Clifton  <nickc@redhat.com>
489
490         * doc/binutils.texi (objdump): Document support for disassembling
491         the 440 PowerPC architecture.
492
493 2007-01-31  Nathan Sidwell  <nathan@codesourcery.com>
494
495         * dwarf.c (process_debug_info): Protect against bogus length and
496         abbrev offsets.
497
498 2007-01-25  Kazu Hirata  <kazu@codesourcery.com>
499
500         * ar.c (print_contents, extract_file): Cast the return value
501         of fwrite to size_t.
502
503 2007-01-12  Alan Modra  <amodra@bigpond.net.au>
504
505         * ar.c (open_inarch): Check fwrite return.  Use size_t.
506         (extract_file): Likewise.  Remove test for "negative" file size.
507         * readelf.c (process_program_headers): Check fscanf return.
508
509 2007-01-11  H.J. Lu  <hongjiu.lu@intel.com>
510
511         * bucomm.c (template_in_dir): Fix typo.
512
513 2007-01-11  Alan Modra  <amodra@bigpond.net.au>
514
515         * embedspu.sh: New file.
516         * Makefile.am (embedspu): Add rule.
517         * configure.in (BUILD_MISC): Add embedspu for powerpc-linux.
518         * Makefile.in: Regenerate.
519         * configure: Regenerate.
520
521 2007-01-11  Alan Modra  <amodra@bigpond.net.au>
522
523         * bucomm.h (make_tempdir): Declare independently of HAVE_MKDTEMP.
524         * bucomm.c (template_in_dir): New function, split out from..
525         (make_tempname): ..here.  Open the file with O_EXCL if !HAVE_MKSTEMP.
526         (make_tempdir): Use template_in_dir.  Handle directory creation
527         when !HAVE_MKDTEMP.
528         * objcopy.c (MKDIR): Don't define.
529         (copy_archive): Use make_tempdir when !HAVE_MKDTEMP too.  Fix
530         error message.
531
532 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
533
534         * readelf.c (get_machine_flags): Treat Fido as an architecture
535         by itself.
536
537 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
538
539         * configure.in: Renamed target x86_64-*-mingw64 to
540         x86_64-*-mingw*.
541         * configure: Regenerated.
542
543 2007-01-05  Alan Modra  <amodra@bigpond.net.au>
544
545         * readelf.c (dump_section): Don't print 32-bit values, which
546         were done incorrectly for little-endian.  Instead print bytes.
547
548 For older changes see ChangeLog-2006
549 \f
550 Local Variables:
551 mode: change-log
552 left-margin: 8
553 fill-column: 74
554 version-control: never
555 End: