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