* objcopy.c (MKDIR): Define.
[external/binutils.git] / binutils / ChangeLog
1 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
2
3         * objcopy.c (MKDIR): Define.
4         (copy_archive): Make name_list.name const.  Use MKDIR.
5         Handle duplicate files in archives by making more temp dirs.
6
7 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
8
9         * coffdump.c: Include "getopt.h" after "bucomm.h"
10         so that macros are defined correctly.
11         * nlmconv.c: Add PARAMS ((const time_t *)) to localtime
12         prototype.  Prototype main.
13         * nlmheader.y: Add PARAMS ((int)) to strerror prototype.
14
15 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
16
17         * MAINTAINERS: Added self as SH co-maintainer.
18
19 2002-02-05  Nick Clifton <nickc@redhat.com>
20
21         * po/tr.po: Updated translation.
22
23 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
24
25         * Makefile.am: Run "make dep-am"
26         * Makefile.in: Regenerate.
27
28 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
29
30         * nm.c (print_value): Mark abfd unused.
31
32 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
33
34         * unwind-ia64.c (unw_decoder): Change second argument
35         to unsigned int, to match function prototypes.
36
37 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
38
39         * objdump.c: Include "getopt.h" after "bucomm.h" so that
40         __GNU_LIBRARY__ will be defined.
41         * size.c: Likewise.
42
43 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
44
45         * configure: Regenerated.
46
47 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
48
49         * doc/Makefile.am (install): Depend on install-info.
50         * doc/Makefile.in: Regenerate.
51
52 2002-01-25  Jason R. Thorpe <thorpej@wasabisystems.com>
53
54         * objcopy.c (strip_usage): Document -d as an alias
55         --strip-debug.
56
57         * size.c (usage): Document [-t | --totals] options.
58         (long_options): Add --totals option.
59         (main): If the [-t | --totals] option is specified and
60         the output format is Berkeley-style, print the total
61         text, data, and bss sizes of all objects listed.
62         (print_berkeley_format): If the [-t | --totals] option
63         is specified, track the total text, data, and bss
64         sizes.
65         * doc/binutils.texi (size): Document [-t | --totals] options.
66         (strip): Document -d as an alias for --strip-debug.
67         * NEWS: Mention new feature of size.
68
69 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
70
71         * po/fr.po: Updated version.
72         * po/es.po: Updated version.
73
74 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
75
76         * addr2line.c (usage): Update text to provide verbose
77         description of the command line options.
78         * ar.c (usage): Update text to provide verbose
79         description of the command line options.
80         (main): Accept -h and -H when running as ranlib.
81         * coffdump.c (show_usage): Update text to provide verbose
82         description of the command line options.
83         * dlltool.c (main): Accept -H as an alias for --help.
84         * nlmconv.c (show_usage): Update text to provide verbose
85         description of the command line options.
86         * nm.c (usage): Replace OPTIONS with option(s).
87         (main): Accept -H as an alias for --help.
88         * objcopy.c (strip_main): Accept -H as an alias for --help.
89         * objdump.c (main): Accept -v as an alias for --verbose.
90         * readelf.c (usage): Adjust format to match style used in
91         other binutils.
92         * size.c (usage): Update text to provide verbose description
93         of the command line options.
94         (main): Accept -v, -h and -H as command line options.
95         * srconv.c (show_usage): Update text to provide verbose
96         description of the command line options.
97         * strings.c (main): Accept -H and -v as command line options.
98         (usage): Update text to provide verbose description of the
99         command line options.
100         * sysdump.c (show_usage): Update text to provide verbose
101         description of the command line options.
102         * windres.c (usage): Adjust format to match style used in
103         other binutils.
104
105         * coffdump.c: Fix formatting.
106         * nlmconv.c: Fix formatting.
107         * srconv.c: Fix formatting.
108         * sysdump.c: Fix formatting.
109
110 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
111
112         * Makefile.am: Run "make dep-am".
113         * Makefile.in: Regenerate.
114
115 2002-01-18  Andreas Jaeger  <aj@suse.de>
116
117         * version.c (print_version): Update year.
118
119 2002-01-17  Alan Modra  <amodra@bigpond.net.au>
120
121         * readelf.c (get_machine_name): Handle EM_PPC64.
122         (guess_is_rela): Here too.
123
124 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
125
126         * po/binutils.pot: Regenerate.
127         * po/fr.po: Regenerate.
128         * po/tr.po: Regenerate.
129
130 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
131
132         * po/tr.po: Import new version.
133
134 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
135
136         * readelf.c (get_ppc64_dynamic_type): New.
137         (get_dynamic_type): Call it.
138
139 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
140
141         * objcopy.c (copy_usage): Use "options" instead of "switches".
142         (strip_usage): Use "options" instead of "switches".
143         * doc/binutils.texi (dlltool):  Refer to "options" instead of
144         "switches".
145
146 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
147
148         * MAINTAINERS: Add self as co-maintainer for the ARM code.
149
150 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
151
152         * po/es.po: Import from translation project.
153         * configure.in (ALL_LINGUAS): Add es.
154         * configure: Regenerate.
155
156 2002-01-09  Jason Thorpe  <thorpej@wasabisystems.com>
157
158         * readelf.c (get_netbsd_elfcore_note_type): Use
159         NT_NETBSDCORE_PROCINFO and NT_NETBSDCORE_FIRSTMACH.
160
161 2002-01-09  Jason Thorpe  <thorpej@wasabisystems.com>
162
163         * readelf.c: Update copyright years.
164         (get_note_type): Return a const char *.
165         (get_netbsd_elfcore_note_type): New function.
166         (process_note): Use get_netbsd_elfcore_note_type to get
167         the note type string for NetBSD ELF core files.
168
169 2002-01-06  Steve Ellcey  <sje@cup.hp.com>
170
171         * readelf.c (get_ia64_segment_type): Add support for macros.
172         (get_segment_type): Add support for IA64 specific macros.
173
174 2001-12-20  Julian v. Bock  <julian@wongr.net>
175
176         * readelf.c (print_symbol): New function: Print a formatted symbol
177         name.  If --wide is specified do not truncate it.
178         (dump_relocations): Use print_symbol() to print symbol names.
179         (process_symbol_table): Likewise.
180         (process_syminfo): Likewise.
181         (process_mips_specific): Likewise.
182         (usage): Document new feature of --wide switch.
183         * doc/binutils.texi (objdump): Document additional behaviour of
184         --wide.
185
186 2001-12-18  Michael Snyder  <msnyder@redhat.com>
187
188         * objcopy.c (copy_file): Accept corefiles (format bfd_core).
189         (copy_object): Don't set the start address or flags of a core file.
190         (copy_section): Don't relocate a core file.  Don't copy contents
191         if the input section has the contents flag set, but the output
192         section does not (which happens with the fake 'note' pseudo-
193         sections that BFD creates for corefiles).
194
195 2001-12-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
196
197         * readelf.c (get_machine_flags): Recognize header flags for ABI and
198         ASE extensions. More robust code for ISA checking. Ignore empty fields
199         in header flags for GNU extensions.
200
201 2001-12-18  Alan Modra  <amodra@bigpond.net.au>
202
203         * objcopy.c (copy_archive): Set output bfd format outside the loop.
204
205 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
206
207         * po/ja.po: Import from translation project.
208         * configure.in (ALL_LINGUAS): Add ja.
209         * configure: Regenerate.
210
211 2001-12-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
212
213         * addr2line.c (main): Protoype.
214         * ar.c (main): Protoype.
215         * nm.c (main): Protoype.
216         * objcopy.c (main): Protoype.
217         * objdump.c (main): Protoype.
218         * size.c (main): Protoype.
219         * strings.c (main): Protoype.
220
221 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
222
223         * readelf.c (symtab_shndx_hdr): New global.
224         (SECTION_HEADER_INDEX): Define.
225         (SECTION_HEADER_NUM): Define.
226         (SECTION_HEADER): Define.
227         (GET_ELF_SYMBOLS): Pass two params rather than three.
228         (get_32bit_elf_symbols): Take file and section args.  Read and
229         use SHT_SYMTAB_SHNDX.
230         (get_64bit_elf_symbols): Likewise.
231         (dump_relocations): Use SECTION_HEADER to index "section_headers".
232         (process_section_headers): Likewise.  Use SECTION_HEADER_NUM too.
233         Remember symtab_shdx_hdr.
234         (process_program_headers): Scan from index 1 for segment map.
235         (slurp_ia64_unwind_table): Use SECTION_HEADER to index
236         "section_headers".
237         (process_relocs): Likewise.  Also adjust call to GET_ELF_SYMBOLS.
238         (process_unwind): Likewise.
239         (process_version_sections): Likewise.
240         (process_symbol_table): Likewise.
241         (display_debug_info): Likewise.
242         (process_dynamic_segment): Fake up a symtab section for changed
243         GET_ELF_SYMBOLS.
244         (get_symbol_index_type): Check SHN_LOOS before SHN_LORESERVE.
245         (process_program_headers): Kill signed/unsigned warning.
246         (load_debug_str): Likewise.
247         (display_debug_info): Likewise.
248
249 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
250
251         * readelf.c (get_segment_type): Support PT_GNU_EH_FRAME.
252
253 2001-12-11  Alan Modra  <amodra@bigpond.net.au>
254
255         * readelf.c (process_file_header): Print extended e_shnum and
256         e_shdtrndx values.  Set elf_header values for same.
257         (get_32bit_section_headers): Add "num" arg to read "num" headers.
258         (get_64bit_section_headers): Likewise.
259         (process_section_headers): Update calls.
260         (get_file_header): Call get_32bit_section_headers or 64bit variant.
261
262 2001-12-10  Jakub Jelinek  <jakub@redhat.com>
263
264         * objcopy.c (setup_section): Copy entsize.
265
266 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
267
268         * readelf.c (guess_is_rela): Add support for stormy16.
269         (dump_relocations): Likewise.
270         (get_machine_name): Likewise.
271
272 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
273
274         * dllwrap.c (main) Replace multiple strings describing a
275         single error with a single, newline escaped sentence to permit
276         better translation into foreign languages.
277
278         * readelf.c (get_elf_class): Remove internalionalisation of ELF
279         class names.
280
281 2001-12-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
282
283         * strings.c (get_char): Initialize value.
284
285 2001-12-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
286
287         * arlex.l: Silence compile warnings.
288         * arsup.h: Likewise. Fix formatting.
289
290 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
291
292         * strings.c: Include config.h before bfd.h.
293         (file_off): New type.
294         (file_open): Define.
295         (print_strings): Use file_off instead of file_ptr.  Print addresses
296         which don't fit into long correctly.
297         (get_char): Use file_off instead of file_ptr.  Use getc_unlocked if
298         available.
299         (strings_file): Use file_off instead of file_ptr.  Use file_open.
300         * configure.in: Check for getc_unlocked.
301         Check for fopen64 and whether _LARGEFILE64_SOURCE needs to
302         be defined for it.
303         * configure: Rebuilt.
304         * config.h.in: Rebuilt.
305
306 2001-11-29  H.J. Lu <hjl@gnu.org>
307
308         * bucomm.c (make_tempname): Revert the changes made on
309         2001-11-14 and 2001-11-12. They won't work with directories.
310
311 2001-11-23  John David Anglin  <dave@hiauly1.hia.nrc.ca>
312
313         * binutils/Makefile.am (check-DEJAGNU): Pass CC_FOR_TARGET and
314         CFLAGS_FOR_TARGET to runtest in environment.
315         * Makefile.in: Rebuild.
316         * doc/Makefile.in: Rebuild.
317
318 2001-11-28  Mike Stump  <mrs@wrs.com>
319
320         * objcopy.c (setup_section): Preserve SEC_RELOC when
321         --set-section-flags is used.
322
323 2001-11-19  Nick Clifton  <nickc@cambridge.redhat.com>
324
325         * readelf.c (do_debug_str): New variable.
326         (display_debug_str): New function: Display the contents of a
327         .debug_str section.
328         (load_debug_str): New function: Load in the contents of a
329         .debug_str section.
330         (free_debug_str): New function: Free the memory used by
331         load_debug_str().
332         (fetch_indirect_string): Retrieve a string from the .debug_str
333         section.
334         (usage): Add -ws.
335         (parse_args): Accept -ws.
336         (process_section_headers): Allow the display of the .debug_str
337         section.
338         (read_and_display_attr_value): Use fetch_indirect_string.  Show
339         offset into .debug_str section.
340         (display_debug_info): Use load_debug_str and free_debug_str.
341         (debug_displays): Add .debug_str.
342         * doc/binutils.texi: Document -ws.
343
344 2001-11-19  Andreas Jaeger  <aj@suse.de>
345
346         * testsuite/binutils-all/objdump.exp: Add x86-64.
347
348 2001-11-15  Andreas Schwab  <schwab@suse.de>
349
350         * readelf.c: Fix warnings without terminating newline.
351
352 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
353
354         * doc/binutils.texi (objdump): Document ppc -M options.
355
356 2001-11-14  Andreas Jaeger  <aj@suse.de>
357
358         * doc/binutils.texi (objdump): Fix description to use x86-64.
359
360 2001-11-14  Nick Clifton  <nickc@cambridge.redhat.com>
361
362         * bucomm.c (make_tempname): Use mkstemps instead of mkstemp, since
363         not all systems provide mkstemp.
364
365 2001-11-14  Alan Modra  <amodra@bigpond.net.au>
366
367         * doc/binutils.texi (objdump): Document x86 -M options.
368
369 2001-11-13  Keith Walker <keith.walker@arm.com>
370
371         * readelf.c (read_and_display_attr_value): New function to
372         handle DW_FORM_indirect.
373         (read_and_display_attr): Use it.
374
375 2001-11-13  Geoffrey Keating  <geoffk@redhat.com>
376
377         * readelf.c (display_debug_lines): Deal with unknown standard
378         opcodes.  Handle DW_LNS_set_prologue_end, DW_LNS_set_epilogue_begin,
379         DW_LNS_set_isa.
380
381 2001-11-13  Timothy Wall  <twall@alum.mit.edu>
382
383         * MAINTAINERS: Add self as tic54x maintainer.  This target
384         includes the IBM C54XDSP clone.
385
386 2001-11-12  * Steven J. Hill <sjhill@realitydiluted.com>
387
388         * bucomm.c (make_tempname): Use mkstemp in place of mktemp.
389
390 2001-11-09  Jeffrey A Law  (law@cygnus.com)
391
392         * unwind-ia64.c (unw_print_brmask): Fix ISO C portability glitch.
393         (unw_print_grmask, unw_print_frmask, unw_print_abreg): Likewise.
394         (unw_print_xyreg, unw_decode_x1, unw_decode_x2): Likewise.
395         (unw_decode_x3, unw_decode_r1, unw_decode_r2): Likewise.
396         (unw_decode_r3, unw_decode_p1, unw_decode_p2_p5): Likewise.
397         (unw_decode_p6, unw_decode_p7_p10, unw_decode_b1): Likewise.
398         (unw_decode_b2, unw_decode_b3_b4): Likewise.
399
400         * readelf.c (get_elf_class): Fix ISO portability glitch.
401         (get_data_encoding, get_osabi_name, request_dump): Likewise.
402
403 2001-11-07  Jakub Jelinek  <jakub@redhat.com>
404
405         * readelf.c (debug_str, debug_str_size): New.
406         (display_debug_abbrev): If no abbrevs were read, skip the CU.
407         Call free_abbrevs.
408         (read_and_display_addr): Handle DW_FORM_strp.
409         (display_debug_info): Read .debug_str section if present,
410         so that DW_FORM_strp can be handled.
411         Fix test for non-existant .debug_abbrev section.
412
413 2001-11-05  Jakub Jelinek  <jakub@redhat.com>
414
415         * arlex.l: Accept `\' in filenames.  Patch by <earl_chew@agilent.com>.
416
417         * arsup.c (ar_open): Prepend tmp- to basename, not whole path.
418
419 2001-11-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
420
421         * MAINTAINERS: Add self as s390/s390x maintainer.
422
423 2001-11-02  Tom Rix  <trix@bluey.cygnus.com>
424
425         * MAINTAINERS: Add self as PPC XCOFF maintainer.
426
427 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
428
429         * configure.in (ALL_LINGUAS): Add "fr" and "tr".
430         * configure: Regernate.
431         * po/fr.po: New file.
432         * po/tr.po: New file.
433
434 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
435
436         * MAINTAINERS: Add self as MMIX port maintainer.
437         * readelf.c: Include elf/mmix.h.
438         (guess_is_rela): MMIX is RELA.
439         (dump_relocations): Handle MMIX relocations.
440         * Makefile.am: Regenerate dependencies.
441         * Makefile.in: Regenerate.
442
443 2001-10-13  Nick Clifton  <nickc@cambridge.redhat.com>
444
445         * readelf.c (parse_args): Handle multiple options to the -w
446         switch.
447
448 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
449
450         * readelf.c (get_section_type_name): Don't print SHT_ prefix for
451         LOPROC, LOOS and LOUSER.
452
453 2001-10-11  J"orn Rennecke <amylaar@onetel.net.uk>
454
455         * MAINTAINERS: Update my email address.
456
457 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
458
459         * doc/Makefile.in: Regenerate.
460         * configure: Regenerate.
461
462 2001-10-02  Nick Clifton  <nickc@cambridge.redhat.com>
463
464         * readelf.c (display_debug_line, display_debug_pubnames,
465         display_debug_info, display_debug_frames): Detect and warn
466         about 64-bit format entries.
467         (display_debug_aranges): Reword 64-bit warning.
468         (debug_displays): Add .debug_pubtypes as a known, but not yet
469         supported, debug section.
470
471 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
472
473         * coffdump.c (PROGRAM_VERSION): Delete.
474         (main <'V'>): Call print_version.
475         * srconv.c: Likewise.
476         * sysdump.c: Likewise.
477         * version.c (program_version): Remove.
478         (print_version): Use BFD_VERSION_STRING.  Just print the current
479         year in copyright message.
480         * addr2line.c (program_version): Remove unused declaration.
481         * objdump.c (display_target_tables): Use BFD_VERSION_STRING in
482         place of BFD_VERSION.
483         * Makefile.am (Makefile): Depend on bfd/configure.in.
484         (cplus-dem.o): Depend on Makefile.
485         Run "make dep-am".
486         * Makefile.in: Regenerate.
487
488 2001-10-01  Nick Clifton  <nickc@cambridge.redhat.com>
489
490         * readelf.c (display_debug_aranges): Detect and warn about DWARF64
491         format .debug_arange sections.
492         (main): Add missing prototype.
493
494 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
495
496         * Makefile.am: Update dependencies with "make dep-am".
497         * Makefile.in: Regenerate.
498
499 2001-09-28  Richard Henderson  <rth@redhat.com>
500
501         * objdump.c (dump_section_header): Dump SEC_ARCH_BIT_0.
502
503 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
504
505         * bucomm.c (fatal): Define using VPARAMS, VA_OPEN, VA_FIXEDARG,
506         VA_CLOSE.
507         (non_fatal): Likewise.
508         * objdump.c (objdump_sprintf): Likewise.
509         * readelf.c (error): Likewise.
510         (warn): Likewise.
511
512 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
513
514         * readelf.c (do_wide): New.
515         (options): Add --wide.
516         (usage, parse_args): Likewise.
517         (process_program_headers): Put each segment on a single line if
518         --wide is given.
519         (process_section_headers): Put each section on a single line if
520         --wide is given.
521         * doc/binutils.texi: Document it.
522         * NEWS: Likewise.
523
524 2001-09-25  Alan Modra  <amodra@bigpond.net.au>
525
526         * readelf.c (print_vma): Print 8 digits of low hex value.
527
528 2001-09-24  Andreas Jaeger  <aj@suse.de>
529
530         * nlmconv.c: Fix warnings about unused attributes and function
531         prototypes.
532
533         * strings.c: Add prototype for get_char.
534
535 2000-09-19  H.J. Lu  <hjl@gnu.org>
536
537         * doc/Makefile.am ($(DEMANGLER_NAME).1): Try cxxfilt.man and
538         $(srcdir)/cxxfilt.man.
539         * doc/Makefile.in: Rebuild.
540
541 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
542
543         * objcopy.c (copy_main): Correct rename-section string parsing.
544         Consolidate new_name parsing, and error messages.
545
546 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
547
548         * addr2line.c: Don't include <ctype.h>.
549         (main): For gettext, also set the LC_CTYPE locate facet.
550         * ar.c (main): Likewise.
551         * coffdump.c (main): Likewise.
552         * dlltool.c: Include "safe-ctype.h" instead of <ctype.h>.
553         (main): For gettext, also set the LC_CTYPE locate facet.
554         Use ISALNUM instead of isalpha/isdigit.
555         * dllwrap.c: Don't include <ctype.h>.
556         (main): For gettext, also set the LC_CTYPE locate facet.
557         * nlmconv.c: Include "safe-ctype.h" instead of <ctype.h>.
558         (main): For gettext, also set the LC_CTYPE locate facet.
559         Use TOUPPER instead of islower/toupper.
560         * nlmheader.y: Include "safe-ctype.h" instead of <ctype.h>.
561         (yylex): Use ISSPACE/ISALNUM instead of isspace/isalnum.
562         Use TOUPPER instead of islower/toupper.
563         * nm.c (main): For gettext, also set the LC_CTYPE locate facet.
564         * objcopy.c (main): Likewise.
565         * objdump.c: Include "safe-ctype.h" instead of <ctype.h>.
566         (disassemble_bytes): Use ISPRINT instead of isprint.
567         (dump_section_stabs): Use ISDIGIT instead of isdigit.
568         (dump_data): Use ISPRINT instead of isprint.
569         (main): For gettext, also set the LC_CTYPE locate facet.
570         * rclex.l: Include "safe-ctype.h" instead of <ctype.h>.
571         (cpp_line, handle_quotes): Use ISSPACE instead of isspace.
572         * rcparse.y: Include "safe-ctype.h" instead of <ctype.h>.
573         Use TOUPPER instead of islower/toupper.
574         * readelf.c (main): For gettext, also set the LC_CTYPE locate facet.
575         * resrc.c: Include "safe-ctype.h" instead of <ctype.h>.
576         (write_rc_accelerators): Use ISPRINT instead of isprint.
577         (write_rc_rcdata): Likewise.
578         * size.c (main): For gettext, also set the LC_CTYPE locate facet.
579         * srconv.c (main): Likewise.
580         * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
581         (parse_number): Use ISDIGIT/ISUPPER/ISLOWER instead of
582         isdigit/isupper/islower.
583         (parse_stab_string, parse_stab_type, parse_stab_argtypes,
584         parse_stab_array_type, stab_demangle_count, stab_demangle_get_count,
585         stab_demangle_prefix, stab_demangle_qualified,
586         stab_demangle_template, stab_demangle_type,
587         stab_demangle_fund_type): Use ISDIGIT instead of isdigit.
588         * strings.c: Include "safe-ctype.h" instead of <ctype.h>.
589         (isgraphic): Use ISPRINT instead of isascii/isprint.
590         (main): Remove HAVE_LC_MESSAGES dependency.
591         * sysdump.c: Include "safe-ctype.h" instead of <ctype.h>.
592         (pbarray): Use ISPRINT instead of isprint.
593         (main): For gettext, also set the LC_CTYPE locate facet.
594         * windres.c: Include "safe-ctype.h" instead of <ctype.h>.
595         (format_from_filename): Use ISPRINT instead of isprint.
596         (main): For gettext, also set the LC_CTYPE locate facet.
597         * winduni.c: Include "safe-ctype.h" instead of <ctype.h>.
598         (unicode_print): Use ISPRINT instead of isprint.
599         * wrstabs.c: Include "safe-ctype.h" instead of <ctype.h>.
600         (stab_variable): Use ISDIGIT instead of isdigit.
601
602 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
603
604         * ar.c (print_contents): Cast args of bfd_seek to the right types.
605         Replace bfd_read call with call to bfd_bread.
606         (extract_file): Likewise.
607
608         * objdump.c (dump_section_header): Cast section->filepos to
609         unsigned long to suit printf format string.
610         * readelf.c (process_section_headers): Similarly for sh_offset.
611         (process_unwind): Likewise.
612
613 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
614
615         * strings.c (encoding, encoding_bytes): New variables.
616         (long_options): Add --encoding.
617         (main): Accept -e and --encoding.
618         (get_char): New function.  Read a, possibly wide, character from
619         the input stream.
620         (print_strings): Use get_char().
621         (usage): Document new command line option.
622         * doc/binutils.texi: Document new command line option.
623         * NEWS: Announce new command line option.
624
625 2001-09-12  Alexandre Oliva  <aoliva@redhat.com>
626
627         * readelf.c (guess_is_rela, dump_relocations, get_machine_name,
628         get_machine_flags): Added EM_M32R, EM_D10V, EM_V850, EM_D30V,
629         EM_MN10200, EM_MN10300, EM_FR30, EM_AVR_OLD and EM_PJ_OLD.
630         Removed EM_CYGNUS_ARC.
631
632 2001-09-04  Jeffrey A Law  (law@cygnus.com)
633
634         * readelf.c: Include elf/h8 for H8 series definitions.
635         (guess_is_rela): H8 series if RELA.
636         (dump_relocations): Handle H8 series relocations.
637
638 2001-08-31  Eric Christopher  <echristo@redhat.com>
639
640         * readelf.c (get_machine_flags): Remove E_MIPS_MACH_MIPS32_4K.
641
642 2001-08-29  Peter Targett  <peter.targett@arccores.com>
643
644         * MAINTAINERS: Include ARC Maintainer.
645
646 2001-08-29  Ben Elliston  <bje@redhat.com>
647
648         * stabs.c (stab_demangle_template): Initialise s4.
649
650 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
651
652         * readelf.c (dump_relocations): Recognise EM_PPC64.
653
654 2001-08-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
655
656         * readelf.c (get_machine_flags): Add detection of EF_MIPS_32BITMODE.
657
658 2001-08-25  H.J. Lu  <hjl@gnu.org>
659
660         * nm.c (print_width): New.
661         (display_rel_file): Set `print_width' according to
662         bfd_sprintf_vma.
663         (print_symbol_info_bsd): Check `print_width' instead of BFD64.
664
665 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
666
667         * objcopy.c (use_alt_mach_code): New variable.
668         (OPTION_ALT_MACH_CODE): Define.
669         (copy_options): Added --alt-machine-code.
670         (copy_main): Handle it.
671         (copy_object): Switch to alternate machine code if requested.
672         * doc/binutils.texi: Document new option.
673         * NEWS: Likewise.
674
675 2001-08-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
676
677         * readelf.c (get_machine_flags): Add detection of EF_MIPS_UCODE.
678
679 2001-08-21  H.J. Lu  <hjl@gnu.org>
680
681         * readelf.c (dump_relocations): Support ELF64 on 32bit hosts.
682         (display_debug_info): Cast for 64bit hosts.
683         (display_debug_frames): Likewise.
684         (process_mips_specific): Likewise.
685
686 2001-08-21  Andreas Jaeger  <aj@suse.de>
687
688         * coffgrok.h: Add missing parameter for prototype of coff_grok.
689
690         * sysdump.c: Add missing prototypes.
691         * srconv.c: Likewise.
692         * unwind-ia64.c: Likewise.
693         * coffdump.c: Likewise.
694
695         * sysinfo.y: Print prototypes, include <ansidecl.h>.
696
697         * coffgrok.c: Add missing prototypes, include libiberty.h instead
698         of declaring xcalloc.
699
700 2001-08-10  H.J. Lu  <hjl@gnu.org>
701
702         * nm.c (print_value): Add one arg, bfd *.
703         (print_value): Replace fprintf_vma with bfd_fprintf_vma.
704         (print_symbol_info_bsd): Also pass `abfd' to print_value ().
705         (print_symbol_info_sysv): Likewise.
706         (print_symbol_info_posix): Likewise.
707
708         * objdump.c (dump_section_header): Replace printf_vma with
709         bfd_printf_vma.
710         (print_section_stabs): Likewise.
711         (dump_bfd_header): Likewise.
712         (objdump_print_value): Replace sprintf_vma with
713         bfd_sprintf_vma.
714         (disassemble_bytes): Likewise.
715         (dump_reloc_set): Likewise.
716
717 2001-08-10  Andreas Jaeger  <aj@suse.de>
718
719         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
720         to build warnings.
721         * configure: Regenerate.
722
723 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
724
725         * readelf.c: Add missing prototypes.
726         * objdump.c: Likewise.  Format existing prototypes.
727
728 2001-08-08  Alexandre Oliva  <aoliva@redhat.com>
729
730         * readelf.c (display_debug_info): Add to abbrev_offset the addend
731         of any RELA relocation for the abbrev_offset memory location that
732         refers to the .debug_abbrev section symbol.
733
734 2001-08-07  H.J. Lu  <hjl@gnu.org>
735
736         * readelf.c (process_file): Return 0 if OK, otherwise return 1.
737         (main): Return process_file ().
738
739 2001-08-05  Philip Blundell  <philb@gnu.org>
740
741         * doc/binutils.texi: Use "Thumb" not "THUMB".
742
743 2001-08-03  John Healy  <jhealy@redhat.com>
744
745         Patch suggested by Frank Eigler <fche@redhat.com>.
746         * objdump.c (disassemble_data): Fill in section member of the
747         disasm_info structure.
748
749 2001-08-03  Tom Walsh  <tom@cyberiansoftware.com>
750
751         * configure.in: Added --with-windres option.
752         * configure: Regenerated.
753
754 2001-07-11  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
755
756         * doc/binutils.texi: Use @command{name} for commands;
757         use @option{-opt} for options; use @table @env for list of options;
758         remove spaces arround [ | ] in synopsis.
759
760         * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for the
761         center title.
762
763 2001-07-31  Nick Clifton  <nickc@cambridge.redhat.com>
764
765         * objcopy.c: Fix formatting.
766         (section_rename): New structure.
767         (OPTION_RENAME_SECTION): New switch.
768         (copy_usage): Document new switch.
769         (add_section_rename): New function: Add a node to the section
770         rename list.
771         (find_section_rename): New function: Find the new name and
772         flags for a section.
773         (setup_section): Call find_section_name to determine the name
774         of the output section.
775         (copy_main): Handle OPTION_RENAME_SECTION.
776         * binutils.texi: Document new switch.
777         * NEWS: Mention new switch.
778
779 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
780
781         * README: Rename bug-gnu-utils@gcc.org to bug-binutils@gcc.org.
782         * MAINTAINERS: Rename bug-gnu-utils@gcc.org to
783         bug-binutils@gcc.org.
784
785 2001-07-28  Matthias Kramm  <kramm@quiss.org>
786
787         * bucomm.c (list_supported_architectures): New function.
788         * bucomm.h (list_supported_architectures): Declare.
789         * objdump.c (usage): Call the above.
790
791 2001-07-25  Dave Brolley  <brolley@redhat.com>
792
793         * objdump.c (SKIP_ZEROES): Only define it if it is not already defined.
794         (SKIP_ZEROES_AT_END): Only define it if it is not already defined.
795
796 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
797
798         * README: Update for 2.11.  Change bug reporting email address.
799         * MAINTAINERS: Tidy up.  Change bug reporting email address.
800
801 2001-07-16  DJ Delorie  <dj@redhat.com>
802
803         * resres.c (write_res_header): Align header size.
804         (res_align_file): Calculate alignment correctly.
805
806         * rcparse.y (styles): use SUBLANG_SHIFT instead of 8 (or the more
807         correct 10).
808         * resrc.c (write_rc_resource): Likewise.
809         * windres.h (SUBLANG_SHIFT): Define - as 10.
810
811 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
812
813         * MAINTAINERS: Add Christian Groessler as maintainer for z8k port.
814
815 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
816
817         * MAINTAINERS: Add notes about branch checkins.
818
819 2001-07-05  Daniel Berlin  <dan@cgsoftware.com>
820
821         * readelf.c (display_debug_macinfo): New function, display
822         .debug_macinfo section.
823         (do_debug_macinfo): New variable.
824         (parse_args): Handle "-w[mM]" to mean display macro info.
825         (process_section_headers): Handle debug_macinfo.
826         (debug_displays): Replace unsupported function with macinfo
827         function for .debug_macinfo display.
828         * doc/binutils.texi: Document new command line switch.
829         * NEWS: Document new feature of readelf.
830
831 2001-07-05  H.J. Lu  <hjl@gnu.org>
832
833         * objcopy.c (filter_symbols): Don't turn undefined symbols
834         into local.
835
836 2001-07-03  H.J. Lu <hjl@gnu.org>
837
838         * doc/Makefile.am (addr2line.1): Use addr2line.pod instead of
839         $@.pod.
840         (ar.1): Likewise.
841         (dlltool.1): Likewise.
842         (nlmconv.1): Likewise.
843         (nm.1): Likewise.
844         (objcopy.1): Likewise.
845         (objdump.1): Likewise.
846         (ranlib.1): Likewise.
847         (readelf.1): Likewise.
848         (size.1): Likewise.
849         (strings.1): Likewise.
850         (strip.1): Likewise.
851         (windres.1): Likewise.
852         (cxxfilt.man): Use $(DEMANGLER_NAME).pod instead of $@.pod.
853         ($(DEMANGLER_NAME).1): Also substitute cxxfilt with
854         $(DEMANGLER_NAME).
855         (as.1): Removed.
856         * doc/Makefile.in: Regenerated.
857
858 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
859
860         * MAINTAINERS: Change MIPS maintainer to Eric Christopher.
861
862 2001-07-01  Daniel Berlin  <dan@cgsoftware.com>
863
864         * readelf.c: Support DWARF 2.1 tags, encodings, languages.
865
866 2001-06-29  James Cownie <jcownie@etnus.com>
867
868         * readelf.c: Support DWARF 2.1 attributes.
869
870 2001-06-28  Alan Modra  <amodra@bigpond.net.au>
871
872         * readelf.c (GET_DATA_ALLOC): Remove.
873         (GET_DATA): Remove.
874         (get_data): New function combining above macros, with an extra
875         test for zero size.
876         (slurp_rela_relocs): Use get_data, and catch error return.
877         (slurp_rel_relocs): Likewise.
878         (get_32bit_program_headers): Likewise.
879         (get_64bit_program_headers): Likewise.
880         (get_32bit_section_headers): Likewise.
881         (get_64bit_section_headers): Likewise.
882         (get_32bit_elf_symbols): Likewise.
883         (get_64bit_elf_symbols): Likewise.
884         (process_section_headers): Likewise.
885         (process_relocs): Likewise.
886         (slurp_ia64_unwind_table): Likewise.
887         (process_unwind): Likewise.
888         (get_32bit_dynamic_segment): Likewise.
889         (get_64bit_dynamic_segment): Likewise.
890         (process_dynamic_segment): Likewise.
891         (process_version_sections): Likewise.
892         (process_symbol_table): Likewise.
893         (dump_section): Likewise.
894         (display_debug_info): Likewise.
895         (display_debug_section): Likewise.
896         (process_section_contents): Likewise.
897         (process_corefile_note_segment): Likewise.
898         (process_mips_specific): Likewise.  Also free econf32, econf64.
899
900 2001-06-25  Alan Modra  <amodra@bigpond.net.au>
901
902         * readelf.c (dump_relocations): Print "bad symbol index" if
903         symtab == NULL with non-zero symtab_index.
904         (process_relocs): Don't bomb if reloc section has no symsec.
905
906 2001-06-24  H.J. Lu  <hjl@gnu.org>
907
908         * objcopy.c (strip_main): Revert the change made on 2001-05-30
909         by accident.
910         (copy_main): Apply the the change made to strip_main on
911         2001-05-30 by accident.
912
913 2001-06-23  Andreas Jaeger  <aj@suse.de>
914
915         * unwind-ia64.c (unw_decode_x1): Add unused attribute for
916         parameter 'code'.
917         (unw_decode_x2): Likewise.
918         (unw_decode_x3): Likewise.
919         (unw_decode_x4): Likewise.
920
921 2001-06-23  Ben Elliston  <bje@redhat.com>
922
923         * MAINTAINERS: Add myself as M88k maintainer.
924
925 2001-06-22  Jocelyn Mayer  <jocelyn.mayer@netgem.com>
926
927         * objcopy.c (strip_main): Support -o or --output-file command lien
928         switch.
929
930 2001-06-19  H.J. Lu <hjl@gnu.org>
931
932         * doc/Makefile.in: Regenerated.
933
934 2001-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
935
936         * readelf.c: Restore formatting.
937
938 2001-06-18  H.J. Lu <hjl@gnu.org> & Nick Clifton <nickc@redhat.com>
939
940         * Makefile.am: Move documentation into doc subdirectory.
941         * Makefile.in: Regenerated.
942         * binutils.texi: Move into doc subdirectory.
943         * addr2line.1: Removed.
944         * ar.1: Likewise.
945         * dlltool.1: Likewise.
946         * nlmconv.1: Likewise.
947         * nm.1: Likewise.
948         * objcopy.1: Likewise.
949         * objdump.1: Likewise.
950         * ranlib.1: Likewise.
951         * readelf.1: Likewise.
952         * size.1: Likewise.
953         * strings.1: Likewise.
954         * strip.1: Likewise.
955         * windres.1: Likewise.
956         * cxxfilt.man: Likewise.
957         * doc: New Directory.
958         * doc/Makefile.am: New file.
959         * doc/Makefile.in: Generate.
960
961 2001-06-09  Alan Modra  <amodra@bigpond.net.au>
962
963         * NEWS: Fix a typo.  Mention hppa64-elf.  Add binutils-2.11 marker.
964
965 2001-06-01  Alan Modra  <amodra@bigpond.net.au>
966
967         * MAINTAINERS: Update my email address.
968
969 2001-05-30  Honda Hiroki  <hhonda@kobe-catv.ne.jp>
970
971         * objcopy.c: Add new switches: --keep-global-symbol,
972         --keep-symbols, --localize-symbols, --keep-global-symbols and
973         --weaken-symbols.
974         * binutils.texi: Document new switches.
975         * objcopy.1: Regenerate.
976         * NEWS: Announce new feature.
977
978 2001-05-28  Andreas Jaeger  <aj@suse.de>
979
980         * readelf.c (display_debug_frames): Fix warnings: Remove unused
981         variables, fix format strings.
982
983 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
984
985         * objdump.c (disassemble_bytes): Remove section VMA adjustment
986         when computing the address of the line to show.
987
988 2001-05-16  Richard Henderson  <rth@redhat.com>
989
990         * readelf.c (do_debug_frames_interp): New.
991         (byte_get_little_endian): If BFD64, always read entire 8-byte fields.
992         (byte_get_big_endian): Likewise.
993         (parse_args) ['F']: Set do_debug_frames_interp.
994         (Frame_Chunk): Make data_factor signed, add fde_encoding.
995         (frame_display_row): Don't trunc pc_begin to int.
996         (size_of_encoded_value): New.
997         (display_debug_frames): Handle 64-bit targets.  Print raw data
998         unless do_debug_frames_interp.
999         (debug_displays): Remove duplicate .debug_frame.
1000
1001 2001-05-15  Ralf Baechle  <ralf@gnu.org>
1002
1003         * readelf.c: Replace uses of EM_MIPS_RS4_BE with EM_MIPS_RS3_LE.
1004         The former constant was never in active use and is used otherwise
1005         by the ABI.
1006
1007 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
1008
1009         * readelf.c (process_unwind): Print all unwind sections, not just
1010         one.
1011
1012 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1013
1014         * readelf.c (process_unwind): Remove const specifier.
1015
1016 2001-04-27  Michal Svec <rebel@atrey.karlin.mff.cuni.cz>
1017
1018         * strings.c (isgraphic): Do not use isascii() unless it is needed
1019         for isprint() to work.
1020         (main): Set the locale domain to LC_ALL not just LC_MESSAGES.
1021
1022 2001-04-27  Johan Rydberg  <jrydberg@opencores.org>
1023
1024         * NEWS: Announce support for OpenRISC.
1025
1026 2001-04-17  Danny Smith  <dannysmith@users.sourceforge.net>
1027
1028         * dlltool.c (do_default_excludes): Initialise to true.
1029
1030 2001-04-10  Alan Modra  <amodra@one.net.au>
1031
1032         * MAINTAINERS: Update my email address
1033         * nm.c (print_symbol_info_bsd): Use a simple printf string.
1034
1035 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
1036
1037         * readelf.c (display_debug_lines): Fix typo for "Prologue".
1038
1039 2001-03-30  H.J. Lu  <hjl@gnu.org>
1040
1041         * readelf.c (process_unwind): Just return if do_unwind is 0.
1042
1043 2001-03-28  Roger Sayle  <roger@metaphorics.com>
1044
1045         * dlltool.c (make_one_lib_file): Fix section flags for
1046         .text, .data and .bss in stub ds*.o files to match those
1047         generated by gas.
1048
1049 2001-03-29  H.J. Lu  <hjl@gnu.org>
1050
1051         * readelf.c (process_unwind): Only do unwind sections for
1052         IA64.
1053
1054 2001-03-28  H.J. Lu  <hjl@gnu.org>
1055
1056         * Makefile.am ($(srcdir)/dlltool.1): Remove the extra target.
1057         * Makefile.in: Regenerate.
1058
1059 2001-03-26  Andreas Jaeger  <aj@suse.de>
1060
1061         * binutils.texi (nm): Fix texi syntax.
1062
1063 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1064
1065         * binutils.texi: Put @c man begin and @c man end indications
1066         to generate man pages using texi2pod and pod2man. Put @c man title
1067         to identify each man. Add SEEALSO entries.
1068         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
1069         (man_MANS): Add dlltool.1, nlmconv.1, readelf.1, windres.1,
1070         sort the list.
1071         (*.1): Build the man pages from binutils.texi.
1072         * Makefile.in: Regenerate.
1073
1074 2001-03-13  Eric Kohl  <ekohl@rz-online.de>
1075
1076         * defparse.y (opt_equal_name): allow "." in name.
1077         * dlltool.c (def_exports): Added ability to generate forwarded exports.
1078         (gen_exp_file): Likewise.
1079
1080 2001-03-12  Stefan Geuken <mail@stefan-geuken.de>
1081
1082         * NEWS: Document addition of -B switch to objcopy.
1083         * binutils.texi:  Document addition of -B switch to objcopy.
1084         * objcopy.c: (copy_options): Add --binary-architecture.
1085         (copy_usage): Document -B/--binary-architecture.
1086         (copy_main): Support -B/--binary-architecture.  Set
1087         bfd_external_binary_architecture.
1088
1089 2001-03-11  Andreas Jaeger  <aj@suse.de>
1090
1091         * readelf.c (guess_is_rela): Handle EM_S390_OLD.
1092         (dump_relocations): Likewise.
1093         (get_machine_name): Likewise.
1094
1095 2001-02-28  Nick Clifton  <nickc@redhat.com>
1096
1097         * readelf.c: (struct unw_aux_info): Remove const modifier for
1098         'strtab' field.
1099         (process_unwind): Remove non-K&R compliant LHS type cast in call
1100         to GET_DATA_ALLOC macro.
1101
1102 2001-02-28  Philip Blundell  <pb@futuretv.com>
1103
1104         * readelf.c (decode_ARM_machine_flags): Explicitly mention which
1105         ABI is in use; remove ambiguity between the "unknown" EABI and
1106         unrecognised ABIs.  Handle version 2 ARM EABI.  Update uses of
1107         renamed EF_xx constants.
1108
1109 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
1110
1111         * configure.in (BFD_VERSION): New.
1112         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1113         * configure: Regenerate.
1114         * Makefile.am: Run "make dep-am"
1115         * Makefile.in: Regenerate.
1116
1117 2001-02-14  Nick Clifton  <nickc@redhat.com>
1118
1119         * MAINTAINERS: Add "Obvious Fix" rule.
1120
1121 2001-02-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1122
1123         * unwind-ia64.c: Don't use ANSI C preprocessor stringisation and string
1124         literal concatenation.
1125
1126 2001-02-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1127
1128         * readelf.c (struct unw_aux_info): Remove const from the info member.
1129         (process_unwind): Don't type-cast the third argument to the
1130         GET_DATA_ALLOC macro.
1131
1132 2001-02-11  Nick Clifton  <nickc@redhat.com>
1133
1134         * readelf.c (dump_relocations): Free corrected allocated
1135         array.
1136         (process_unwind): Fix compile time warning.
1137
1138 2001-02-10  Nick Clifton  <nickc@redhat.com>
1139
1140         * binutils.texi: Document new --unwind option to readelf.
1141
1142 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1143
1144         * readelf.c: Add linux target for S/390.
1145
1146 2001-02-10  Alan Modra  <alan@linuxcare.com.au>
1147
1148         * nm.c (print_symbol_info_bsd): Don't #ifdef inside printf in case
1149         printf is a macro.
1150
1151 2001-02-08  Hans-Peter Nilsson  <hp@bitrange.com>
1152
1153         * acinclude.m4 (AM_PROG_LEX): Override installed definition.
1154         * aclocal.m4: Regenerate.
1155         * configure: Regenerate.
1156
1157 2001-02-07  Todd Vierling  <tv@wasabisystems.com>
1158
1159         * bucomm.c (bfd_target_vector): Change extern array to pointer.
1160         * objdump.c (bfd_target_vector): Likewise.
1161
1162 2001-02-07  David Mosberger  <davidm@hpl.hp.com>
1163
1164         * readelf.c (process_unwind): New function.
1165         (slurp_ia64_unwind_table): Ditto.
1166         (dump_ia64_unwind): Ditto.
1167         (find_symbol_for_address): Ditto.
1168         (slurp_rela_relocs): New function (split off from dump_relocations()).
1169         (slurp_rel_relocs): Ditto.
1170         (parse_args): Handle '-u' option.
1171
1172         * unwind-ia64.c: New file.
1173         * unwind-ia64.h: New file.
1174         * Makefile.am: Include unwind-ia64.c in readelf build.
1175         * Makefile.in: Regenerate.
1176         * po/binutils.pot: Regenerate.
1177
1178 2001-02-04  Philip Blundell  <philb@gnu.org>
1179
1180         * configure.in (OBJDUMP_DEFS): Match `arm*-*', not just `arm-*'.
1181         * configure: Regenerate.
1182
1183 2001-01-31  Steve deRosier  <sderosier@vari-lite.com>
1184
1185         * ieee.c (ieee_add_bb11): Don't check for backslashes
1186         unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
1187
1188 2001-01-24  Mark Elbrecht  <snowball3@bigfoot.com>
1189
1190         * ieee.c: Update copyright.
1191         (ieee_start_compilation_unit): Don't check for backslashes
1192         unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
1193
1194         * stabs.c: Update copyright. Include "filenames.h".
1195         (parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
1196
1197 2001-01-23  Jakub Jelinek  <jakub@redhat.com>
1198
1199         * readelf.c (process_version_sections): Check if VERDEF or VERNEED
1200         sections are present before using them.  Remove code duplication.
1201         (process_symbol_table): Check if VERDEF or VERNEED sections are
1202         present before using them.
1203
1204 2001-01-17  Nick Clifton  <nickc@redhat.com>
1205
1206         * objcopy.c (copy_object): Fail if attempting to convert the
1207         endianness of the input object file.
1208
1209         * binutils.texi: Explain that objcopy cannot convert endianness.
1210
1211 2001-01-16  Nick Clifton  <nickc@redhat.com>
1212
1213         * readelf.c (string_table_length): New variable.
1214         (SECTION_NAME): Catch out of range indices and missing section
1215         pointers.
1216         (process_section_headers): Delete useless local variable
1217         string_table_offset.  Set the value of string_table_length
1218         after loading the string table.
1219         (process_mips_specific): Use SECTION_NAME macro.
1220         (process_file): Set string_table_length to 0 when it is freed.
1221
1222 2001-01-12  Nick Clifton  <nickc@redhat.com>
1223
1224         * version.c (print_version): Update copyright date.
1225
1226 2001-01-11  Peter Targett  <peter.targett@arccores.com>
1227
1228         * readelf.c (dump_relocations): Include selection with EM_ARC.
1229         (get_machine_name) Update name to "ARC".
1230
1231 2001-01-09  Nick Clifton  <nickc@redhat.com>
1232
1233         * Makefile.am: Add rule to build objdump.o from objdump.c and
1234         using OBJDUMP_DEFS.
1235         * Makefile.in: Regenerate.
1236
1237         * configure.in: Define OBJDUMP_DEFS.  Default to empty.
1238         (arm, xscale, d10v): For these targets define OBJDUMP_DEFS to
1239         -DDISASSEMBLER_NEEDS_RELOCS.
1240         * configure: Regenerate.
1241
1242         * objdump.c (disassemble_bytes): If DISASSEMBLER_NEEDS_RELOCS
1243         is defined read in the relocs even if dump_reloc_info is
1244         false.
1245
1246 2001-01-07  Philip Blundell  <philb@gnu.org>
1247
1248         * binutils.texi (Bug Reporting): Replace `bug-gnu-utils' with
1249         `bug-binutils'.
1250         * README: Likewise.
1251
1252 2000-12-19  Nick Clifton  <nickc@redhat.com>
1253
1254         * dlltool.c: Add missing support for arm-epoc-pe.
1255         * configure.in: Add missing support for arm-epoc-pe.
1256         * configure: Regenerate.
1257
1258 2000-12-15  Nick Clifton  <nickc@redhat.com>
1259
1260         * MAINTAINERS: Add Diego Novillo as a maintainer for the Intel
1261         Mode parts of the x86 port.
1262
1263 2000-12-04  Andreas Jaeger  <aj@suse.de>
1264
1265         * readelf.c (guess_is_rela): Add EM_X86_64.
1266         (dump_relocations): Add EM_X86_64.
1267         (get_machine_name): Add EM_X86_64.
1268         Include "elf/x86-64.h".
1269
1270 2000-12-12  Nick Clifton  <nickc@redhat.com>
1271
1272         * readelf.c: Fix formatting.
1273
1274 2000-12-11  Jan Hubicka  <jh@suse.cz>
1275
1276         * MAINTAINERS: Add myself and Andreas Jaeger as x86_64 maintainer.
1277
1278 2000-12-07  Andrew Haley  <aph@redhat.com>
1279
1280         * readelf.c (display_debug_frames): Only display columns that are
1281         referenced by the frame debug info.
1282
1283 2000-12-05  Nick Clifton  <nickc@redhat.com>
1284
1285         * MAINTAINERS: Add Jason Merrill as DWARF2 maintainer.
1286
1287 2000-12-04  Jason Merrill  <jason@redhat.com>
1288
1289         * readelf.c (process_section_headers): Handle linkonce.wi sections.
1290         (display_debug_section): Likewise.
1291         (display_debug_info): Display CU header before bailing.
1292
1293 2000-12-01  Chris Demetriou  <cgd@sibyte.com>
1294
1295         * readelf.c (get_machine_flags): Recognize MIPS32 ISA in
1296         EF_MIPS_ARCH.  Replace use of E_MIPS_MACH_MIPS32 with
1297         E_MIPS_MACH_MIPS32_4K and adjust printed CPU name similarly.
1298
1299         * readelf.c (get_machine_flags): Add cases for E_MIPS_ARCH_5,
1300         and E_MIPS_ARCH_64.
1301
1302         * readelf.c (get_machine_flags): Add case for
1303         E_MIPS_MACH_SB1.
1304
1305 2000-11-30  Richard Earnshaw  <rearnsha@arm.com>
1306
1307         * readelf.c (frame_display_row): Output 's' for DW_CFA_same_value.
1308
1309 2000-11-28  Hans-Peter Nilsson  <hp@bitrange.com>
1310
1311         * MAINTAINERS: Add J\81örn Rennecke and self as SH maintainers.
1312         Change sourceware.cygnus.com to sources.redhat.com.
1313         Fix typo for "amongst".
1314
1315 2000-11-28  Nick Clifton  <nickc@redhat.com>
1316
1317         * strip.1 (COPYING): Mention that the GNU Free Documentation
1318         License is present in the sources, but not the output, and
1319         also available from the GNU website.
1320         (GNU Free Documentation License): Comment out this section.
1321         * strings.1: Ditto.
1322         * size.1: Ditto.
1323         * ranlib.1: Ditto.
1324         * objdump.1: Ditto.
1325         * objcopy.1: Ditto.
1326         * nm.1: Ditto.
1327         * nlmconv.1: Ditto.
1328         * ar.1: Ditto.
1329         * addr2line.1: Ditto.
1330
1331 2000-11-27  DJ Delorie  <dj@redhat.com>
1332
1333         * readelf.c (usage): Add -wf (--debug-dump=frames) option.
1334         (parse_args): Support -wf option.
1335         (process_section_headers): Ditto.
1336         (debug_displays): Ditto.
1337         (display_debug_frames): New, dump *_frame sections.
1338         (frame_need_space): Support for above.
1339         (frame_display_row): Ditto.
1340         * binutils.texi: Document it.
1341
1342 2000-11-24  Nick Clifton  <nickc@redhat.com>
1343
1344         * NEWS: Announce support for v5t, v5te and XScale.
1345
1346 2000-11-22  Nick Clifton  <nickc@redhat.com>
1347
1348         * readelf.c (get_machine_name): Add EM_JAVELIN, EM_FIREPATH,
1349         EM_ZSP, EM_MMIX, EM_HUANY, EM_PRISM.
1350         (get_section_type_name): Add SHT_GROUP and SHT_SYMTAB_SHNDX.
1351         (get_elf_section_flags: Add SHF_GROUP.
1352         (process_section_headers): Adjust output for 32-bit binaries
1353         to look nice on an 80 column terminal.
1354
1355 2000-11-20  H.J. Lu  <hjl@gnu.org>
1356
1357         * readelf.c (get_osabi_name): Change ELFOSABI_MONTEREY to
1358         ELFOSABI_AIX.
1359
1360 2000-11-17  Richard Henderson  <rth@redhat.com>
1361
1362         * readelf.c (display_debug_lines): Adjust last change to
1363         use sizeof (external->li_length).
1364
1365 2000-11-17  Richard Henderson  <rth@redhat.com>
1366
1367         * readelf.c (display_debug_lines): Fix section length check
1368         and end_of_sequence computation.
1369
1370 2000-11-06  Nick Clifton  <nickc@redhat.com>
1371
1372         * binutils.texi: Add GNU Free Documentation License.
1373         * objcopy.1: Add GNU Free Documentation License.
1374         * objdump.1: Add GNU Free Documentation License.
1375         * addr2line.1: Add GNU Free Documentation License.
1376         * ar.1: Add GNU Free Documentation License.
1377         * nlmconv.1: Add GNU Free Documentation License.
1378         * nm.1: Add GNU Free Documentation License.
1379         * ranlib.1: Add GNU Free Documentation License.
1380         * size.1: Add GNU Free Documentation License.
1381         * strings.1: Add GNU Free Documentation License.
1382         * strip.1: Add GNU Free Documentation License.
1383
1384 2000-10-06  Luciano Gemme <ishitawa@yahoo.com>
1385
1386         * objcopy.c (--srec-len=nn): New parameter to set the
1387         maximum length of generated Srecords.
1388         (--srec-forceS3): New parameter that restricts the generation of
1389         Srecords to type S3 only.
1390         * binutils.texi: Document new command line switches.
1391         * objcopy.1: Docuemnt the new command line switches.
1392         * NEWS: Announce the existence of the new command line switches.
1393
1394 2000-10-31  Nick Clifton  <nickc@redhat.com>
1395
1396         * MAINTAINERS: Add Jim Wilson as the maintainer for the IA64
1397         code.  Add Eric Chrisopher as maintainer of MN10300 port.
1398
1399 2000-10-12  Roger Sayle  <roger@metaphorics.com>
1400
1401         * Make comma after string after icon/control optional.
1402
1403 2000-09-13  Anders Norlander  <anorland@acc.umu.se>
1404
1405         * readelf.c (get_machine_flags): Also print EF_MIPS_MACH field.
1406
1407         * NEWS: Mention support for MIPS32.
1408
1409 2000-09-08  Nick Clifton  <nickc@redhat.com>
1410
1411         * MAINTAINERS: Add Stephane Carrez as maintainer for 68HC[11|12].
1412
1413 2000-09-07  H.J. Lu  <hjl@gnu.org>
1414
1415         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1416         * configure: Rebuild.
1417
1418 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
1419
1420         * configure: Rebuilt with new libtool.m4.
1421
1422 2000-09-05  Nick Clifton  <nickc@redhat.com>
1423
1424         * aclocal.m4: Regenerate.
1425         * config.in: Regenerate.
1426         * configure: Regenerate.
1427
1428 2000-09-04  Todd Vierling  <tv@wasabisystems.com>
1429
1430         * strip.1: Fix stray '\' in -o formatting.
1431
1432 2000-09-02  Nick Clifton  <nickc@redhat.com>
1433
1434         * configure.in: Increase version number to 2.10.91.
1435         * configure: Regenerate.
1436         * aclocal.m4: Regenerate.
1437         * config.in: Regenerate.
1438         * po/binutils.pot: Regenerate.
1439
1440 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
1441
1442         * acinclude.m4: Include libtool and gettext macros from the
1443         top level.
1444         * aclocal.m4, configure: Rebuilt.
1445
1446 2000-08-30  Jamie Guinan  <guinan@bluebutton.com>
1447
1448         * resrc.c (close_input_stream): Delete extraneous logic
1449
1450 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
1451
1452         * NEWS: Mention support for CRIS.
1453
1454 2000-08-21  Nick Clifton  <nickc@redhat.com>
1455
1456         * addr2line.c: Changed email address for Ulrich Lauther.
1457
1458 2000-08-17  Christopher C. Chimelis <chris@debian.org>
1459
1460         * objdump.c (LONGEST_ARCH): Set to sizeof("powerpc:common").
1461
1462 2000-08-17  Nick Clifton  <nickc@redhat.com>
1463
1464         * readelf.c (display_debug_pubnames): Only issue warning
1465         message once.  Terminate message with a new line.
1466         (display_debug_aranges): Only display version 2 debug info.
1467
1468 2000-08-14  Todd Vierling <tv@wasabisystems.com>
1469
1470         * objcopy.c (strip_main): Silently accept -d as an alias for -g
1471         for compatability with old BSD systems.
1472
1473 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
1474
1475         * NEWS: Mention i860 support.
1476
1477 2000-08-11  Carlo Wood <carlo@alinoe.com>
1478
1479         * addr2line.c (main): Add const to char *.
1480
1481 2000-08-11  Geoff Keating  <geoffk@cygnus.com>
1482
1483         * ar.c (main): Don't crash if called with no arguments
1484         or only '-X32_64' as an argument.
1485
1486 2000-08-08  DJ Delorie  <dj@redhat.com>
1487
1488         * resrc.c: use "gcc -xc" instead of -xc-header
1489
1490 2000-08-05  Jason Eckhardt  <jle@cygnus.com>
1491
1492         * readelf.c (elf/i860.h): Include.
1493         (dump_relocations): Add recognition of i860 architecture.
1494         (guess_is_rela): Add recognition of i860 architecture.
1495
1496 2000-08-03  Nick Clifton  <nickc@cygnus.com>
1497
1498         * MAINTAINERS: Add information about CGEN maintainers.
1499
1500 2000-07-26  Geoff Keating  <geoffk@cygnus.com>
1501
1502         * nm.c (main): Ignore '-X32_64' as an option.
1503         * ar.c (main): Likewise.
1504         * binutils.texi (nm): Document new option.
1505         (ar): Likewise.
1506
1507 2000-07-23  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1508
1509         * rdcoff.c (external_coff_symbol_p): K&R-ise.
1510
1511 2000-07-20  H.J. Lu  <hjl@gnu.org>
1512
1513         * binutils.texi: Put back "@end table" deleted by
1514         accident.
1515
1516 2000-07-05  Kenneth Block  <krblock@computer.org>
1517
1518         * nm.c: Add optional style to demangle switch.
1519         * objdump.c: Add optional style to demangle switch.
1520         * addr2line.c: Add optional style to demangle switch.
1521         * binutils.texi: Document optional style to demangle
1522         switch.
1523
1524 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
1525
1526         * MAINTAINERS: Add self as CRIS port maintainer.
1527         * readelf.c: Include elf/cris.h.
1528         (guess_is_rela): Handle EM_CRIS.
1529         (dump_relocations): Ditto.
1530         (get_machine_name): Ditto.
1531         * Makefile.am: Rebuild dependencies.
1532         * Makefile.in: Regenerate.
1533         * po/binutils.pot: Regenerate.
1534
1535 2000-07-19  H.J. Lu  <hjl@gnu.org>
1536
1537         * readelf.c (get_dynamic_type): Change "AUXILARY" to
1538         "AUXILIARY".
1539         (process_dynamic_segment): Print out strings for DT_CONFIG,
1540         DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
1541
1542 2000-07-19  Mark Kettenis  <kettenis@gnu.org>
1543
1544         * nm.c (usage): Change output of `nm --help' to include a
1545         description of the purpose of the program and a detailed
1546         description of the accepted options.
1547
1548 2000-07-19  H.J. Lu  <hjl@gnu.org>
1549
1550         * readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
1551         to DF_1_NODEFLIB.
1552
1553 2000-07-19  H.J. Lu  <hjl@gnu.org>
1554
1555         * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
1556
1557 2000-07-19  H.J. Lu  <hjl@gnu.org>
1558
1559         * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
1560         DT_FEATURE.
1561         (process_dynamic_segment): Likewise.
1562
1563         * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
1564         DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
1565         (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
1566         DF_1_NODUMP and DF_1_CONLFAT.
1567
1568 2000-07-18  Nick Clifton  <nickc@cygnus.com>
1569
1570         * binutils.texi (readelf): Fix spelling typo.
1571
1572 2000-07-11  Mark Kettenis  <kettenis@gnu.org>
1573
1574         * objdump.c (usage): Make output of `objdump --help' more
1575         consistent with the rest of the GNU world.  Add a line describing
1576         the purpose of the program.
1577
1578 2000-07-10  David Huggins-Daines  <dhd@linuxcare.com>
1579
1580         * stabs.c (parse_stab_range_type): Cast to proper type to fix
1581         warning.
1582
1583 2000-07-10  Ryan Bradetich  <rbradetich@uswest.net>
1584
1585         * readelf.c (get_dynamic_data): Add casts and use unsigned chars
1586         to fix warnings.
1587         (process_symbol_table): Ditto.
1588         (procesS_extended_line_op): Ditto.
1589         (display_debug_lines): Ditto.
1590         (display_debug_pubnames): Ditto.
1591         (read_and_display_attr): Ditto.
1592
1593 2000-07-09  Nick Clifton  <nickc@cygnus.com>
1594
1595         * MAINTAINERS: Add several more port specific maintainers.
1596
1597 2000-07-05  Nick Clifton  <nickc@cygnus.com>
1598
1599         * MAINTAINERS: Add blanket write privs for Michael Meissner.
1600
1601 2000-06-05  DJ Delorie  <dj@redhat.com>
1602
1603         * MAINTAINERS: New.
1604
1605 2000-07-01  Eric Fifer  <EFifer@sanwaint.com>
1606
1607         * dllwrap.c: Changed mistaken dyn_string_append() calls
1608         to dyn_string_append_cstr().
1609
1610 2000-07-01  Alexander Aganichev <AAganichev@hypercom.com>
1611
1612         * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
1613         struct debug_type stores size in bytes.
1614
1615 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
1616
1617         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
1618         (CLEANFILES): Add DEPA.
1619         * Makefile.in: Regenerate.
1620
1621 2000-06-27  Alan Modra  <alan@linuxcare.com.au>
1622
1623         * ar.c: Revert incorrect 2000-06-25 patch.
1624         * bucomm.c: Likewise.
1625
1626 2000-06-25 Mark Elbrecht <snowball3@bigfoot.com>
1627
1628         * rdcoff (parse_coff_symbol): Treat GNU weak symbols as external.
1629         (external_coff_symbol_p): New function.
1630         (parse_coff): Use it.
1631
1632 2000-06-25  Alexander Aganichev <AAganichev@hypercom.com>
1633
1634         * ar.c (normalize): Advance past both characters in a DOS based
1635         <letter>: filepath prefix.
1636         (main): Likewise.
1637         * bucomm.c (make_tempname): Likewise.
1638
1639 2000-06-24  Nick Clifton  <nickc@cygnus.com>
1640
1641         * objdump.c (usage): Fix description of --stabs switch.
1642
1643 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
1644
1645         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1646         find one.
1647         * Makefile.in: Regenerate.
1648
1649 2000-06-20  Alexander Aganichev <AAganichev@hypercom.com>
1650
1651         * ar.c (normalize): Correct pointer comparison when checking for
1652         backslashes.
1653         (main): Likewise.
1654         * bucomm.c (make_tempname): Likewise.
1655
1656         * ieee.c (ieee_start_compilation_unit): Correct pointer comparison
1657         and search for backslashes in the original pathname.
1658         (ieee_add_bb11): Likewise.
1659
1660 2000-06-18  Nick Clifton  <nickc@redhat.com>
1661
1662         * ar.c (print_contents): Improve verbose message.
1663
1664 2000-06-15  H.J. Lu  <hjl@gnu.org>
1665
1666         * dyn-string.c: Removed. Not needed with dyn-string.c in
1667         libiberty.
1668         * dyn-string.h: Likewise.
1669
1670         * Makefile.am: Remove references to dyn-string.c and
1671         dyn-string.h. Rebuild dependency.
1672         * Makefile.in: Rebuild.
1673
1674 2000-06-15  H.J. Lu  <hjl@gnu.org>
1675
1676         * binutils.texi: Put a warning on copying relocatable object
1677         files between two different formats.
1678
1679 2000-06-13  DJ Delorie  <dj@cygnus.com>
1680
1681         * rcparse.y (control): ICON controls take an id as the first
1682         parameter, not an optional string.  Also, call new convenience
1683         function that takes res_id's.
1684         * resrc.c (define_control): missing text means zero-length string,
1685         not zero ID.
1686         (define_icon_control): New.
1687         * windres.h: declare define_icon_control.
1688
1689 2000-06-13  H.J. Lu  <hjl@gnu.org>
1690
1691         * configure: Regenerate.
1692
1693 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
1694
1695         * configure.in (VERSION): Update to show this is the CVS mainline.
1696
1697 2000-06-02  David O'Brien  <obrien@FreeBSD.org>
1698
1699         * strings.c (isgraphic): Interpret <TAB> as a printable character,
1700         analogous to <SPACE>.
1701
1702 2000-05-30  Alan Modra  <alan@linuxcare.com.au>
1703
1704         * objdump.c (display_target_list): Use bfd_close_all_done, not
1705         bfd_close to fix crash caused by 2000-05-24 change.
1706
1707 2000-05-25  DJ Delorie  <dj@cygnus.com>
1708
1709         * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
1710
1711 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
1712
1713         * Makefile.am: Update dependencies with "make dep-am"
1714         * Makefile.in: Regenerate.
1715
1716 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
1717
1718         * ar.c: Include filenames.h.
1719         (normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
1720         and drive letters in file names.
1721         (main): Support backslashes and drive letters in argv[0].  Drop
1722         the .exe suffix, if any, in argv[0] if is_ranlib is negative.  Use
1723         FILENAME_CMP instead of strcmp to compare file names.
1724         (open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
1725         DJGPP v2.
1726         (do_quick_append) [__GO32__]: Ditto.
1727         (get_pos_bfd, delete_members, move_members, replace_members):
1728         Compare file names with FILENAME_CMP.
1729
1730         * bucomm.c: Include filenames.h.
1731         (make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
1732         forward/backward slashes and drive letters in file names.
1733
1734         * ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
1735         mixed forward/backward slashes and drive letters in file names.
1736
1737         * strings.c (O_BINARY, setmode, SET_BINARY): Define.
1738         (main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
1739         mode.
1740
1741         * objcopy.c: Include filenames.h.
1742         (main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
1743         before comparing to "strip".
1744         Use FILENAME_CMP to compare file names.
1745
1746         * arsup.c: Include filenames.h.
1747         (map_over_list, ar_delete, ar_replace, ar_extract): Use
1748         FILENAME_CMP to compare file names.
1749         (ar_open): Prepend "tmp-" instead of appending "-tmp", to create
1750         the temporary file name.
1751
1752         * configure.in: Check for setmode.
1753         * configure: Regenerate.
1754
1755 2000-05-24  Alan Modra  <alan@linuxcare.com.au>
1756
1757         * objdump.c (display_target_list): Close the bfd.
1758         (display_info_table): Likewise.
1759
1760 2000-05-14  H.J. Lu  (hjl@gnu.org)
1761
1762         * objcopy.c (filter_symbols): Don't strip global symbols in
1763         relocatable object files.
1764
1765 2000-05-14  Alan Modra  <alan@linuxcare.com.au>
1766
1767         * size.c (usage): Associate short options with corresponding long
1768         option to give a clue as to their function.
1769
1770 2000-05-14  Philippe De Muyter  <phdm@macqel.be>
1771
1772         * size.c (main): Accept and ignore `-f' option.
1773
1774 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
1775
1776         * bucomm.h (gettext, dgettext, dcgettext, textdomain,
1777         bindtextdomain): Replace defines with those from intl/libgettext.h
1778         to quieten gcc warnings.
1779
1780 2000-05-12  H.J. Lu  <hjl@gnu.org>
1781
1782         * nlmconv.c (temp_filename): Removed.
1783
1784         * nlmconv.c (link_inputs): Use make_temp_file () instead of
1785         choose_temp_base ().
1786         * objdump.c (display_target_list): Likewise.
1787         (display_info_table): Likewise.
1788
1789 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
1790
1791         * objcopy.c (setup_section): Add const and gettext calls for err.
1792
1793 2000-05-02  H.J. Lu  <hjl@gnu.org>
1794
1795         * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
1796         ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
1797         ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
1798         ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
1799         and ELFOSABI_OPENBSD.
1800
1801 2000-05-02  Kazu Hirata  <kazu@hxi.com>
1802
1803         * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
1804         * srconv.c: Likewise.
1805         * sysdump.c: Likewise.
1806
1807 2000-04-23  Denis Chertykov  <denisc@overta.ru>
1808
1809         * readelf.c (guess_is_rela): AVR uses RELA relocations.
1810         (get_machine_name): machine name for EM_AVR added.
1811
1812 2000-04-21  Richard Henderson  <rth@cygnus.com>
1813             David Mosberger  <davidm@hpl.hp.com>
1814
1815         * Makefile.am (readelf.o): Add elf/ia64.h.
1816         * Makefile.in: Rebuild.
1817         * readelf.c: Include elf/ia64.h.
1818         (guess_is_rela, dump_relocations): Handle EM_IA_64.
1819
1820 2000-04-17  Timothy Wall  <twall@cygnus.com>
1821
1822         * objdump.c (disassemble_data): Set octets per byte *after*
1823         resolving arch/mach for binary files.
1824
1825 2000-04-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1826
1827         * arlex.l: Add directives to increase lex buffer size.
1828
1829         * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
1830         already included by bucomm.h.
1831
1832 2000-04-10  Philippe De Muyter  <phdm@macqel.be>
1833
1834         * readelf.c (dynamic_segment_mips_val): Call `sprintf', not
1835         `strftime' since strftime is not available on all systems.
1836         (process_mips_specific): Ditto.
1837
1838 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
1839
1840         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
1841         --enable-build-warnings option.
1842         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1843         * Makefile.in, configure: Re-generate.
1844
1845 2000-04-06  Alan Modra  <alan@linuxcare.com.au>
1846
1847         * addr2line.c: Update copyright.
1848         * objcopy.1: Likewise, and title.
1849         * strings.1: Likewise.
1850
1851         * version.c (print_version): Add 2000.
1852
1853         * rddbg.c (read_section_stabs_debugging_info): Don't use
1854         bfd_size_type for strx to avoid printf problems if BFD64.
1855
1856         * bucomm.c: (report): Remove `static'.
1857         Move inclusion of stdarg.h/vararg.h from here.
1858         * bucomm.h: To here.
1859         (CONST): Change all occurences to const.
1860         (report): Declare it.
1861         (bfd_fatal): Add ATTRIBUTE_NORETURN.
1862         (fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
1863         (non_fatal): Add ATTRIBUTE_PRINTF_1.
1864
1865         * ar.c (main): Use fatal or non_fatal instead of fprintf.
1866         Correct a typo in an error message.
1867         (do_quick_append): Use non_fatal instead of fprintf.
1868         (move_members): Use fatal instead of fprintf, exit.
1869         * coffdump.c (main): Same here.
1870
1871         * dlltool.c (display): Delete.
1872         (warn): Delete.
1873         (inform): Use `report' instead of `display'.
1874         (rvaafter): Remove trailing \n from fatal error msg.
1875         (rvabefore): Ditto.
1876         (asm_prefix): Ditto.
1877         (yyerror): Replace `warn' with `non_fatal', and remove \n.
1878         (def_name): Likewise.
1879         (run): Likewise.
1880         (scan_all_symbols): Likewise.
1881         (gen_lib_file): Likewise.
1882         (def_library): Likewise.  Remove extra program_name too.
1883         (run): Remove \n from inform strings.
1884         (scan_drectve_symbols): Likewise.
1885         (add_excludes): Likewise.
1886         (scan_open_obj_file): Likewise.
1887         (gen_exp_file): Likewise.
1888         (gen_lib_file): Likewise.
1889         (process_duplicates): Likewise.
1890
1891         * Makefile.am (dllwrap_SOURCES): Add version.c.
1892         * dllwrap.c (program_version): Delete.
1893         (print_version): Delete.
1894         (display): Always print trailing \n.
1895         (warn): New.
1896         (delete_temp_files): Use warn instead of fprintf.  Use gettext.
1897         (run): Here too.
1898         (main): And here.
1899         (usage): gettext'ify.
1900         (long_options): Add missing initialisers.
1901
1902         * nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
1903         (select_output_format): Likewise.
1904         (powerpc_mangle_relocs): Likewise.
1905         (link_inputs): Likewise.
1906
1907         * nm.c (set_print_radix): Use fatal instead of fprintf, exit.
1908         (set_output_format): Likewise.
1909         (main): Use non_fatal instead of fprintf.
1910         (display_rel_file): Likewise.
1911
1912         * objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
1913         (slurp_dynamic_symtab): Same here.
1914         (disassemble_data): And here.
1915         (read_section_stabs): And here.
1916         (read_section_stabs): And here.
1917         (dump_bfd): And here.
1918         (main): And here.
1919         (objdump_sprintf): Use fatal instead of fprintf, exit.
1920         (disassemble_data): Same here.
1921
1922         * rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
1923         (parse_coff_struct_type): Same here.
1924         (parse_coff_enum_type): And here.
1925         (parse_coff): And here.
1926         * rddbg.c (read_debugging_info): And here.
1927         * size.c (main): And here.
1928         * windres.c (format_from_name): And here.
1929         * wrstabs.c (stab_write_symbol): Here too.
1930         (write_stabs_in_sections_debugging_info): And here.
1931         (stab_int_type): And here.
1932         (stab_struct_field): And here.
1933         (stab_typdef): And here.
1934
1935         * rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
1936         * srconv.c (main): Same here.
1937         * strings.c (main): And here.
1938         (integer_arg): And here.
1939         * sysdump.c (main): And here.
1940
1941 2000-04-06  Timothy Wall  <twall@cygnus.com>
1942
1943         * objdump.c (dump_section_header): Print CLINK and BLOCK flags.
1944
1945 2000-04-06  Jason Merrill  <jason@yorick.cygnus.com>
1946
1947         * readelf.c (decode_location_expression): Loop through multiple
1948         operations.
1949         (read_and_display_attr): Pass in length.
1950
1951         * readelf.c (read_and_display_attr): Add CU offset to references.
1952         (display_debug_info): Pass it in.
1953
1954 2000-04-06  Nick Clifton  <nickc@cygnus.com>
1955
1956         * readelf.c (decode_ARM_machine_flags): New function.
1957         (get_machine_flags): Call decode_ARM_machine_flags for ARM
1958         targets.
1959
1960         (get_machine_name): Catch EM_AVR
1961
1962 2000-04-05  Alan Modra  <alan@linuxcare.com.au>
1963
1964         * binutils.texi: Remove optional `=' from long options that have
1965         an `=' in the argument.
1966         * objcopy.1: Here too.  Remove extra space on discard-all.
1967
1968         * binutils.texi (objcopy): Mention --redefine-sym.
1969         * objcopy.1: Here too.
1970         * NEWS: And here.
1971
1972         * objcopy.c (parse_flags): Split off flag names from error message
1973         gettext as they are not translated.
1974         (copy_main): Similarly split off option name for --add-section,
1975         --set-section-flags, --change-section-vma, --change-section-lma
1976         error messages.
1977         Some white space changes.
1978
1979         from Matthew Benjamin <matt@linuxbox.nu>
1980         * objcopy.c (struct redefine_node): New.
1981         (redefine_sym_list): New.
1982         (redefine_list_append): New.
1983         (lookup_sym_redefinition): New.
1984         (OPTION_REDEFINE_SYM): New.
1985         (copy_options): Add --redefine-sym option.
1986         (copy_usage): Mention it.
1987         (filter_symbols): Rename symbols on redefine_sym_list.
1988         (copy_object): Call filter_symbols if redefine_sym_list != NULL.
1989         (copy_main): Handle OPTION_REDEFINE_SYM.
1990
1991 2000-04-04  H.J. Lu  <hjl@gnu.org>
1992
1993         * readelf.c (process_symbol_table): Correctly read in symbol
1994         versioning information.
1995
1996 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
1997
1998         * po/binutils.pot: Regenerate.
1999
2000         * addr2line.c (usage): Restore translated part of bug string.
2001         * ar.c (usage): Likewise.
2002         * nlmconv.c (show_usage): Likewise.
2003         * nm.c (usage): Likewise.
2004         * objcopy.c (copy_usage): Likewise.
2005         (strip_usage): Likewise.
2006         * objdump.c (usage): Likewise.
2007         * readelf.c (usage): Likewise.
2008         * size.c (usage): Likewise.
2009         * strings.c (usage): Likewise.
2010         * windres.c (usage): Likewise.
2011
2012         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2013         (DEP): Quote when passing vars to sub-make.  Add warning
2014         message to end.
2015         (DEP1): Rewrite for "gcc -MM".
2016         (CLEANFILES): Add DEP2.
2017         Update dependencies.
2018         * Makefile.in: Regenerate.
2019
2020 2000-04-04  H.J. Lu  <hjl@gnu.org>
2021
2022         * Makefile.am (GENERATED_HFILES): Add rcparse.h
2023         (arparse.h): Depend on arparse.c
2024         (defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
2025
2026 2000-04-03  H.J. Lu  (hjl@gnu.org)
2027
2028         * size.c (usage): Use REPORT_BUGS_TO.
2029
2030 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
2031
2032         * bucomm.h: #include "bin-bugs.h"
2033         * addr2line.c (usage): Use REPORT_BUGS_TO.
2034         * ar.c (usage): Likewise.
2035         * nlmconv.c (show_usage): Likewise.
2036         * nm.c (usage): Likewise.
2037         (OPTION_TARGET): Define.
2038         (long_options): Use OPTION_TARGET rather than 200.
2039         (main): Likewise.
2040
2041         * objcopy.c (copy_usage): Use REPORT_BUGS_TO.
2042         (strip_usage): Likewise.
2043         * objdump.c (usage): Likewise.
2044         * readelf.c (usage): Likewise.
2045         * strings.c (usage): Likewise.
2046         * windres.c (usage): Likewise.
2047
2048 2000-03-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2049
2050         * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
2051
2052 2000-03-27  Nick Clifton  <nickc@cygnus.com>
2053
2054         * rddbg.c (read_section_stabs_debugging_info): Catch out of range
2055         string offsets in corrupt stabs entries.
2056
2057 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
2058
2059         * readelf.c: Include elf/avr.h
2060         (dump_relocations): Add EM_AVR case.
2061
2062 2000-03-09  Tim Waugh  <twaugh@redhat.com>
2063
2064         * strings.1: Correct '-bytes' to '--bytes'.
2065
2066 2000-03-08  H.J. Lu  <hjl@gnu.org>
2067
2068         * Makefile.am (install-exec-local): Depend on
2069         install-binPROGRAMS for parallel make.
2070         * Makefile.in: Regenerated.
2071
2072 2000-02-27  Ian Lance Taylor  <ian@zembu.com>
2073
2074         From Brad Lucier <lucier@math.purdue.edu>:
2075         * readelf.c (process_dynamic_segment): Add cast to make sure
2076         argument to %* is int.
2077
2078 2000-02-25  H.J. Lu  <hjl@gnu.org>
2079
2080         * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
2081
2082 2000-02-24  Nick Clifton  <nickc@cygnus.com>
2083
2084         * configure.in: Add arm-wince, mips-pe and sh-pe targets.
2085         * configure: Regenerate.
2086
2087         * dlltool.c: Add support for sh-pe and mips-pe targets.
2088         * rescoff.c: Add support for sh-pe and mips-pe targets.
2089
2090 2000-02-23  H.J. Lu  <hjl@gnu.org>
2091
2092         * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
2093
2094 2000-02-22  Nick Clifton  <nickc@cygnus.com>
2095
2096         * readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
2097
2098 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
2099
2100         From Brad Lucier <lucier@math.purdue.edu>:
2101         * readelf.c (process_version_sections): Add casts to make sure
2102         argument to %* is an int.
2103         (process_mips_specific): Add casts to make printf arguments match
2104         format.
2105
2106 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
2107
2108         * objdump.c (dump_section_header): Change `opb' to unsigned.
2109         (find_symbol_for_address): Same here.
2110         (disassemble_data): And here.  Change `addr_offset',
2111         `stop_offset', `nextstop_offset' to unsigned long.
2112         (dump_data): Change opb to unsigned.
2113
2114 2000-02-18  Frank Ch. Eigler  <fche@redhat.com>
2115
2116         * resrc.c: Remove unmatched #if for cygwin.
2117
2118 2000-02-14  Fernando Nasser  <fnasser@totem.to.cygnus.com>
2119
2120         * binutils.texi: Document the change of flavor name from atpcs-special
2121         to special-atpcs to prevent name conflict in gdb.
2122
2123 2000-02-08  Timothy Wall  <twall@redhat.com>
2124
2125         * objdump.c (show_line): Fix bug preventing printing of the very
2126         first line (line zero) of a file when interlisting source and
2127         assembly.  Added option to print entire context from start of file
2128         when the first line from that file is encountered.
2129
2130 2000-02-03  Timothy Wall <twall@redhat.com>
2131
2132         * objdump.c (dump_section_header, find_symbol_for_address,
2133         show_line, disassemble_bytes, disassemble_data, dump_data):
2134         distinguish between octets and bytes.
2135
2136 2000-01-27  Thomas de Lellis  <tdel@windriver.com>
2137
2138         * nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
2139         check to unresolved symbols.
2140         (print_symbol_info_sysv):  Ditto.
2141         (print_symbol_info_posix):  Ditto.
2142
2143         * binutils.texi: Document new 'V' symclass flag for nm.
2144
2145 2000-01-27  Nick Clifton  <nickc@redhat.com>
2146
2147         * binutils.texi (objdump): Document new ARM specific
2148         disassembler options.
2149
2150         * objdump.c (usage): Call disassembler_usage().
2151
2152 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
2153
2154         * readelf.c (get_dynamic_flags): Return buff.
2155         (process_dynamic_segment): Don't pass error strings to printf
2156         as format arg.
2157         (read_and_display_attr): Use lx and ld to print longs.
2158         (process_corefile_note_segment): Cast bfd_vma to unsigned long
2159         before printing.
2160         Update copyright.
2161
2162 2000-01-17  Nick Clifton  <nickc@cygnus.com>
2163
2164         * readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
2165
2166 2000-01-15  Alan Modra  <alan@spri.levels.unisa.edu.au>
2167
2168         * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
2169         false.
2170         (debug_tag_type): Here too.
2171         * ieee.c (ieee_builtin_type): And here.
2172         * stabs.c (parse_stab_type, parse_stab_array_type): And here.
2173
2174 2000-01-13  Nick Clifton  <nickc@cygnus.com>
2175
2176         * readelf.c (get_machine_name): Change EM_S370 to return "IBM
2177         System/370".
2178
2179 2000-01-11  Nick Clifton  <nickc@cygnus.com>
2180
2181         * readelf.c (get_dynamic_type): Remove DT_ENCODING.
2182
2183 2000-01-10  Nick Clifton  <nickc@cygnus.com>
2184
2185         * readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
2186
2187 2000-01-07  Mumit Khan  <khan@xraylith.wisc.edu>
2188
2189         * windres.c (long_options): Add --use-temp-file and
2190         --no-use-temp-file options.
2191         (usage): Document.
2192         (main): Handle.
2193
2194         * windres.h: Update read_rc_file prototype.
2195
2196         * resrc.c (cpp_temp_file): New static variable.
2197         (istream_type): New static variable.
2198         (close_pipe): Delete function.
2199         (run_cmd): New static function.
2200         (open_input_stream): New static function.
2201         (close_input_stream): New static function.
2202         (look_for_default): Handle DOS directory separator. Use
2203         open_input_stream instead of popen.
2204         (read_rc_file): Likewise.
2205
2206         * binutils.texi: Document --use-temp-file, --no-use-temp-file
2207         options.
2208
2209 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
2210
2211         * dlltool.c (create_compat_implib): New variable.
2212         (gen_exp_file): Use.
2213         (make_one_lib_file): Use.
2214         (long_options): Add --compat-implib option.
2215         (usage): Handle.
2216         (main): Handle.
2217
2218         * dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
2219         (main): Use. Don't look for "32" in cygwin and mingw target names.
2220
2221 2000-01-03  Nick Clifton  <nickc@cygnus.com>
2222
2223         * binutils.texi: Document new, ARM specific disassembler
2224         command line switch "-M force-thumb".
2225
2226 For older changes see ChangeLog-9899
2227 \f
2228 Local Variables:
2229 mode: change-log
2230 left-margin: 8
2231 fill-column: 74
2232 version-control: never
2233 End: