9e9f70e3b7947bea9bd32a64acd5e6c0934c695d
[external/binutils.git] / binutils / ChangeLog
1 2000-09-05  Nick Clifton  <nickc@redhat.com>
2
3         * aclocal.m4: Regenerate.
4         * config.in: Regenerate.
5         * configure: Regenerate.
6
7 2000-09-04  Todd Vierling  <tv@wasabisystems.com>
8
9         * strip.1: Fix stray '\' in -o formatting.
10
11 2000-09-02  Nick Clifton  <nickc@redhat.com>
12
13         * configure.in: Increase version number to 2.10.91.
14         * configure: Regenerate.
15         * aclocal.m4: Regenerate.
16         * config.in: Regenerate.
17         * po/binutils.pot: Regenerate.
18         
19 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
20
21         * acinclude.m4: Include libtool and gettext macros from the
22         top level.
23         * aclocal.m4, configure: Rebuilt.
24
25 2000-08-30  Jamie Guinan  <guinan@bluebutton.com>
26
27         * resrc.c (close_input_stream): Delete extraneous logic
28
29 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
30
31         * NEWS: Mention support for CRIS.
32
33 2000-08-21  Nick Clifton  <nickc@redhat.com>
34
35         * addr2line.c: Changed email address for Ulrich Lauther.
36
37 2000-08-17  Christopher C. Chimelis <chris@debian.org>
38
39         * objdump.c (LONGEST_ARCH): Set to sizeof("powerpc:common").
40
41 2000-08-17  Nick Clifton  <nickc@redhat.com>
42
43         * readelf.c (display_debug_pubnames): Only issue warning
44         message once.  Terminate message with a new line.
45         (display_debug_aranges): Only display version 2 debug info.
46
47 2000-08-14  Todd Vierling <tv@wasabisystems.com>
48
49         * objcopy.c (strip_main): Silently accept -d as an alias for -g
50         for compatability with old BSD systems.
51
52 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
53
54         * NEWS: Mention i860 support.
55
56 2000-08-11  Carlo Wood <carlo@alinoe.com>
57
58         * addr2line.c (main): Add const to char *.
59
60 2000-08-11  Geoff Keating  <geoffk@cygnus.com>
61
62         * ar.c (main): Don't crash if called with no arguments
63         or only '-X32_64' as an argument.
64
65 2000-08-08  DJ Delorie  <dj@redhat.com>
66
67         * resrc.c: use "gcc -xc" instead of -xc-header
68
69 2000-08-05  Jason Eckhardt  <jle@cygnus.com>
70
71         * readelf.c (elf/i860.h): Include.
72         (dump_relocations): Add recognition of i860 architecture.
73         (guess_is_rela): Add recognition of i860 architecture.
74
75 2000-08-03  Nick Clifton  <nickc@cygnus.com>
76
77         * MAINTAINERS: Add information about CGEN maintainers.
78
79 2000-07-26  Geoff Keating  <geoffk@cygnus.com>
80
81         * nm.c (main): Ignore '-X32_64' as an option.
82         * ar.c (main): Likewise.
83         * binutils.texi (nm): Document new option.
84         (ar): Likewise.
85
86 2000-07-23  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
87
88         * rdcoff.c (external_coff_symbol_p): K&R-ise.
89
90 2000-07-20  H.J. Lu  <hjl@gnu.org>
91
92         * binutils/binutils.texi: Put back "@end table" deleted by
93         accident.
94
95 2000-07-05  Kenneth Block  <krblock@computer.org>
96
97         * binutils/nm.c: Add optional style to demangle switch.
98         * binutils/objdump.c: Add optional style to demangle switch.
99         * binutils/addr2line.c: Add optional style to demangle switch.
100         * binutils/binutils.texi: Document optional style to demangle
101         switch.
102
103 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
104
105         * MAINTAINERS: Add self as CRIS port maintainer.
106         * readelf.c: Include elf/cris.h.
107         (guess_is_rela): Handle EM_CRIS.
108         (dump_relocations): Ditto.
109         (get_machine_name): Ditto.
110         * Makefile.am: Rebuild dependencies.
111         * Makefile.in: Regenerate.
112         * po/binutils.pot: Regenerate.
113
114 2000-07-19  H.J. Lu  <hjl@gnu.org>
115
116         * readelf.c (get_dynamic_type): Change "AUXILARY" to
117         "AUXILIARY".
118         (process_dynamic_segment): Print out strings for DT_CONFIG,
119         DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
120
121 2000-07-19  Mark Kettenis  <kettenis@gnu.org>
122
123         * nm.c (usage): Change output of `nm --help' to include a
124         description of the purpose of the program and a detailed
125         description of the accepted options.
126
127 2000-07-19  H.J. Lu  <hjl@gnu.org>
128
129         * readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
130         to DF_1_NODEFLIB.
131
132 2000-07-19  H.J. Lu  <hjl@gnu.org>
133
134         * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
135
136 2000-07-19  H.J. Lu  <hjl@gnu.org>
137
138         * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
139         DT_FEATURE.
140         (process_dynamic_segment): Likewise.
141
142         * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
143         DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
144         (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
145         DF_1_NODUMP and DF_1_CONLFAT.
146
147 2000-07-18  Nick Clifton  <nickc@cygnus.com>
148
149         * binutils.texi (readelf): Fix spelling typo.
150
151 2000-07-11  Mark Kettenis  <kettenis@gnu.org>
152
153         * objdump.c (usage): Make output of `objdump --help' more
154         consistent with the rest of the GNU world.  Add a line describing
155         the purpose of the program.
156
157 2000-07-10  David Huggins-Daines  <dhd@linuxcare.com>
158
159         * stabs.c (parse_stab_range_type): Cast to proper type to fix
160         warning.
161
162 2000-07-10  Ryan Bradetich  <rbradetich@uswest.net>
163
164         * readelf.c (get_dynamic_data): Add casts and use unsigned chars
165         to fix warnings.
166         (process_symbol_table): Ditto.
167         (procesS_extended_line_op): Ditto.
168         (display_debug_lines): Ditto.
169         (display_debug_pubnames): Ditto.
170         (read_and_display_attr): Ditto.
171
172 2000-07-09  Nick Clifton  <nickc@cygnus.com>
173
174         * MAINTAINERS: Add several more port specific maintainers.
175
176 2000-07-05  Nick Clifton  <nickc@cygnus.com>
177
178         * MAINTAINERS: Add blanket write privs for Michael Meissner.
179
180 2000-06-05  DJ Delorie  <dj@redhat.com>
181
182         * MAINTAINERS: New.
183
184 2000-07-01  Eric Fifer  <EFifer@sanwaint.com>
185
186         * dllwrap.c: Changed mistaken dyn_string_append() calls
187         to dyn_string_append_cstr().
188
189 2000-07-01  Alexander Aganichev <AAganichev@hypercom.com>
190
191         * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
192         struct debug_type stores size in bytes.
193
194 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
195
196         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
197         (CLEANFILES): Add DEPA.
198         * Makefile.in: Regenerate.
199
200 2000-06-27  Alan Modra  <alan@linuxcare.com.au>
201
202         * ar.c: Revert incorrect 2000-06-25 patch.
203         * bucomm.c: Likewise.
204
205 2000-06-25 Mark Elbrecht <snowball3@bigfoot.com>
206
207         * rdcoff (parse_coff_symbol): Treat GNU weak symbols as external.
208         (external_coff_symbol_p): New function.
209         (parse_coff): Use it.
210
211 2000-06-25  Alexander Aganichev <AAganichev@hypercom.com>
212
213         * ar.c (normalize): Advance past both characters in a DOS based
214         <letter>: filepath prefix.
215         (main): Likewise.
216         * bucomm.c (make_tempname): Likewise.
217
218 2000-06-24  Nick Clifton  <nickc@cygnus.com>
219
220         * objdump.c (usage): Fix description of --stabs switch.
221
222 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
223
224         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
225         find one.
226         * Makefile.in: Regenerate.
227
228 2000-06-20  Alexander Aganichev <AAganichev@hypercom.com>
229
230         * ar.c (normalize): Correct pointer comparison when checking for
231         backslashes.
232         (main): Likewise.
233         * bucomm.c (make_tempname): Likewise.
234
235         * ieee.c (ieee_start_compilation_unit): Correct pointer comparison
236         and search for backslashes in the original pathname.
237         (ieee_add_bb11): Likewise.
238
239 2000-06-18  Nick Clifton  <nickc@redhat.com>
240
241         * ar.c (print_contents): Improve verbose message.
242
243 2000-06-15  H.J. Lu  <hjl@gnu.org>
244
245         * dyn-string.c: Removed. Not needed with dyn-string.c in
246         libiberty.
247         * dyn-string.h: Likewise.
248
249         * Makefile.am: Remove references to dyn-string.c and
250         dyn-string.h. Rebuild dependency.
251         * Makefile.in: Rebuild.
252
253 2000-06-15  H.J. Lu  <hjl@gnu.org>
254
255         * binutils.texi: Put a warning on copying relocatable object
256         files between two different formats.
257
258 2000-06-13  DJ Delorie  <dj@cygnus.com>
259
260         * rcparse.y (control): ICON controls take an id as the first
261         parameter, not an optional string.  Also, call new convenience
262         function that takes res_id's.
263         * resrc.c (define_control): missing text means zero-length string,
264         not zero ID.
265         (define_icon_control): New.
266         * windres.h: declare define_icon_control.
267
268 2000-06-13  H.J. Lu  <hjl@gnu.org>
269
270         * configure: Regenerate.
271
272 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
273
274         * configure.in (VERSION): Update to show this is the CVS mainline.
275
276 2000-06-02  David O'Brien  <obrien@FreeBSD.org>
277
278         * strings.c (isgraphic): Interpret <TAB> as a printable character,
279         analogous to <SPACE>.
280
281 2000-05-30  Alan Modra  <alan@linuxcare.com.au>
282
283         * objdump.c (display_target_list): Use bfd_close_all_done, not
284         bfd_close to fix crash caused by 2000-05-24 change.
285
286 2000-05-25  DJ Delorie  <dj@cygnus.com>
287
288         * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
289
290 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
291
292         * Makefile.am: Update dependencies with "make dep-am"
293         * Makefile.in: Regenerate.
294
295 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
296
297         * ar.c: Include filenames.h.
298         (normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
299         and drive letters in file names.
300         (main): Support backslashes and drive letters in argv[0].  Drop
301         the .exe suffix, if any, in argv[0] if is_ranlib is negative.  Use
302         FILENAME_CMP instead of strcmp to compare file names.
303         (open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
304         DJGPP v2.
305         (do_quick_append) [__GO32__]: Ditto.
306         (get_pos_bfd, delete_members, move_members, replace_members):
307         Compare file names with FILENAME_CMP.
308
309         * bucomm.c: Include filenames.h.
310         (make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
311         forward/backward slashes and drive letters in file names.
312
313         * ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
314         mixed forward/backward slashes and drive letters in file names.
315
316         * strings.c (O_BINARY, setmode, SET_BINARY): Define.
317         (main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
318         mode.
319
320         * objcopy.c: Include filenames.h.
321         (main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
322         before comparing to "strip".
323         Use FILENAME_CMP to compare file names.
324
325         * arsup.c: Include filenames.h.
326         (map_over_list, ar_delete, ar_replace, ar_extract): Use
327         FILENAME_CMP to compare file names.
328         (ar_open): Prepend "tmp-" instead of appending "-tmp", to create
329         the temporary file name.
330
331         * configure.in: Check for setmode.
332         * configure: Regenerate.
333
334 2000-05-24  Alan Modra  <alan@linuxcare.com.au>
335
336         * objdump.c (display_target_list): Close the bfd.
337         (display_info_table): Likewise.
338
339 2000-05-14  H.J. Lu  (hjl@gnu.org)
340
341         * objcopy.c (filter_symbols): Don't strip global symbols in
342         relocatable object files.
343
344 2000-05-14  Alan Modra  <alan@linuxcare.com.au>
345
346         * size.c (usage): Associate short options with corresponding long
347         option to give a clue as to their function.
348
349 2000-05-14  Philippe De Muyter  <phdm@macqel.be>
350
351         * size.c (main): Accept and ignore `-f' option.
352
353 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
354
355         * bucomm.h (gettext, dgettext, dcgettext, textdomain,
356         bindtextdomain): Replace defines with those from intl/libgettext.h
357         to quieten gcc warnings.
358
359 2000-05-12  H.J. Lu  <hjl@gnu.org>
360
361         * nlmconv.c (temp_filename): Removed.
362
363         * nlmconv.c (link_inputs): Use make_temp_file () instead of
364         choose_temp_base ().
365         * objdump.c (display_target_list): Likewise.
366         (display_info_table): Likewise.
367
368 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
369
370         * objcopy.c (setup_section): Add const and gettext calls for err.
371
372 2000-05-02  H.J. Lu  <hjl@gnu.org>
373
374         * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
375         ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
376         ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
377         ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
378         and ELFOSABI_OPENBSD.
379
380 2000-05-02  Kazu Hirata  <kazu@hxi.com>
381
382         * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
383         * srconv.c: Likewise.
384         * sysdump.c: Likewise.
385
386 Sun Apr 23 14:23:26 2000  Denis Chertykov  <denisc@overta.ru>
387
388         * readelf.c (guess_is_rela): AVR uses RELA relocations.
389         (get_machine_name): machine name for EM_AVR added.
390
391 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
392                           David Mosberger  <davidm@hpl.hp.com>
393
394         * Makefile.am (readelf.o): Add elf/ia64.h.
395         * Makefile.in: Rebuild.
396         * readelf.c: Include elf/ia64.h.
397         (guess_is_rela, dump_relocations): Handle EM_IA_64.
398         
399 2000-04-17  Timothy Wall  <twall@cygnus.com>
400
401         * objdump.c (disassemble_data): Set octets per byte *after*
402         resolving arch/mach for binary files.
403
404 2000-04-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
405
406         * arlex.l: Add directives to increase lex buffer size.
407
408         * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
409         already included by bucomm.h.
410
411 2000-04-10  Philippe De Muyter  <phdm@macqel.be>
412
413         * readelf (dynamic_segment_mips_val): Call `sprintf', not
414         `strftime' since strftime is not available on all systems.
415         (process_mips_specific): Ditto.
416
417 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
418  
419         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
420         --enable-build-warnings option.
421         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
422         * Makefile.in, configure: Re-generate.
423
424 2000-04-06  Alan Modra  <alan@linuxcare.com.au>
425
426         * addr2line.c: Update copyright.
427         * objcopy.1: Likewise, and title.
428         * strings.1: Likewise.
429
430         * version.c (print_version): Add 2000.
431
432         * rddbg.c (read_section_stabs_debugging_info): Don't use
433         bfd_size_type for strx to avoid printf problems if BFD64.
434
435         * bucomm.c: (report): Remove `static'.
436         Move inclusion of stdarg.h/vararg.h from here.
437         * bucomm.h: To here.
438         (CONST): Change all occurences to const.
439         (report): Declare it.
440         (bfd_fatal): Add ATTRIBUTE_NORETURN.
441         (fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
442         (non_fatal): Add ATTRIBUTE_PRINTF_1.
443
444         * ar.c (main): Use fatal or non_fatal instead of fprintf.
445         Correct a typo in an error message.
446         (do_quick_append): Use non_fatal instead of fprintf.
447         (move_members): Use fatal instead of fprintf, exit.
448         * coffdump.c (main): Same here.
449
450         * dlltool.c (display): Delete.
451         (warn): Delete.
452         (inform): Use `report' instead of `display'.
453         (rvaafter): Remove trailing \n from fatal error msg.
454         (rvabefore): Ditto.
455         (asm_prefix): Ditto.
456         (yyerror): Replace `warn' with `non_fatal', and remove \n.
457         (def_name): Likewise.
458         (run): Likewise.
459         (scan_all_symbols): Likewise.
460         (gen_lib_file): Likewise.
461         (def_library): Likewise.  Remove extra program_name too.
462         (run): Remove \n from inform strings.
463         (scan_drectve_symbols): Likewise.
464         (add_excludes): Likewise.
465         (scan_open_obj_file): Likewise.
466         (gen_exp_file): Likewise.
467         (gen_lib_file): Likewise.
468         (process_duplicates): Likewise.
469
470         * Makefile.am (dllwrap_SOURCES): Add version.c.
471         * dllwrap.c (program_version): Delete.
472         (print_version): Delete.
473         (display): Always print trailing \n.
474         (warn): New.
475         (delete_temp_files): Use warn instead of fprintf.  Use gettext.
476         (run): Here too.
477         (main): And here.
478         (usage): gettext'ify.
479         (long_options): Add missing initialisers.
480
481         * nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
482         (select_output_format): Likewise.
483         (powerpc_mangle_relocs): Likewise.
484         (link_inputs): Likewise.
485
486         * nm.c (set_print_radix): Use fatal instead of fprintf, exit.
487         (set_output_format): Likewise.
488         (main): Use non_fatal instead of fprintf.
489         (display_rel_file): Likewise.
490
491         * objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
492         (slurp_dynamic_symtab): Same here.
493         (disassemble_data): And here.
494         (read_section_stabs): And here.
495         (read_section_stabs): And here.
496         (dump_bfd): And here.
497         (main): And here.
498         (objdump_sprintf): Use fatal instead of fprintf, exit.
499         (disassemble_data): Same here.
500
501         * rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
502         (parse_coff_struct_type): Same here.
503         (parse_coff_enum_type): And here.
504         (parse_coff): And here.
505         * rddbg.c (read_debugging_info): And here.
506         * size.c (main): And here.
507         * windres.c (format_from_name): And here.
508         * wrstabs.c (stab_write_symbol): Here too.
509         (write_stabs_in_sections_debugging_info): And here.
510         (stab_int_type): And here.
511         (stab_struct_field): And here.
512         (stab_typdef): And here.
513
514         * rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
515         * srconv.c (main): Same here.
516         * strings.c (main): And here.
517         (integer_arg): And here.
518         * sysdump.c (main): And here.
519
520 2000-04-06  Timothy Wall  <twall@cygnus.com>
521
522         * objdump.c (dump_section_header): Print CLINK and BLOCK flags.
523
524 2000-04-06  Jason Merrill  <jason@yorick.cygnus.com>
525
526         * readelf.c (decode_location_expression): Loop through multiple
527         operations.
528         (read_and_display_attr): Pass in length.
529
530         * readelf.c (read_and_display_attr): Add CU offset to references.
531         (display_debug_info): Pass it in.
532
533 2000-04-06  Nick Clifton  <nickc@cygnus.com>
534
535         * readelf.c (decode_ARM_machine_flags): New function.
536         (get_machine_flags): Call decode_ARM_machine_flags for ARM
537         targets.
538         
539         (get_machine_name): Catch EM_AVR
540
541 2000-04-05  Alan Modra  <alan@linuxcare.com.au>
542
543         * binutils.texi: Remove optional `=' from long options that have
544         an `=' in the argument.
545         * objcopy.1: Here too.  Remove extra space on discard-all.
546
547         * binutils.texi (objcopy): Mention --redefine-sym.
548         * objcopy.1: Here too.
549         * NEWS: And here.
550
551         * objcopy.c (parse_flags): Split off flag names from error message
552         gettext as they are not translated.
553         (copy_main): Similarly split off option name for --add-section,
554         --set-section-flags, --change-section-vma, --change-section-lma
555         error messages.
556         Some white space changes.
557
558         from Matthew Benjamin <matt@linuxbox.nu>
559         * objcopy.c (struct redefine_node): New.
560         (redefine_sym_list): New.
561         (redefine_list_append): New.
562         (lookup_sym_redefinition): New.
563         (OPTION_REDEFINE_SYM): New.
564         (copy_options): Add --redefine-sym option.
565         (copy_usage): Mention it.
566         (filter_symbols): Rename symbols on redefine_sym_list.
567         (copy_object): Call filter_symbols if redefine_sym_list != NULL.
568         (copy_main): Handle OPTION_REDEFINE_SYM.
569
570 2000-04-04  H.J. Lu  <hjl@gnu.org>
571
572         * readelf.c (process_symbol_table): Correctly read in symbol
573         versioning information.
574
575 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
576
577         * po/binutils.pot: Regenerate.
578
579         * addr2line.c (usage): Restore translated part of bug string.
580         * ar.c (usage): Likewise.
581         * nlmconv.c (show_usage): Likewise.
582         * nm.c (usage): Likewise.
583         * objcopy.c (copy_usage): Likewise.
584         (strip_usage): Likewise.
585         * objdump.c (usage): Likewise.
586         * readelf.c (usage): Likewise.
587         * size.c (usage): Likewise.
588         * strings.c (usage): Likewise.
589         * windres.c (usage): Likewise.
590
591         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
592         (DEP): Quote when passing vars to sub-make.  Add warning
593         message to end.
594         (DEP1): Rewrite for "gcc -MM".
595         (CLEANFILES): Add DEP2.
596         Update dependencies.
597         * Makefile.in: Regenerate.
598
599 2000-04-04  H.J. Lu  <hjl@gnu.org>
600
601         * Makefile.am (GENERATED_HFILES): Add rcparse.h
602         (arparse.h): Depend on arparse.c
603         (defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
604
605 2000-04-03  H.J. Lu  (hjl@gnu.org)
606
607         * size.c (usage): Use REPORT_BUGS_TO.
608
609 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
610
611         * bucomm.h: #include "bin-bugs.h"
612         * addr2line.c (usage): Use REPORT_BUGS_TO.
613         * ar.c (usage): Likewise.
614         * nlmconv.c (show_usage): Likewise.
615         * nm.c (usage): Likewise.
616         (OPTION_TARGET): Define.
617         (long_options): Use OPTION_TARGET rather than 200.
618         (main): Likewise.
619
620         * objcopy.c (copy_usage): Use REPORT_BUGS_TO.
621         (strip_usage): Likewise.
622         * objdump.c (usage): Likewise.
623         * readelf.c (usage): Likewise.
624         * strings.c (usage): Likewise.
625         * windres.c (usage): Likewise.
626
627 2000-03-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
628
629         * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
630
631 2000-03-27  Nick Clifton  <nickc@cygnus.com>
632
633         * rddbg.c (read_section_stabs_debugging_info): Catch out of range
634         string offsets in corrupt stabs entries.
635
636 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
637
638         * readelf.c: Include elf/avr.h
639         (dump_relocations): Add EM_AVR case.
640
641 2000-03-09  Tim Waugh  <twaugh@redhat.com>
642
643         * strings.1: Correct '-bytes' to '--bytes'.
644
645 2000-03-08  H.J. Lu  <hjl@gnu.org>
646
647         * Makefile.am (install-exec-local): Depend on
648         install-binPROGRAMS for parallel make.
649         * Makefile.in: Regenerated.
650
651 2000-02-27  Ian Lance Taylor  <ian@zembu.com>
652
653         From Brad Lucier <lucier@math.purdue.edu>:
654         * readelf.c (process_dynamic_segment): Add cast to make sure
655         argument to %* is int.
656
657 2000-02-25  H.J. Lu  <hjl@gnu.org>
658
659         * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
660
661 2000-02-24  Nick Clifton  <nickc@cygnus.com>
662
663         * configure.in: Add arm-wince, mips-pe and sh-pe targets.
664         * configure: Regenerate.
665
666         * dlltoolc.: Add support for sh-pe and mips-pe targets.
667         * rescoff.c: Add support for sh-pe and mips-pe targets.
668
669 2000-02-23  H.J. Lu  <hjl@gnu.org>
670
671         * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
672
673 2000-02-22  Nick Clifton  <nickc@cygnus.com>
674
675         * readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
676
677 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
678
679         From Brad Lucier <lucier@math.purdue.edu>:
680         * readelf.c (process_version_sections): Add casts to make sure
681         argument to %* is an int.
682         (process_mips_specific): Add casts to make printf arguments match
683         format.
684
685 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
686
687         * objdump.c (dump_section_header): Change `opb' to unsigned.
688         (find_symbol_for_address): Same here.
689         (disassemble_data): And here.  Change `addr_offset',
690         `stop_offset', `nextstop_offset' to unsigned long.
691         (dump_data): Change opb to unsigned.
692
693 2000-02-18  Frank Ch. Eigler  <fche@redhat.com>
694
695         * resrc.c: Remove unmatched #if for cygwin.
696
697 2000-02-14  Fernando Nasser  <fnasser@totem.to.cygnus.com>
698
699         * binutils.texi: Document the change of flavor name from atpcs-special
700         to special-atpcs to prevent name conflict in gdb.
701
702 2000-02-08  Timothy Wall  <twall@redhat.com>
703
704         * objdump.c (show_line): Fix bug preventing printing of the very
705         first line (line zero) of a file when interlisting source and
706         assembly.  Added option to print entire context from start of file
707         when the first line from that file is encountered.
708
709 2000-02-03  Timothy Wall <twall@redhat.com>
710
711         * binutils/objdump.c (dump_section_header, find_symbol_for_address,
712         show_line, disassemble_bytes, disassemble_data, dump_data):
713         distinguish between octets and bytes.
714         
715 2000-01-27  Thomas de Lellis  <tdel@windriver.com>
716
717         * nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
718         check to unresolved symbols.
719         (print_symbol_info_sysv):  Ditto.
720         (print_symbol_info_posix):  Ditto.
721
722         * binutils.texi: Document new 'V' symclass flag for nm.
723
724 2000-01-27  Nick Clifton  <nickc@redhat.com>
725
726         * binutils.texi (objdump): Document new ARM specific
727         disassembler options.
728
729         * objdump.c (usage): Call disassembler_usage().
730
731 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
732
733         * readelf.c (get_dynamic_flags): Return buff.
734         (process_dynamic_segment): Don't pass error strings to printf
735         as format arg.
736         (read_and_display_attr): Use lx and ld to print longs.
737         (process_corefile_note_segment): Cast bfd_vma to unsigned long
738         before printing.
739         Update copyright.
740
741 2000-01-17  Nick Clifton  <nickc@cygnus.com>
742
743         * readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
744
745 2000-01-15  Alan Modra  <alan@spri.levels.unisa.edu.au>
746
747         * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
748         false.
749         (debug_tag_type): Here too.
750         * ieee.c (ieee_builtin_type): And here.
751         * stabs.c (parse_stab_type, parse_stab_array_type): And here.
752
753 2000-01-13  Nick Clifton  <nickc@cygnus.com>
754
755         * readelf.c (get_machine_name): Change EM_S370 to return "IBM
756         System/370".
757
758 2000-01-11  Nick Clifton  <nickc@cygnus.com>
759
760         * readelf.c (get_dynamic_type): Remove DT_ENCODING.
761
762 2000-01-10  Nick Clifton  <nickc@cygnus.com>
763
764         * readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
765
766 2000-01-07  Mumit Khan  <khan@xraylith.wisc.edu>
767
768         * windres.c (long_options): Add --use-temp-file and 
769         --no-use-temp-file options.
770         (usage): Document.
771         (main): Handle.
772         
773         * windres.h: Update read_rc_file prototype.
774         
775         * resrc.c (cpp_temp_file): New static variable.
776         (istream_type): New static variable.
777         (close_pipe): Delete function.
778         (run_cmd): New static function.
779         (open_input_stream): New static function.
780         (close_input_stream): New static function.
781         (look_for_default): Handle DOS directory separator. Use 
782         open_input_stream instead of popen.
783         (read_rc_file): Likewise.
784         
785         * binutils.texi: Document --use-temp-file, --no-use-temp-file
786         options. 
787
788 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
789  
790         * dlltool.c (create_compat_implib): New variable.
791         (gen_exp_file): Use.
792         (make_one_lib_file): Use.
793         (long_options): Add --compat-implib option.
794         (usage): Handle.
795         (main): Handle.
796
797         * dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
798         (main): Use. Don't look for "32" in cygwin and mingw target names.
799
800 2000-01-03  Nick Clifton  <nickc@cygnus.com>
801
802         * binutils.texi: Document new, ARM specific disassembler
803           command line switch "-M force-thumb".
804
805 1999-12-28  Nick Clifton  <nickc@cygnus.com>
806
807         * readelf.c: Update with new constants added by Oct 4, 1999
808         ELF ABI draft.
809         (guess_is_rela): Add new machine codes, but leave
810         rel type undetermined.
811         (get_machine_name): Add new machine codes.
812         (get_section_type_name): Add new section types.
813         (get_elf_section_flags): New function: Decode section flags.
814         (process_section_headers): Call get_elf_section_flags() in
815         order to decode flags in section header.
816         (get_dynamic_flags): New function: Decode dynamic section
817         flags.
818         (process_dynamic_section): Display flags (if present).
819         (get_symbol_type): Add STT_COMMON.
820         (get_symbol_visibility): New function: Decode a symbol's
821         visibility.
822         (process_symbol_table): Call get_symbol_visibility().
823         (get_note_type): Add NT_PRXFPREGS.
824
825 1999-12-26  Ian Lance Taylor  <ian@zembu.com>
826
827         * strings.c (main): Correct handling of numeric argument.
828
829 1999-12-23  Andrew Haley  <aph@cygnus.com>
830
831         * dlltool.c (mtable): mcore how_jtab_roff is 4 bytes into the
832         jtab; was 8.
833
834 1999-12-17  Nick Clifton  <nickc@cygnus.com>
835
836         * dlltool.c (mtable): Stop compile time warnings about missing
837         initialisers.
838         (yyerror): Stop compile time warnings about unused paramater.
839         (INIT_SEC_DATA): New macro: initialise an entry in the secdata
840         array.
841         (secdata): Stop ccompile time warnings about uninitialised
842         fields.
843         (dtab): Stop compile time warnings about unused parameter.
844         (long_options): Stop compile time warning about missing
845         initialiser. 
846
847 1999-12-10  Nick Clifton  <nickc@cygnus.com>
848
849         * readelf.c (print_vma): Support native 64bit ELF systems.
850
851 1999-12-09  Nick Clifton  <nickc@cygnus.com>
852
853         * dlltool.c (mtable): Add epoc-arm specific entry.
854         Make default arm entry pass -mpacs-26 to assembler.
855         (flush_page): Do not mangle null entries.
856         
857 1999-12-07  H . J . Lu  hjl@valinux.com
858
859         * readelf.c: Fix compile time warnings.  Support more than 999
860         symbols.
861
862 1999-12-03  Nick Clifton  <nickc@cygnus.com>
863
864         * readelf.c (enum print_mode): New type.
865         (print_vma): New function.
866         (dump_relocations): Use print_vma to display bfd_vma values.
867         (process_file_header): Use print_vma to display bfd_vma values.
868         (process_program_headers): Use print_vma to display bfd_vma values.
869         (process_section_headers): Use print_vma to display bfd_vma values.
870         (dynamic_segment_parisc_val): Use print_vma to display bfd_vma values.
871         (process_dynamic_segment): Use print_vma to display bfd_vma values.
872         (process_symbol_table): Use print_vma to display bfd_vma values.
873         (process_mips_specific): Use print_vma to display bfd_vma values.
874
875 1999-11-25  Fred Fish  <fnf@cygnus.com>
876
877         * readelf.c (process_note): Change arg from Elf_External_Note
878         to Elf32_Internal_Note, which also turns the function body
879         into little more than a call to printf.
880         (process_corefile_note_segment):  Substantially rewritten
881         to properly handle case where target and host are different
882         endianness, handle note sections with padding, and add some
883         cruft to handle notes with unterminated name data.
884
885 1999-11-22  Nick Clifton  <nickc@cygnus.com>
886
887         * objcopy.c (copy_usage): Reformat.
888         (strip_usage): Reformat.
889
890 1999-11-21  Nick Clifton  <nickc@cygnus.com>
891
892         * objdump.c (usage): Overhaul output:  One line per switch.
893         Textual description of each switch.  Distinguish between
894         optional switches and required switches.
895         (long_options): Add 'g', 'G' and 'z' short options.
896         (main): Distinguish between optional switches and required
897         switches.
898
899         * binutils.texi: Add -g -G and -z short options for
900         --debugging, --stabs and --disassemble-zeroes.
901
902 1999-11-03  Nick Clifton  <nickc@cygnus.com>
903
904         * dlltool.c (flush_page): Clip short values to prevent warnings
905         from the assembler.
906         Change default mcore machine name to 'mcore-le' and rename
907         big-endian version to 'mcore-be'. 
908
909 1999-10-27  Fred Fish  <fnf@cygnus.com>
910
911         * objdump.c (display_bfd): Break into two functions.  The
912         actual dumping code moves to dump_bfd.  If bfd is not
913         unambiguously recognized as a bfd_object, attempt to dump
914         it as a bfd_core.
915         (dump_bfd): New function.
916
917 1999-10-26  Nick Clifton  <nickc@cygnus.com>
918
919         * dlltool.c (assemble_file): Remove spurious test of exp_name.
920
921 1999-10-22  Nick Clifton  <nickc@cygnus.com>
922
923         * dlltool.c (struct mac): Add new field 'how_default_as_switches'.
924         (mtable): Initialise new field.  Some machines have a non empty
925         string for this field.
926         (HOW_BFD_TARGET): Undefine and replace with...
927         (HOW_BFD_READ_TARGET): New macro: bfd target to use when opening a
928         file for reading.  This is set to 0 so that any recognisable bfd
929         format can be read.
930         (HOW_BFD_WRITE_TARGET): New macro: bfd target to use when opening
931         a file for writing.  This is set to the target machine type.
932         (ASM_SWITCHES): New macro: default switches to use when assembling
933         a file.
934         (assemble_file): New function: Assemble a source file into a
935         destination object file.
936         (gen_exp_file): Use assemble_file to create the exp file.
937         (make_one_lib_file): Use assemble_file to create the lib file.
938         Open output file use HOW_BFD_WRITE_TARGET and input files using
939         HOW_BFD_READ_TARGET.
940         (make_head): Use assemble_file to create the head file.
941         (make_tail): Use assemble_file to create the tail file.
942         (gen_lib_file): Open output file use HOW_BFD_WRITE_TARGET.
943
944 1999-10-15  Ian Lance Taylor  <ian@zembu.com>
945
946         * ar.c (normalize): Fix full_pathname code.
947
948 1999-10-08  Ben Elliston  <bje@cygnus.com>
949
950         * binutils.texi: Some rewording and clarifications.
951
952 1999-09-15  Ulrich Drepper  <drepper@cygnus.com>
953
954         * readelf.c (dynamic_segment_parisc_val): Print 0 for DLD_FLAGS if
955         the value is zero.
956         (process_symbol_table): Don't print histogram if hash table is empty.
957
958 1999-09-15  Ulrich Drepper  <drepper@cygnus.com>
959
960         * readelf.c (get_parisc_dynamic_type): Handle DT_HP_GST_* values.
961
962 1999-09-02  Ulrich Drepper  <drepper@cygnus.com>
963
964         * readelf.c (get_symbol_type): Add support for HPUX and PARISC
965         specific symbol types.
966
967         * readelf.c: Add HPUX and PARISC extensions to dynamic and program
968         header table printing.
969
970         * readelf.c (get_machine_flags): Add handling of PARISC.
971
972 1999-09-29  Mumit Khan  <khan@xraylith.wisc.edu>
973
974         * dlltool.c (scan_drectve_symbols): Handle type tags in exported
975         symbols.
976         (scan_filtered_symbols): Likewise.
977
978 1999-09-19  Ian Lance Taylor  <ian@zembu.com>
979
980         * resrc.c (write_rc_rcdata): Fix local variable shadowing
981         problem.  If RCDATA_BUFFER data can be read as strings, modify
982         code to print the strings as comments.
983         * resres.c: Add casts to avoid warnings.
984         (write_res_data, read_res_data): Don't put the program name in the
985         error message; fatal already puts it there.
986
987 1999-09-14  Michael Meissner  <meissner@cygnus.com>
988
989         * configure.in (Canonicalization of target names): Remove adding
990         ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
991         generates $ac_config_sub with a ${CONFIG_SHELL} already.
992         * configure: Regenerate.
993
994 1999-09-12  Ian Lance Taylor  <ian@zembu.com>
995
996         * ar.c (main): Clear output_file if we don't change the archive.
997         (delete_members, replace_members): Likewise.
998
999 1999-09-12  Donn Terry  <donn@interix.com>
1000
1001         * objdump.c (dump_headers): If wide_output, print Flags header.
1002
1003         * objdump.c (dump_section_header): Print any comdat information.
1004
1005         * objcopy.c (parse_flags): Handle "noload", "debug", and "share".
1006         * binutils.texi, objcopy.1: Document new flags.
1007
1008         * ar.c (counted_name_mode): New static variable.
1009         (counted_name_counter): New static variable.
1010         (map_over_members): Handle counted mode.
1011         (usage): Mention N modifier.
1012         (main): Handle N modifier.
1013         (delete_members): Handle counted mode.
1014         * binutils.texi, ar.1: Document N modifier.
1015
1016         * ar.c (print_contents): Change printing of member name for
1017         POSIX.2 conformance.
1018
1019         * ar.c (output_filename): Make const.
1020         (open_inarch): If creating a new empty archive, set
1021         output_filename.
1022
1023 1999-09-12  Ian Lance Taylor  <ian@zembu.com>
1024
1025         * ar.c (full_pathname): New static variable.
1026         (map_over_members): Call normalize on command line parameter.
1027         (usage): Mention P modifier.
1028         (normalize): If full_pathname is true, don't do anything.
1029         (main): Accept P modifier.
1030         (delete_members): Call normalize on command line parameter.
1031         * binutils.texi, ar.1: Document P modifier.
1032
1033 1999-09-09  Andreas Schwab  <schwab@suse.de>
1034
1035         * binutils.texi: Add info dir entries for all programs described
1036         here.  Fix arguments of @var to not contain punctuation.
1037
1038 1999-09-06  Donn Terry  <donn@interix.com>
1039
1040         * nm.c (print_symbol_info_bsd): Check for 'w' as well as 'U'.
1041         (print_symbol_info_sysv): Likewise.
1042         (print_symbol_info_posix): Likewise.
1043
1044 1999-09-04  Steve Chamberlain  <sac@pobox.com>
1045
1046         * readelf.c: Include "elf/pj.h".
1047         (dump_relocations): Handle EM_PJ.
1048         (get_machine_name): Likewise.
1049         (get_machine_flags): Likewise.
1050
1051 1999-08-31  Scott Bambrough <scottb@netwinder.org>
1052
1053         * readelf.c (get_note_type): New function:  Decode the e_type
1054         value of a note.
1055         (process_note): New function: Display the contents of a core note.
1056         (process_corefile_note_segment): New function.
1057         (process_corefile_note_segments): New function.
1058         (process_corefile_contents): New function.
1059         (process_file): Add call to process_corefile_contents.
1060         (parse_args): Add parsing of -n/--notes command line switch.
1061         (usage): Document new command line switch.
1062
1063         * binutils.texi: Documemnt new command line switch to readelf.
1064
1065 1999-08-31  Ian Lance Taylor  <ian@zembu.com>
1066
1067         * binutils.texi (Bug Reporting): Clarify that large files should
1068         not be sent to bug-gnu-utils.
1069
1070 1999-08-28  Stephane Carrez  <stcarrez@worldnet.fr>
1071
1072         * readelf.c (process_extended_line_op): New parameter pointer_size,
1073         read the address according to pointer_size.
1074         (debug_line_pointer_size): New global to indicate the
1075         size of address in .debug_line section.
1076         (debug_displays, prescan_debug_info): Prescan the .debug_info section
1077         to record the size of address in `debug_line_pointer_size'.
1078         (process_section_contents): Before dumping any section, execute
1079         the pre-scan operation defined for some debug sections.
1080
1081 1999-08-27  Jim Wilson  <wilson@cygnus.com>
1082
1083         * readelf.c (display_debug_lines): Use i-1 not i in standard_opcodes
1084         access.
1085         (display_debug_aranges): New local excess.  Use for calculating padding
1086         and add that into ranges.  Break from loop only if length is also 0.
1087
1088 1999-08-27  Jim Wilson  <wilson@cygnus.com>
1089
1090         * readelf.c (display_debug_lines, case DW_LNS_const_add_pc): Multiply
1091         adv by info.li_min_insn_length.
1092
1093 1999-08-26  Jakub Jelinek  <jj@ultra.linux.cz>
1094
1095         * readelf.c (get_sparc64_dynamic_type): New function.
1096         (get_dynamic_type): Use it.
1097
1098 1999-08-26  Jim Wilson  <wilson@cygnus.com>
1099
1100         * readelf.c (display_debug_lines, case default): Change second line
1101         setting adv to use = not +=.
1102
1103 1999-08-19  Nick Clifton  <nickc@cygnus.com>
1104
1105         * dlltool.c: Added more examples to the comment at the start.
1106
1107 1999-08-18  Nick Clifton  <nickc@cygnus.com>
1108
1109         * dlltool.c (make_head): Only emit interworking directive if
1110         necessary.
1111
1112 Thu Jul 15 22:44:21 1999  Hans-Peter Nilsson  <hp@bitrange.com>
1113
1114         * readelf.c (process_abbrev_section): Handle standard-conforming
1115         single zero at the end of the section.
1116
1117 1999-08-09  Ian Lance Taylor  <ian@zembu.com>
1118
1119         * objdump.c (exit_status): New static variable.
1120         (nonfatal): New static function.
1121         (disassemble_data): Set exit_status on error.
1122         (read_section_stabs): Likewise.
1123         (display_bfd): Likewise.  Call nonfatal rather than bfd_nonfatal.
1124         (display_file): Call nonfatal rather than bfd_nonfatal.
1125         (display_target_list, display_info_table): Likewise.
1126         (main): Return exit_status rather than 0.
1127
1128 1999-08-08  Ian Lance Taylor  <ian@zembu.com>
1129
1130         * objdump.c (dump_section_header): Update for renaming of
1131         SEC_SHORT to SEC_SMALL_DATA.  Print SEC_SHARED flag.
1132
1133         From Eli Zaretskii <eliz@gnu.org>:
1134         * binutils.texi: Document cxxfilt as MS-DOS name for c++filt.
1135
1136         * configure.in: Define and substitute DEMANGLER_NAME.
1137         * Makefile.am (DEMANGLER_PROG): Set to cxxfilt.
1138         (man_MANS): Use DEMANGLER_NAME rather than DEMANGLER_PROG.
1139         (bin_PROGRAMS): Remove $(DEMANGLER_PROG).
1140         (noinst_PROGRAMS): Add $(DEMANGLER_PROG).
1141         (cxxfilt_SOURCES): Rename from c__filt_SOURCES.
1142         (cxxfilt_LDADD): Rename from c__filt_LDADD.
1143         ($(DEMANGLER_NAME).1): Rename from $(DEMANGLER_PROG).1.  Use
1144         DEMANGLER_NAME rather than DEMANGLER_PROG in substitution.
1145         (MOSTLYCLEANFILES): Use DEMANGLER_NAME rather than
1146         DEMANGLER_PROG.
1147         (install-exec-local): When installing noinst_PROGRAMS, change
1148         cxxfilt to $(DEMANGLER_NAME).
1149         * configure, Makefile.in: Rebuild.
1150
1151         * Makefile.am: Rename .dep* files to DEP*.  Change DEP variable to
1152         MKDEP.
1153         * Makefile.in: Rebuild.
1154
1155 1999-08-05  Donn Terry  <donn@interix.com>
1156
1157         * Makefile.am (YACC): If bison is not in the source tree, use
1158         @YACC@ rather than bison -y.
1159         (LEX): If flex is not in the source tree, use @LEX@ rather than
1160         flex.
1161         * configure.in: Build dlltool for i[3-6]86-*-interix.
1162         * Makefile.in, configure: Rebuild.
1163
1164 1999-07-21  Ian Lance Taylor  <ian@zembu.com>
1165
1166         From Mark Elbrecht:
1167         * configure.bat: Remove; obsolete.
1168
1169 1999-07-16  Jakub Jelinek  <jj@ultra.linux.cz>
1170
1171         * readelf.c (get_machine_flags): Print EF_SPARC_SUN_US3.
1172
1173 1999-07-15  Ian Lance Taylor  <ian@zembu.com>
1174
1175         * configure.in: Bump version number to 2.9.5.
1176         * configure: Rebuild.
1177
1178 1999-07-14  Richard Henderson  <rth@cygnus.com>
1179
1180         * objdump.c (dump_section_header): Print SEC_SHORT.
1181
1182 1999-07-11  Ian Lance Taylor  <ian@zembu.com>
1183
1184         * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
1185         as appropriate.  Add variable initializations.  Add casts.
1186         * objdump.c (disassemble_bytes): Change j to bfd_vma.
1187         * readelf.c (process_syminfo): Change i to unsigned int.
1188         (display_debug_info): Change abbrev_number to unsigned long.
1189         (process_mips_specific): Change fcnt to size_t.
1190
1191 1999-07-09  Nick Clifton  <nickc@cygnus.com>
1192
1193         * readelf.c: Only support decoding 64bit ELF files if the compiler
1194         supports a 64 bit data type.
1195         Add -I equivalent for --histogram.
1196         Add -A command-line option to display architecture specific information.
1197
1198 1999-07-08  Jakub Jelinek  <jj@ultra.linux.cz>
1199
1200         * readelf.c (guess_is_rela): Sparcv9 and v8plus use rela.
1201         (dump_relocations): Use ELF64_R_TYPE_ID for Sparc, for R_SPARC_OLO10
1202         print the secondary addend.
1203         (get_machine_flags): Print Sparc machine flags.
1204         (get_symbol_type): Print STT_REGISTER.
1205
1206 1999-07-08  Ian Lance Taylor  <ian@zembu.com>
1207
1208         * stabs.c (parse_stab_type): Fix handling of template names with
1209         template parameters containing `::'.
1210         (stab_demangle_type): Handle a qualified name in a pointer to
1211         member.
1212
1213 1999-06-23  Ian Lance Taylor  <ian@zembu.com>
1214
1215         * Makefile.am (dlltool_SOURCES): Add dyn-string.c.
1216         * Makefile.in: Rebuild.
1217
1218 1999-06-23  Mumit Khan  <khan@xraylith.wisc.edu>
1219
1220         * configure.in (HAVE_EXECUTABLE_SUFFIX): Define.
1221         * dlltool.c (look_for_prog): Use HAVE_EXECUTABLE_SUFFIX.
1222         * dllwrap.c (look_for_prog): Likewise.
1223         * resrc.c (look_for_default): Likewise.
1224         * configure, config.in: Rebuild.
1225
1226 1999-06-22  Ian Lance Taylor  <ian@zembu.com>
1227
1228         Based on patches from Mumit Khan <khan@xraylith.wisc.EDU>:
1229         * configure.in: Define EXECUTABLE_SUFFIX.
1230         * dlltool.c: Include "dyn-string.h".  Include <stdarg.h> based on
1231         ANSI_PROTOTYPES, not __STDC__.
1232         (outfile): Remove.
1233         (gen_exp_file): Change uses of outfile to use alloca.
1234         (make_one_lib_file, make_head, make_tail): Likewise.
1235         (gen_lib_file): Likewise.
1236         (look_for_prog): New static function.
1237         (deduce_name): Rewrite to use look_for_prog.
1238         (mcore_elf_gen_out_file): Use dyn_string_t rather than outfile.
1239         * dllwrap.c: Don't include <stdio.h>, <errno.h>, <string.h>,
1240         <stdlib.h>, or <unistd.h>.  Include <sys/stat.h> and either
1241         <stdarg.h> or <varargs.h>.
1242         (driver_name): Initialize to NULL, not "gcc".
1243         (dlltool_name): Initialize to NULL, not "dlltool".
1244         (display, inform, look_for_prog, deduce_name): New static
1245         functions.
1246         (usage): Mention -mno-cygwin.
1247         (OPTION_MNO_CYGWIN): Define.
1248         (main): Handle -mno-cygwin.  Deduce driver_name and dlltool_name.
1249         * resrc.c (look_for_default): Make static.  Remove unused local
1250         path.  Check using EXECUTABLE_SUFFIX.
1251         (read_rc_file): Allocate enough space to hold EXECUTABLE_SUFFIX.
1252         * Makefile.am: Rebuild dependencies.
1253         (dllwrap_LDADD): Add $(INTLLIBS).
1254         * configure, Makefile.in, config.in: Rebuild.
1255
1256 Mon Jun 21 16:49:11 1999  Jeffrey A Law  (law@cygnus.com)
1257
1258         * readelf.c (dump_relocations): Use elf_hppa_reloc_type instead of
1259         elf32_hppa_reloc_type.
1260
1261 1999-06-17  Nick Clifton  <nickc@cygnus.com>
1262
1263         * dlltool.c (mcore_elf_gen_out_file): Link object files with the
1264         .exp file, not the .lib file.
1265
1266 Fri Jun 18 20:17:51 1999  Mumit Khan  <khan@xraylith.wisc.edu>
1267
1268         * deflex.l: Accept single-character symbol names.
1269
1270 1999-06-16  Nick Clifton  <nickc@cygnus.com>
1271
1272         * readelf.c (get_symbol_type): Detect ARM symbols typed as Thumb
1273         functions.
1274
1275 1999-06-14  Nick Clifton  <nickc@cygnus.com>
1276
1277         * objdump.c (disassembler_options): New variable.
1278         (usage): Document new -M/--disassembler-options option.
1279         (long_options): Add --disassembler-options.
1280         (disassemble_data): Initialise disassembler_options field of
1281         disassembler_info structure.
1282         (main): Add parsing of -M option.
1283
1284         * binutils.texi: Document new command line switch to objdump.
1285
1286         * NEWS: Describe new command line switch to objdump.
1287
1288
1289 Mon Jun 14 10:27:54 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1290
1291         * binutils.texi: Fix typos.
1292
1293 1999-06-13  Ian Lance Taylor  <ian@zembu.com>
1294
1295         * objdump.c (disassemble_bytes): If the disassembler returns an
1296         error, print out anything it may have printed to the buffer.  From
1297         H.J. Lu <hjl@gnu.org>.
1298
1299         * defparse.y (explist): Remove separate expline to eliminate
1300         shift/reduce conflict.
1301
1302         From Kai-Uwe Rommel <rommel@ars.de>:
1303         * defparse.y: Add tokens NONSHARED, SINGLE, MULTIPLE,
1304         INITINSTANCE, INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
1305         (command): Add option_list after LIBRARY.
1306         (attr): Accept and ignore NONSHARED, SINGLE, and MULTIPLE.
1307         (option_list, option): New nonterminals.
1308         * deflex.l: Recognize NONSHARED, SINGLE, MULTIPLE, INITINSTANCE,
1309         INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
1310
1311 1999-06-12  Ian Lance Taylor  <ian@zembu.com>
1312
1313         * ar.c (O_BINARY): Define as 0 if not defined.
1314         (ranlib_touch): Open file with O_BINARY.
1315
1316         * rename.c (O_BINARY): Define as 0 if not defined.
1317         (simple_copy): Open files with O_BINARY.
1318
1319         Based on patch from H. Peter Anvin <hpa@transmeta.com>:
1320         * objcopy.c (struct section_list): Add copy field.
1321         (sections_copied): New static variable.
1322         (copy_options): Add "only-section".
1323         (copy_usage): Mention -j and --only-section.
1324         (find_section_list): Initialize copy field.
1325         (is_strip_section): Check for copying sections.
1326         (copy_object): Check sections_copied when calling filter_symbols.
1327         (setup_section): Check for copying sections.
1328         (copy_section): Likewise.
1329         (copy_main): Handle -j/--only-section.
1330         * binutils.texi, objcopy.1: Document -j/--only-section.
1331
1332         * configure.in: If frexp is not available, check in -lm.
1333         * configure: Rebuild.
1334
1335         * readelf.c (get_elf_class): Use correct printf format for type.
1336         (get_data_encoding): Likewise.
1337         (get_osabi_name): Likewise.
1338         (process_file_header): Don't pass an extra argument to printf.
1339         (process_dynamic_segment): Cast dynamic_size to long before
1340         printing.
1341         (decode_location_expression): Cast byte_get to long before
1342         printing.
1343
1344 Wed Jun  9 11:40:16 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1345
1346         * readelf.c (dump_section): Cast values from byte_get to
1347         [unsigned] long for printing, in case it is wider than long.
1348         (display_block): Likewise.
1349         (read_and_display_attr): Likewise.
1350         (decode_location_expression): Likewise.  Don't depend on
1351         evaluation order.
1352
1353 Mon Jun  7 12:14:57 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1354
1355         * windres.c (usage): Fix typo.
1356
1357 1999-06-04  Nick Clifton  <nickc@cygnus.com>
1358
1359         * readelf.c: Use 64bit wide fields in internal strcutures even if
1360         targetting a 32bit architecture.
1361         (dump_relocations): Take a new parameter - the number of symbols
1362         in the symbol table.
1363
1364 1999-06-04  Nick Clifton  <nickc@cygnus.com>
1365
1366         * readelf.c: Add support for 64bit ELF files.
1367
1368 1999-06-03  Nick Clifton  <nickc@cygnus.com>
1369
1370         * dlltool.c (mcore_elf_gen_out_file): Use constants for temporary
1371         file names.
1372
1373 Wed Jun  2 12:34:36 1999  Richard Henderson  <rth@cygnus.com>
1374
1375         * dlltool.c (gen_exp_file): Revert 19990411 change.
1376
1377 Mon May 31 09:56:22 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1378
1379         * readelf.c (process_relocs): Determine type of reloc from
1380         DT_PLTREL and from section type.
1381
1382 1999-05-29  Nick Clifton  <nickc@cygnus.com>
1383
1384         * readelf.c (get_elf_class): Display unknown class number.
1385         (get_data_encoding): Display unknown encoding number.
1386         (get_osabi_name): Display unknown ABI number.
1387         (process_file_header): Display unknown version number.
1388
1389 1999-05-29  Nick Clifton  <nickc@cygnus.com>
1390
1391         * readelf.c (dump_relocations): Fix typo.
1392
1393 1999-05-28  Nick Clifton  <nickc@cygnus.com>
1394
1395         * readelf.c (dump_relocations): Add extra parameter: is_rela to
1396         specify the kind of relocations to be dumped.  Call guess_is_rela
1397         if this parameter has a value of UNKNOWN.
1398         (guess_is_rela): New function:  Guess the kind of reloc being used
1399         baced on the machine number.
1400         (process_relocs): Determine type of reloc before calling
1401         dump_relocations.
1402
1403 1999-05-28  Ian Lance Taylor  <ian@zembu.com>
1404
1405         * readelf.c: Include "elf/i960.h".
1406         (dump_relocations): Handle EM_960.
1407
1408 Thu May 27 11:58:33 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1409
1410         * objcopy.c (copy_archive): Preserve dates of archive members if
1411         requested.
1412
1413         * readelf.c (dump_relocations): Always print the addend on RELA
1414         systems even if there is no symbol.
1415         (process_program_headers): Reset dynamic_size before looping
1416         through the program headers.
1417         (process_version_sections): Cast sh_offset to unsigned long for
1418         printing in case bfd_vma is wider.
1419         (process_symbol_table): Use get_symbol_index_type when printing
1420         st_shndx.
1421
1422 1999-05-17  DJ Delorie  <dj@cygnus.com>
1423
1424         * windres.c: add verbose option
1425         (main): process verbose option
1426         * resrc.c (look_for_default): new.  Look for the default
1427         preprocessor in a given location.
1428         (read_rc_file): for foo/bar-windres, look for foo/bar-gcc,
1429         foo/gcc (in case of foo/windres), and then gcc (the old default).
1430
1431 1999-05-16  Nick Clifton  <nickc@cygnus.com>
1432
1433         * dlltool.c (deduce_name): New function: Deduce name of program to
1434         run.
1435         (mcore_elf_out_file): New variable: Name of mcore-elf output file.
1436         (mcore_elf_linker): New variable: Name of linker to use.
1437         (mcore_elf_linker_flags): New variable: Linker flags to pass.
1438         (scan_obj_file): Cache filenames if necessary.
1439         (usage): Document new command line options.
1440         (main): Support new command line options: -M (generate an
1441         mcore-elf output file) -L (name of linker to use) -F (flags to
1442         pass to linker).
1443         (mcore_elf_cache_filename): Store a filename in a cache.
1444         (mcore_elf_gen_out_file): New function: Generate an output file
1445         per the mcore-elf spec.
1446
1447 1999-05-15  Nick Clifton  <nickc@cygnus.com>
1448
1449         * configure.in (BUILD_MISC): Build dlltool for mcore
1450         * configure: Regenerate.
1451         * dlltool.c: Update example in comment.
1452         (DLLTOOL_MCORE): Define.
1453         (DLLTOOL_MCORE_ELF): Define.
1454         (DRECTVE_SECTION_NAME): Define.
1455         (mcore_be_jtab, mcore_le_jtab): Binary for performing an mcore
1456         jump to address.
1457         (mtable): Add entries for mcore variants.
1458         (rvaafter, rvabefore, asm_prefix): Add mcore suppport.
1459         (scan_drectve_symbols): Use DRECTVE_SECTION_NAME.
1460         (make_head, make_tail): Cope if file cannot be created.
1461         (usage): Improve layout.
1462
1463 1999-05-13  DJ Delorie  <dj@cygnus.com>
1464
1465         * rclex.l: add code to suppress certain output from cpp, replace
1466         all returns with MAYBE_RETURN
1467         (MAYBE_RETURN): new, implement the suppression by returning
1468         IGNORED_TOKEN as needed.
1469         (cpp_line): remember which file we're in, mark data from included
1470         *.h files for suppression.
1471         * rcparse.y (input): allow IGNORED_TOKEN outside of known constructs
1472
1473 1999-05-10  DJ Delorie  <dj@cygnus.com>
1474
1475         * windres.c (quot): Quote shell metacharacters in a string
1476         (main): quote parameters to cpp that might have metacharacters in
1477         them.  Allow -D as an alias for --define to allow for sharing make
1478         macros with gcc.
1479
1480         * objdump.c (dump_reloc_set): don't core if howto->name is NULL
1481
1482         * Makefile.am: Give rescoff.c a cpu-specific -D so it can set
1483         the correct BFD.
1484         * Makefile.in: ditto
1485         * rescoff.c (write_coff_file): Set the correct BFD
1486
1487 1999-05-06  Ian Lance Taylor  <ian@zembu.com>
1488
1489         * rename.c (smart_rename): Fix test of whether file exists.
1490
1491 1999-05-06  Nick Clifton  <nickc@cygnus.com>
1492
1493         * objdump.c (disassemble_data): Set display_endian based on target
1494         endianism.
1495
1496 1999-05-05  Catherine Moore  <clm@cygnus.com>
1497
1498         * dlltool.c (interwork): Remove.
1499         (arm_interwork_jtab): Use bx insn.
1500         (thumb_jtab): Likewise.
1501         (MARM_INTERWORK): New machine type.
1502         (rvaafter): Handle it.
1503         (rvabefore) Likewise.
1504         (asm_prefix): Likewise.
1505         (gen_exp_type): Check machine type instead of
1506         interwork flag.
1507         (make_one_lib_file): Likewise.
1508         (make_head): Likewise.
1509         (make_tail): Likewise.
1510         (usage): Update machine types.
1511         (main): Remove -interwork support.
1512
1513 1999-05-05  Catherine Moore  <clm@cygnus.com>
1514
1515         * readelf.c (get_machine_flags):  Check for EF_CPU32.
1516         (get_data_encoding): Fix typo.
1517
1518 1999-04-26  Tom Tromey  <tromey@cygnus.com>
1519
1520         * aclocal.m4, configure: Updated for new version of libtool.
1521
1522 1999-04-18  Ian Lance Taylor  <ian@zembu.com>
1523
1524         * stabs.c (parse_stab_range_type): Correct parenthesization in
1525         BFD64 case.
1526
1527         * readelf.c (get_section_type_name): Use correct types in printf
1528         formats.
1529         (process_relocs): Likewise.
1530         (process_dynamic_segment): Likewise.
1531         (process_symbol_table): Likewise.
1532         (process_mips_specific): Likewise.
1533
1534 Tue Apr 13 21:22:00 1999  Catherine Moore  <clm@cygnus.com>
1535
1536         * dlltool.c (make_one_lib_file): Mark thumb functions as
1537         C_THUMBEXTFUNC.
1538
1539 1999-04-11  Richard Henderson  <rth@cygnus.com>
1540
1541         * bucomm.h (environ): Declare it, if needed.
1542         (alloca) [C_ALLOCA]: Don't use gcc's builtin or <alloca.h>.
1543         * configure.in (environ): Detect declaration.
1544         * nm.c (main): Don't declare environ.
1545         * configure, config.in: Rebuild.
1546
1547         * dlltool.c (gen_exp_file): Pad out the .reloc section to a
1548         32-byte boundary with dummy relocations, to make the BeOS loader
1549         happy.  Patch from Bob Manson <manson@charmed.cygnus.com>.
1550
1551 1999-04-08  Tom Tromey  <tromey@cygnus.com>
1552
1553         * binutils.texi (c++filt): Updated for -j/--java, and hp/edg
1554         formats.
1555
1556 1999-04-08  Nick Clifton  <nickc@cygnus.com>
1557
1558         * readelf.c: Add ability to decode new constants found in April 25
1559         1998 Draft of System V ABI spec.
1560
1561 1999-04-06  Ian Lance Taylor  <ian@zembu.com>
1562
1563         * bucomm.h (LC_MESSAGES): Never define.
1564         * addr2line.c (main): Don't pass LC_MESSAGES to setlocale if the
1565         system does not define it.
1566         * ar.c (main): Likewise.
1567         * coffdump.c (main): Likewise.
1568         * dlltool.c (main): Likewise.
1569         * nlmconv.c (main): Likewise.
1570         * nm.c (main): Likewise.
1571         * objcopy.c (main): Likewise.
1572         * objdump.c (main): Likewise.
1573         * size.c (main): Likewise.
1574         * srconv.c (main): Likewise.
1575         * strings.c (main): Likewise.
1576         * sysdump.c (main): Likewise.
1577         * windres.c (main): Likewise.
1578         * readelf.c (main): Call locale setting functions.
1579
1580 1999-04-05  Nick Clifton  <nickc@cygnus.com>
1581
1582         * readelf.c (decode_location_expression): Fix DW_OP_const8{s|u}
1583         decodes.
1584
1585 1999-04-04  Ian Lance Taylor  <ian@zembu.com>
1586
1587         * rename.c: New file, copied out of objcopy.c with a few changes.
1588         * bucomm.h (set_times, smart_rename): Declare.
1589         * ar.c: Don't include <utime.h>.
1590         (extract_file): Call set_times rather than utime.
1591         (write_archive): Call smart_rename rather than unlink and rename.
1592         * objcopy.c: Don't include <utime.h>.
1593         (simple_copy, smart_rename, set_times): Move to rename.c.
1594         (strip_main): Update smart_rename call for new parameter.
1595         (copy_main): Likewise.
1596         * Makefile.am: Rebuild dependencies.
1597         (CFILES): Add rename.c.
1598         (objcopy_SOURCES, strip_new_SOURCES): Add rename.c.
1599         (ar_SOURCES, ranlib_SOURCES): Add rename.c.
1600         * Makefile.in: Rebuild.
1601
1602         * Makefile.am: Rebuild dependencies.
1603         (EXTRA_PROGRAMS): Remove backslash which troubles current version
1604         of automake.
1605         * Makefile.in: Rebuild.
1606
1607         * dllwrap.c (main): Expect correct type in format string.
1608         * resres.c: Include "bfd.h", "bucomm.h", "libiberty.h", and
1609         <time.h>.  Don't include <stdio.h> and <errno.h>.
1610         (write_res_file): Remove unused locals e and i.
1611         (read_resource_entry): Remove unused locals rtype and n.
1612         (read_unistring): Remove unused local n.
1613
1614 1999-04-03  Ian Lance Taylor  <ian@zembu.com>
1615
1616         * arparse.y: Declare yylex.
1617         * objdump.c (disassemble_bytes): Initialize bytes.  Add comment
1618         for incorrect use of bytes.
1619         * readelf.c: Change many formats to avoid warnings.
1620
1621 1999-04-01  Nick Clifton  <nickc@cygnus.com>
1622
1623         * readelf.c (reset_state_machine): New function.  Resets the
1624         registers of the source line number state machine.
1625         (process_extended_line_op): Use state machine.
1626         (display_debug_lines): Use state machine.  Handle multiple line
1627         number blocks within the same section.
1628
1629 1999-03-29  Jason Merrill  <jason@yorick.cygnus.com>
1630
1631         * readelf.c (process_extended_line_op): end_sequence also resets
1632         the line number.
1633         (display_debug_lines): advance_line takes a signed operand.
1634         (read_and_display_attr): Print refs as <%x>, addresses as %#x,
1635         others as %d.  Handle other location expression attributes.
1636         (display_debug_info): Handle nesting.  Always print the offset.
1637
1638 1999-03-23  Ian Lance Taylor  <ian@zembu.com>
1639
1640         * objcopy.c (filter_symbols): When checking whether to keep a
1641         symbol, check the BFD section symbol for a symbol with
1642         BSF_SECTION_SYM set.
1643
1644 1999-03-10  Ulrich Drepper  <drepper@cygnus.com>
1645
1646         * readelf.c (process_dynamic_segment): Print new Solaris dynamic
1647         section entries.  Correct printing of DT_POSFLAG_1 and DT_FLAGS_1.
1648
1649 1999-03-10  Nick Clifton  <nickc@cygnus.com>
1650
1651         * readelf.c (request_dump): New function.
1652         Removed arbitary limit on the number of sections that can be
1653         dumped.
1654
1655 Wed Mar 10 15:10:14 1999  Stan Cox  <scox@cygnus.com>
1656
1657         * dlltool.c (make_one_lib_file): Use %05d to output the stub name so
1658         order in the import library is preserved.
1659
1660 1999-02-19  Nick Clifton  <nickc@cygnus.com>
1661
1662         * readelf.c: Fix compile time warings.
1663
1664 1999-02-17  DJ Delorie  <dj@cygnus.com>
1665
1666         * resbin.c (res_to_bin_versioninfo): Instead of entering a value
1667         length of zero in a version info string, enter the appropriate
1668         length.
1669
1670 Tue Feb 16 16:00:33 1999  Ian Lance Taylor  <ian@cygnus.com>
1671
1672         * configure.in: Require autoconf 2.13.  Change AM_PROG_INSTALL to
1673         AC_PROG_INSTALL.  Add comments for AC_DEFINE calls.
1674         * acconfig.h: Remove.
1675         * aclocal.m4: Rebuild.
1676         * configure: Rebuild.
1677         * Makefile.in: Rebuild.
1678         * config.in: Rebuild.
1679
1680 1999-02-02  Nick Clifton  <nickc@cygnus.com>
1681
1682         * readelf.c (read_and_display_attr): Add display of basic type
1683         encodings.
1684         (display_debug_aranges): New function: Display the contents of a
1685         .debug_aranges section.
1686         (display_debug_info): Dump tags found after compunit entry.
1687
1688         * binutils.texi: Fixed bug in readelf documentation.
1689
1690 Mon Feb  1 12:38:01 1999  Catherine Moore  <clm@cygnus.com>
1691
1692         * readelf.c (dump_relocations):  Handle EM_ARM as REL.
1693
1694 1999-01-29  Nick Clifton  <nickc@cygnus.com>
1695
1696         * readelf.c (process_symbol_table): Do not produce a histogram of
1697         bucket chains if none were found.
1698
1699 1999-01-27  Nick Clifton  <nickc@cygnus.com>
1700
1701         * version.c: Add 1999 copyright.
1702
1703         * binutils.texi (readelf): Document new command line options
1704         --debug-dump and --histogram.
1705
1706         * readelf.c: Add ability to display contents of some or all of the
1707         Dwarf2 debug sections.  {Work only partially completed}.
1708         (display_debug_section): New function.
1709         (display_debug_info): New function.
1710         (display_debug_not_supported): New function.
1711         (display_debug_line): New function.
1712         (display_debug_abbrev): New function.
1713         (process_abbrev_section): New function.
1714         (read_leb128): New function.
1715         (process_extended_line_op): New function.
1716         (get_TAG_name): New function.
1717         (get_AT_name): New function.
1718         (get_FORM_name): New function.
1719         (free_abbrevs): New function.
1720         (add_abbrev): New function.
1721         (add_abbrev_attr): New function.
1722         (read_and_display_attr): New function.
1723         (display_block): New function.
1724
1725 Thu Jan 14 23:36:11 1999  Jeffrey A Law  (law@cygnus.com)
1726
1727         * coffdump.c (xcalloc): Remove, in libiberty now.
1728         * srconv.c (xcalloc): Likewise.
1729         * sysdump.c (xcalloc): Likewise.
1730
1731 1999-01-14  Nick Clifton  <nickc@cygnus.com>
1732
1733         * readelf.c (process_section_headers): Omit trailing space at end
1734         of section header contents line.
1735
1736 Wed Dec 16 17:20:05 1998  Doug Evans  <devans@canuck.cygnus.com>
1737
1738         * aclocal.m4: Regenerate.
1739
1740 Mon Dec 14 12:55:36 1998  Jim Wilson  <wilson@cygnus.com>
1741
1742         * dllwrap.c: Include bfd.h and bucomm.h.  Move getopt.h include
1743         after libiberty.h include.
1744
1745 Tue Dec  8 16:29:43 1998  Ian Lance Taylor  <ian@cygnus.com>
1746
1747         * objdump.1: Fix typo (-d to -D).  From Nokubi Hirotaka
1748         <hnokubi@yyy.or.jp>.
1749
1750 Sun Dec  6 13:28:09 1998  Ian Lance Taylor  <ian@cygnus.com>
1751
1752         * objdump.c (SFILE): Add size field.
1753         (objdump_sprintf): Merge both versions into one.  Increase buffer
1754         size as needed to avoid overflow.
1755         (disassemble_bytes): Change buf from 1000 bytes to 50.  Change
1756         initialization and use of sfile to match changes to
1757         objdump_sprintf.
1758
1759         * strip.1: Fix typo (-V to -v).  From Issei Hirayama
1760         <iss@mail.wbs.or.jp>.
1761
1762 1998-12-03  Ulrich Drepper  <drepper@cygnus.com>
1763
1764         * readelf.c (process_dynamic_segment): Improve output format for
1765         various DT_* values.
1766
1767 1998-12-02  Ulrich Drepper  <drepper@cygnus.com>
1768
1769         * readelf.c (process_mips_specific): Print .conflict section
1770         content.
1771
1772         * readelf.c (process_mips_specific): Print l_flags in liblist in
1773         textual form.
1774
1775 1998-11-30  Nick Clifton  <nickc@cygnus.com>
1776
1777         * ar.c (extract_file): Add some paranoia checks for negatively
1778         sized files.
1779
1780 Tue Nov 24 09:39:24 1998  Nick Clifton  <nickc@cygnus.com>
1781
1782         * stabs.c (DIR_SEPARATOR): Define as '\\' if WIN32 is defined.
1783
1784 Tue Nov 17 10:25:26 1998  Nick Clifton  <nickc@cygnus.com>
1785
1786         * Makefile.in: Regenerate.
1787
1788 Mon Nov 16 19:17:23 1998  Dave Brolley  <brolley@cygnus.com>
1789
1790         * po/binutils.pot: Regenerate.
1791
1792 Mon Nov 16 10:18:53 1998  Nick Clifton  <nickc@cygnus.com>
1793
1794         * Makefile.am: Regernated dependencies.
1795         * aclocal.m4: Regenerated.
1796         * configure: Regenerated.
1797
1798 Sat Nov 14 14:50:56 1998  Ian Lance Taylor  <ian@cygnus.com>
1799
1800         * debug.c (debug_name_type): Correct return type from false to
1801         DEBUG_TYPE_NULL.
1802
1803 Sat Nov 14 14:48:21 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1804
1805         * objdump.c (disassemble_data): Skip over relocs below start
1806         address.
1807
1808 Tue Nov 10 15:31:52 1998  Nick Clifton  <nickc@cygnus.com>
1809
1810         * Makefile.am: Add dependency of readelf.c on elf/fr30.h
1811         * Makefile.in: Regenerate.
1812
1813 Wed Nov  4 16:25:55 1998  Nick Clifton  <nickc@cygnus.com>
1814
1815         * readelf.c: Add support for the FR30.
1816
1817 Mon Nov  2 14:59:33 1998  Geoffrey Noer  <noer@cygnus.com>
1818
1819         * configure.in: detect cygwin* instead of cygwin32*
1820         * configure: regenerate
1821
1822 Fri Oct 30 15:14:49 1998  Geoffrey Noer  <noer@cygnus.com>
1823
1824         * dllwrap.c: change all references to cygwin32_ to cygwin_,
1825         change Cygwin target def to CYGWIN.
1826
1827 Wed Oct 28 10:31:19 1998  Nick Clifton  <nickc@cygnus.com>
1828
1829         * objdump.c (disassemble_data): Replace 'unsigned long' with
1830         'bfd_vma'.
1831
1832 Tue Oct 27 14:39:00 1998  Nick Clifton  <nickc@cygnus.com>
1833
1834         * objdump.c (disassemble_bytes): Applied this patch from Philip
1835         Blundell <pb@nexus.co.uk>:  Make address variables unsigned to
1836         avoid problems when disassembling code at high-bit-set addresses.
1837
1838 Mon Oct 26 14:07:59 1998  Mumit Khan  <khan@xraylith.wisc.edu>
1839
1840         * dllwrap.c (strhash): New function.
1841         (main): Use it to supply image base if not supplied by user.
1842         (program_version): Up to 0.2.4.
1843
1844 Mon Oct 26 14:07:59 1998  Mumit Khan  <khan@xraylith.wisc.edu>
1845
1846         * dlltool.c (add_stdcall_alias): New global.
1847         (long_options): Add --add-stdcall-alias option.
1848         (main): Handle it.
1849         (scan_drectve_symbols): Add alias if --add-stdcall-alias is
1850         specified.
1851         (scan_filtered_symbols): Likewise.
1852         (gen_def_file): Output alias for stdcall syms if appropriate.
1853
1854         * binutils.texi (dlltool): Document --add-stdcall-alias option.
1855
1856         * dllwrap.c (long_options): Add --add-stdcall-alias option.
1857         (main): Handle it.
1858
1859         * defparse.y (opt_name): Allow "." in name.
1860         * dlltool.c (def_name): Set dll_name from NAME entry in def file.
1861         (def_library): Set dll_name from LIBRARY entry in def file.
1862
1863 Mon Oct 26 14:07:59 1998  Mumit Khan  <khan@xraylith.wisc.edu>
1864
1865         * dllwrap.c (long_options): --implib synonym for --output-lib.
1866         (main): Pass --export-all to dlltool only if specified.
1867         (program_version): Up to 0.2.3.
1868
1869 Mon Oct 26 14:07:59 1998  Mumit Khan  <khan@xraylith.wisc.edu>
1870
1871         * dllwrap.c (mybasename): New function.
1872         (main): Run dlltool to create export definition file and import
1873         library file if necessary.
1874         Change exp_file_name so that it's based on the dll name.
1875
1876 Sun Oct 25 10:37:45 1998  Mumit Khan  <khan@xraylith.wisc.edu>
1877
1878         * dlltool.c (scan_all_symbols): Fix patch error.
1879
1880 Fri Oct 16 22:56:20 1998  Felix Lee  <flee@cygnus.com>
1881
1882         * nm.c (display_rel_file): fix "no symbols" messages.
1883         * objdump.c (slurp_symtab): ditto.
1884         * po/POTFILES.in, po/binutils.pot: rebuilt
1885
1886 Mon Oct 12 14:28:03 1998  Nick Clifton  <nickc@cygnus.com>
1887
1888         * readelf.c (dump_relocations): Rename field from Value to Info to
1889         match name of field in ELF structures.
1890
1891 Thu Oct  8 15:33:08 1998  Geoffrey Noer  <noer@cygnus.com>
1892
1893         * configure.in: call AC_EXEEXT instead of AM_EXEEXT and
1894         AM_CYGWIN32.
1895         * aclocal.m4: remove local AM_EXEEXT/AM_CYGWIN32 macros.
1896         * configure: regenerate
1897
1898 Thu Oct  8 15:33:08 1998  Geoffrey Noer  <noer@cygnus.com>
1899
1900         From Mumit Khan  <khan@xraylith.wisc.edu>:
1901         * dlltool.c (scan_all_symbols): Don't re-export symbols exported
1902         by other DLLs.
1903
1904 Thu Oct  8 15:33:08 1998  Geoffrey Noer  <noer@cygnus.com>
1905
1906         * Makefile.am (BUILD_DLLWRAP): Add.
1907         (BUILD_DLLWRAP, DLLWRAP_PROG): Add.
1908         (bin_PROGRAMS): Add dllwrap.
1909         * Makefile.in: regenerate with automake
1910
1911         From Mumit Khan  <khan@xraylith.wisc.edu>:
1912         * dllwrap.c: New file from dllhelpers v0.2.1.
1913         (print_version): New function.
1914         (long_options): Add --version.
1915         (main): Handle.
1916         * dyn-string.h, dyn-string.c: New files from egcs-1.1/gcc.
1917         * configure.in (BUILD_DLLWRAP): Add.
1918         * configure: Regenerate.
1919
1920 Tue Oct  6 18:20:10 1998  Geoffrey Noer  <noer@cygnus.com>
1921
1922         * Makefile.am (windres_SOURCES): Add resres.c.
1923         (windres_OBJECTS): Add resres.o.
1924         * Makefile.in: regenerate with automake
1925
1926         From Anders Norlander <anorland@hem2.passagen.se>.
1927         * resres.c: New file.  Implementation of read_res_file and
1928         write_res_file functions for windres.
1929         * rcparse.y: Handle CONTROL's with named classes.
1930         * resbin.c: Bug in res_to_bin_dialog and bin_to_res_dialog
1931         when dialog is extended: The version and signature fields should
1932         be reversed (despite what the docs say). Id is 32 bits long in
1933         extended dialogs.
1934         * resrc.c (write_rc_dialog): properly print controls with named
1935         classes.
1936         * windres.c (read_res_file, write_res_file): Remove stubs.
1937         * resres.c (write_res): Rename RT_ACCELERATORS to RT_ACCELERATOR.
1938
1939 Sun Oct  4 20:34:42 1998  Ian Lance Taylor  <ian@cygnus.com>
1940
1941         From Nokubi Hirotaka <hnokubi@yyy.or.jp>:
1942         * objcopy.1: Fix typo in --remove-leading-char docs.
1943         * objdump.1: Fix formatting in --stabs docs.
1944
1945 Sat Sep 19 23:33:56 1998  Ian Lance Taylor  <ian@cygnus.com>
1946
1947         * rcparse.y (memflags_move): Correct recursion.
1948
1949 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
1950
1951         * readelf.c (process_symbol_table): Print in histogram how many
1952         symbols are covered by the current chain length.
1953
1954 Sun Sep  6 16:15:47 1998  Nick Clifton  <nickc@cygnus.com>
1955
1956         * readelf.c (process_section_contents): Do not try to dump empty
1957         sections.
1958
1959 Sat Sep  5 19:17:10 1998  Mumit Khan  <khan@xraylith.wisc.edu>
1960
1961         * dlltool.c (scan_all_symbols): Don't re-export symbols exported
1962         by other DLLs.
1963
1964 1998-09-02 14:50  Ulrich Drepper  <drepper@cygnus.com>
1965
1966         * readelf.c (process_dynamic_segment): Print DT_* value only if
1967         do_dynamic.
1968         (do_histogram): New variable.
1969         (options): New long option histogram.  Set do_histogram if this
1970         option is used.
1971         (usage): Document --histogram.
1972         (parse_args): Handle 0 return value from getopt_long.  Enable
1973         do_histogram for -a.
1974         (process_symbol_table): Read hash table also if only do_histogram.
1975         Add code to print hash table histogram.
1976
1977 1998-08-25 16:45  Ulrich Drepper  <drepper@cygnus.com>
1978
1979         * readelf.c (process_dynamic_segment): Read syminfo section if
1980         available.
1981         (process_syminfo): New function.  Print syminfo information.
1982         (process_file): Call process_syminfo and free syminfo data at the end.
1983
1984 Wed Aug 19 16:19:51 1998  Ian Lance Taylor  <ian@cygnus.com>
1985
1986         * dlltool.c (usage): Add file parameter.  Change all callers.
1987         (main): Don't treat '?' as a special case in getopt return.
1988
1989         * binutils.texi (dlltool): Document new options.  Add some uses of
1990         @var.
1991
1992 Wed Aug 19 16:19:07 1998  Mumit Khan  <khan@xraylith.wisc.edu>
1993
1994         * dlltool.c (gen_def_file): Plug memory leak.  Don't print
1995         demangled name if it is NULL.
1996
1997         Support for exporting all symbols to an output export def file:
1998         * dlltool.c ({export_all_symbols, no_default_excludes,
1999         no_default_excludes, excludes}): New file static variables.
2000         (struct string_list): Type to hold list of symbols to exclude.
2001         (scan_drectve_symbols): Renamed from scan_open_obj_file.
2002         (scan_filtered_symbols): New static function.
2003         (add_excludes): New static function.
2004         (match_exclude): New static function.
2005         (set_default_excludes): New static function.
2006         (filter_symbols): New static function.
2007         (scan_all_symbols): New static function.
2008         (scan_open_obj_file): New static function.
2009         (usage): Document new options.
2010         (long_options): Add new options.
2011         (main): Handle new options.
2012
2013 1998-07-31 21:24  Ulrich Drepper  <drepper@cygnus.com>
2014
2015         * readelf.c (process_program_headers): Print p_offset value with
2016         six hex digits.
2017         (dynamic_segment_mips_val): Add support for DT_MIPS_FLAGS,
2018         DT_MIPS_IVERSION, and DT_MIPS_TIME_STAMP.
2019         (process_mips_specific): Also print seconds of time stamp.
2020
2021 Fri Jul 31 10:04:23 1998  Catherine Moore  <clm@cygnus.com>
2022
2023         * readelf.c (dump_relocations):  EM_ARM uses rela relocs.
2024
2025 1998-07-30 16:25  Ulrich Drepper  <drepper@cygnus.com>
2026
2027         * readelf.c (get_dynamic_type): Don't used gettext on the names.
2028         Add new DT_* values from Solaris.  Don't print nuemric value in
2029         case of an unknown entry.
2030         (process_dynamic_segment): Handle new DT_* entries.  Print numeric
2031         values in decimal, not hex.
2032
2033 Fri Jul 24 16:28:57 1998  Jeff Holcomb  <jeffh@cygnus.com>
2034
2035         * readelf.c (get_dynamic_type): Remove empty default from switch
2036         statement.
2037
2038 Fri Jul 24 16:28:12 1998  Ian Lance Taylor  <ian@cygnus.com>
2039
2040         * Makefile.am (install-exec-local): Don't remove the file before
2041         checking whether $(bindir) == $(tooldir)/bin.  From Maciej
2042         W. Rozycki <macro@ds2.pg.gda.pl>.
2043         * Makefile.in: Rebuild.
2044
2045 Fri Jul 24 09:38:59 1998  Nick Clifton  <nickc@cygnus.com>
2046
2047         * objcopy.c: Removed spurious inclusion of elf/internal.h and
2048         elf-bfd.h.
2049
2050 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
2051
2052         * readelf.c: Consistantly use elf_ prefix for *_reloc_type
2053         functions.
2054
2055 Wed Jul 22 16:29:12 1998  Nick Clifton  <nickc@cygnus.com>
2056
2057         * readelf.c (dump_relocations): Add dumps of HPPA and ARC
2058         relocations.
2059
2060         (process_relocs): Do not abort if no string table can be found.
2061
2062 1998-07-22 14:58  Ulrich Drepper  <drepper@cygnus.com>
2063
2064         * readelf.c: Remove definition of functions to return relocation
2065         symbol strings.  They now get implicitly defined when include the
2066         system specific ELF header.
2067
2068 1998-07-22 13:51  Ulrich Drepper  <drepper@cygnus.com>
2069
2070         * readelf.c: Before include system specific ELF header define
2071         START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.  For now
2072         used for ppc, mips, and mn10300.
2073
2074 Wed Jul 22 10:26:32 1998  Nick Clifton  <nickc@cygnus.com>
2075
2076         * readelf.c (dump_relocations): Display number of unrecognised
2077         relocations.
2078
2079 1998-07-21 13:13  Ulrich Drepper  <drepper@cygnus.com>
2080
2081         * readelf.c: Use symbolic names of relocation entries for the various
2082         architectures.  Correct more layout details.
2083         Print names of MIPS specific section types.  Print Alpha, ARM, and
2084         MIPS relocation type names.
2085
2086 1998-07-20  Vladimir N. Makarov  <vmakarov@cygnus.com>
2087
2088         * objcopy.c (filter_symbols): Add code for strip all symbols case.
2089         (copy_objects): Strip all case is now processed also through
2090         filter_symbols.  No marking symbols used in relocations when strip
2091         all symbols case.
2092         (copy_section): When strip all symbols case, remove relocations
2093         which are not in keep strip specific list.
2094         (strip_main): Remove guard `strip_specific_list == NULL' for
2095         setting up strip all symbols by default.
2096
2097 Mon Jul 20 12:51:16 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2098
2099         * addr2line.c (find_address_in_section): Only consider a section
2100         if the pc value is completely contained within it.
2101         (translate_addresses): Don't crash if functionname or filename are
2102         null.
2103
2104 1998-07-20 07:45  Ulrich Drepper  <drepper@cygnus.com>
2105
2106         * readelf.c (process_symbol_table): Fix little alignment problem
2107         in printed table header.
2108
2109 1998-07-20 07:14  Ulrich Drepper  <drepper@cygnus.com>
2110
2111         * readelf.c: Correct reading of .dynamic section.
2112         (dynamic_section): Now a global variable.
2113         (process_mips_fpe_exception, process_mips_specific,
2114         process_arch_specific): New functions.
2115         (get_file_header): Call process_arch_specific.
2116
2117 1998-07-19 15:15  Ulrich Drepper  <drepper@cygnus.com>
2118
2119         * readelf.c: Fix several versioning related bugs.  Produce nicer
2120         output.
2121         Add support for processor specific information on MIPS.
2122
2123 Fri Jul 10 15:57:58 1998  Nick Clifton  <nickc@cygnus.com>
2124
2125         * readelf.c: Switch prototypes from unsigned short to unsigned
2126         int.
2127
2128 Fri Jul 10 16:17:50 1998  Ian Lance Taylor  <ian@cygnus.com>
2129
2130         From Christian Holland <CHolland@de.lucent.com>:
2131         * ieee.c (parse_ieee): Initialize info.global_vars and
2132         info.global_types.
2133         (parse_ieee_atn): Ignore register lifetime information reportedly
2134         emitted by MRI compiler.
2135
2136 Thu Jul  9 13:08:01 1998  Ian Lance Taylor  <ian@cygnus.com>
2137
2138         * Makefile.am (MAINTAINERCLEANFILES): Define.
2139         * Makefile.in: Rebuild.
2140
2141 Tue Jul  7 21:48:54 1998  Jeffrey A Law  (law@cygnus.com)
2142
2143         * readelf.c (byte_get): Use PARAMS in prototype.
2144         (error): Make it work with non-ANSI compilers.
2145         (warn): Likewise.
2146         (get_ver_flags): Don't use an ANSI prototype in the definition.
2147
2148 Tue Jul  7 13:26:13 1998  Ian Lance Taylor  <ian@cygnus.com>
2149
2150         * objcopy.c (filter_bytes): Set size correctly if the size of the
2151         section is not an even multiple of the interleave.  Based on patch
2152         from Brion Stone <Brion.Stone@attws.com>.
2153
2154 Thu Jul  2 14:01:34 1998  Klaus Kaempf  <kkaempf@rmi.de>
2155
2156         * configure.com: Add vax/vms support.
2157         * makefile.vms-in: Renamed from makefile.vms.  Add substitutions
2158         now done by configure.com.
2159
2160 Wed Jul  1 20:43:52 1998  Ian Lance Taylor  <ian@cygnus.com>
2161
2162         * stabs.c (parse_stab_range_type): Handle 4 and 8 byte signed
2163         integers with real upper bounds.  Handle a lower bound one larger
2164         than the upper bound as a signed integer.  Handle 8 byte signed
2165         integers.
2166         (stab_demangle_template): Optionally return the demangled name of
2167         the template.
2168         (stab_demangle_qualified): Treat a template name as a tagged
2169         type.
2170         (stab_demangle_fund_type): Likewise.
2171
2172 Wed Jul  1 16:29:50 1998  Nick Clifton  <nickc@cygnus.com>
2173
2174         * objcopy.c: Minor formatting improvements.
2175         * readelf.c: Minor output formatting improvement.
2176
2177 Wed Jul  1 14:23:48 1998  Ian Lance Taylor  <ian@cygnus.com>
2178
2179         * rclex.l: Add casts and change types to avoid warnings.
2180         * rcparse.y: Likewise.
2181         * resbin.c: Likewise.
2182         * rescoff.c: Likewise.
2183         * resrc.c: Likewise.
2184
2185         * Makefile.am: Rebuild dependencies.
2186         (HFILES): Remove readelf.h.
2187         * Makefile.in: Rebuild.
2188
2189         Based on patches from Andrew Kozin
2190         <Andrew.Kozin@p14.f960.n5020.z2.fidonet.org>:
2191         * winduni.h: New file, from windres.h.
2192         * winduni.c: New file, from windres.c.
2193         * windres.c: Move Unicode functions into winduni.c.
2194         * windres.h: Move Unicode declarations into winduni.h.  Include
2195         winduni.h.
2196         (RT_ACCELERATOR): Rename from RT_ACCELERATORS to match Windows
2197         macro.  Change all uses.
2198         (RT_PLUGPLAY, RT_VXD): Correct values.
2199         * Makefile.am (HFILES): Add windres.h.
2200         (CFILES): Add winduni.c.
2201         (windres_SOURCES): Add winduni.c.
2202
2203 Mon Jun 29 17:01:21 1998  Nick Clifton  <nickc@cygnus.com>
2204
2205         * readelf.c: Use BFD Internal and External Elf structures.
2206         * readelf.h: Removed - no longer needed.
2207         * Makefile.in: Remove readelf.c's dependency upon readelf.h.
2208
2209 1998-06-26  Vladimir N. Makarov  <vmakarov@cygnus.com>
2210
2211         * objcopy.c (strip_main): keep_specific_list == NULL as additional
2212         condition to set up strip all symbols by default.
2213         (copy_archive): don't change archive when error in object files of
2214         the archive.
2215
2216 Wed Jun 24 17:53:47 1998  Ian Lance Taylor  <ian@cygnus.com>
2217
2218         * stabs.c (parse_number): Sign extend negative values correctly if
2219         bfd_vma is larger than unsigned long.
2220
2221 Tue Jun 23 14:55:05 1998  Mike Stump  <mrs@wrs.com>
2222
2223         * Makefile.am (install-exec-local): Don't let EXEEXT interfere
2224         with the program transform name.
2225         * Makefile.in: Rebuild.
2226
2227 Tue Jun 23 11:08:53 1998  Nick Clifton  <nickc@cygnus.com>
2228
2229         * readelf.c: Rewrite to use fopen/fread ratehr than mmap.
2230
2231         Add --section-headers command line switch, which is an alias for
2232         --sections.
2233
2234         Incorporate improvemnts made by Andreas Schwab
2235         <schwab@issan.informatik.uni-dortmund.de> including output
2236         formatting and version info display.
2237
2238         * binutils.texi: Document --section-headers switch to readelf.
2239
2240 Mon Jun 22 18:28:19 1998  Ian Lance Taylor  <ian@cygnus.com>
2241
2242         * readelf.c: Include bfd.h and bucomm.h before system header
2243         files.
2244         (parse_args): Change type of c from char to int.
2245
2246 Sun Jun 14 14:26:28 1998  Nick Clifton  <nickc@cygnus.com>
2247
2248         * readelf.c (usage): Write to stdout, not stderr.
2249
2250 Fri Jun 12 13:33:51 1998  Tom Tromey  <tromey@cygnus.com>
2251
2252         * po/Make-in (all-yes): Depend on .pot file if maintainer mode
2253         enabled.
2254         ($(PACKAGE).pot): Unconditionally depend on POTFILES.
2255
2256 Fri Jun 12 16:06:15 1998  Michael Meissner  <meissner@cygnus.com>
2257
2258         * readelf.c (get_ppc_rel_type): New PowerPC support.
2259         (dump_relocations): PowerPC uses RELA relocations.
2260         (get_machine_name): Spell PowerPC correctly.
2261         (get_file_type): Change unsigned short parameter to unsigned.
2262         (get_machine_name): Ditto.
2263         (get_machine_data): Return whether big endian or little endian.
2264         (get_machine_flags): Interpret PowerPC, M32R, and MIPS flags.
2265         (process_elf_header): Print endian-ess.  Convert all numeric
2266         formats to long or unsigned long.  Print out machine specific flag
2267         bits.
2268         (process_section_headers): Increase name by 3 columns and decrease
2269         type by the same so that .gcc_except_table fits in the space.
2270
2271         * readelf.h: Include elf/ppc.h, elf/mips.h, and elf/m32r.h to get
2272         machine specific flag bits.
2273
2274 Thu Jun 11 17:54:26 1998  Nick Clifton  <nickc@cygnus.com>
2275
2276         * readelf.c: Remove extraneous #includes.  Fix warnings produced
2277         by -Wall when compiling under Linux.
2278
2279         * Makefile.am (readelf_LDADD): Add $(LIBIBERTY).
2280
2281 Thu Jun 11 18:30:20 1998  Ian Lance Taylor  <ian@cygnus.com>
2282
2283         * stabs.c (struct stab_handle): Add self_crossref field.
2284         (parse_stab_string): If a tag is a cross reference to itself,
2285         don't define it in the tags list.
2286         (parse_stab_type): Set info->self_crossref.
2287
2288         * debug.c (struct debug_type_real_list): Define.
2289         (debug_get_real_type): Add list parameter.  Change all callers.
2290         Check for circularity to avoid crashing when it occurs.
2291
2292 Thu Jun 11 14:48:32 1998  Nick Clifton  <nickc@cygnus.com>
2293
2294         * readelf.c: New file: Display contents of ELF format file.
2295         * readelf.h: New file: Header file for readelf.c
2296         * Makefile.am: Add rules to build readelf.
2297         * Makefile.in: Rebuilt.
2298         * binutils.texi: Document readelf.
2299         * NEWS: Mention inclusion of readelf into binutils.
2300         * po/POTFILES.in; Rebuilt.
2301
2302 Fri Jun  5 18:43:40 1998  Ian Lance Taylor  <ian@cygnus.com>
2303
2304         * objcopy.c (setup_section): Adjust the section size if copy_byte
2305         is >= 0.
2306         (copy_section): Do not call bfd_set_section_size.
2307
2308 Thu Jun  4 09:12:27 1998  Nick Clifton  <nickc@cygnus.com>
2309
2310         * objcopy.c (copy_usage): Add missing \n\ from help description.
2311
2312 Wed Jun  3 19:31:33 1998  Ian Lance Taylor  <ian@cygnus.com>
2313
2314         * Makefile.am (YACC): Correct bison -L option.
2315         * Makefile.in: Rebuild.
2316
2317         * binutils.texi, objdump.1: Document -p/--private-headers.
2318
2319 Wed Jun  3 12:09:40 1998  Nick Clifton  <nickc@cygnus.com>
2320
2321         * objcopy.c: Add new command line options: --change-section-lma
2322         and --change-section-vma.  Rename old command line option
2323         --adjust-section-vma to --change-section-address.  Rename
2324         --adjust-vma to --change-addresses and --adjust-start to
2325         --change-start.  Provide aliases to support the old versions of
2326         these command line options.
2327
2328         Change the names of macros and enum elements to upper case to
2329         match the GNU coding standard.
2330
2331         Replace calls to fprintf (stderr,...) with calls to fatal () or
2332         non_fatal () as appropriate.
2333
2334         * objcopy.1: Document command line option changes.
2335         * binutils.texi: Document command line option changes.
2336
2337         * bucomm.h: New exported funtion from bucomm.c: non_fatal().
2338         * bucomm.c (non_fatal): New exported function.  Just like fatal()
2339         except that it returns rather than calling xexit().
2340
2341         (bfd_check_format_matches): Call fatal() rather than bfd_fatal().
2342
2343         (check_matching_formats): Fix C formating.
2344
2345         (parse_vma): Call fatal().
2346
2347 Mon Jun  1 18:26:40 1998  Ian Lance Taylor  <ian@cygnus.com>
2348
2349         From Yuli Barcohen <yuli.barcohen@telrad.co.il>:
2350         * debug.c (debug_type_samep): Avoid endless loops comparing
2351         function and method parameter types.
2352
2353 Fri May 22 14:02:42 1998  Ian Lance Taylor  <ian@cygnus.com>
2354
2355         * dlltool.c (dump_iat): Comment out; not used.
2356         (display): Rename from tell.  Change all callers.
2357
2358 Thu May 14 14:00:56 1998  Nick Clifton  <nickc@cygnus.com>
2359
2360         * dlltool.c: Add support for Thumb DLLs.  Add support for
2361         interworking between ARM and Thumb programs and DLLs.  Tidy the
2362         code.
2363
2364         * binutils.texi: Document dlltool.
2365
2366         * configure: Build dlltool for thumb-pe targets.
2367
2368         * version.c (print_version): Include 1998 in copyright strings.
2369
2370         * stabs.c (parse_stab): Support Win32 style directory separators.
2371
2372 Sun May 10 22:34:44 1998  Jeffrey A Law  (law@cygnus.com)
2373
2374         * po/Make-in (install-info): New target.
2375
2376 Fri May  8 10:33:13 1998  Nick Clifton  <nickc@cygnus.com>
2377
2378         * ar.c (usage): Extend information provided about command line
2379         options.
2380
2381 Wed May  6 15:28:51 1998  Klaus Kaempf  <kkaempf@progis.de>
2382
2383         * makefile.vms: Run dec c with /nodebug.  Pass CC value when
2384         calling make.
2385
2386 Tue May  5 15:19:00 1998  Nick Clifton  <nickc@cygnus.com>
2387
2388         * configure: Build dlltool for thumb-pe target.
2389         * configure.in: Build dlltool for thumb-pe target.
2390
2391 Sun May  3 22:04:49 1998  Ian Lance Taylor  <ian@cygnus.com>
2392
2393         * Makefile.am (EXTRA_PROGRAMS): Change $(SRCONV_PROG) to sysconf
2394         sysdump coffdump to avoid extra $(EXEEXT).
2395         * Makefile.in: Rebuild.
2396
2397 Wed Apr 29 22:22:55 1998  Geoffrey Noer <noer@cygnus.com>
2398
2399         * configure.in: Stop appending EXEEXT to the end of
2400         SRCONV_PROG (wrong because that variable may contain multiple
2401         programs)
2402         * Makefile.am: instead, add EXEEXTs to each SRCONV_PROG
2403         program
2404         * Makefile.in: regenerate
2405         * configure: regenerate
2406
2407 Tue Apr 28 19:14:34 1998  Tom Tromey  <tromey@cygnus.com>
2408
2409         * addr2line.c (main): Conditionally call setlocale.
2410         * windres.c (main): Likewise.
2411         * sysdump.c (main): Likewise.
2412         * strings.c (main): Likewise.
2413         * srconv.c (main): Likewise.
2414         * size.c (main): Likewise.
2415         * objdump.c (main): Likewise.
2416         * objcopy.c (main): Likewise.
2417         * nm.c (main): Likewise.
2418         * nlmconv.c (main): Likewise.
2419         * dlltool.c (main): Likewise.
2420         * coffdump.c (main): Likewise.
2421         * ar.c (main): Likewise.
2422         * bucomm.h: Include <locale.h> if HAVE_LOCALE_H.
2423         (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
2424
2425 Tue Apr 28 10:33:07 1998  Bill Moyer  <ttk@cygnus.com>
2426
2427         Add support for IMPORTS:
2428         * defparse.y (impline): Add IMPORTS syntaxes.
2429         * dlltool.c (ifunctype, iheadtype): New typedefs.
2430         (import_list): New static variable.
2431         (append_import): New static function.
2432         (def_import): Add an entry to import_list.
2433         (generate_idata_ofile): New static function.
2434         (gen_exp_file): Call generate_idata_ofile.
2435         * dlltool.h (def_import): Update declaration.
2436
2437 Mon Apr 27 16:39:22 1998  Ian Lance Taylor  <ian@cygnus.com>
2438
2439         * configure.in: Change version number to 2.9.4
2440         * configure: Rebuild.
2441
2442 Wed Apr 22 16:00:35 1998  Tom Tromey  <tromey@cygnus.com>
2443
2444         * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
2445
2446 Wed Apr 22 00:33:56 1998  Tom Tromey  <tromey@scribbles.cygnus.com>
2447
2448         * Makefile.am (INCLUDES): Search intl dirs for headers; define
2449         LOCALEDIR.
2450         * addr2line.c (main): Call setlocale, bindtextdomain, textdomain.
2451         * ar.c (main): Likewise.
2452         * coffdump.c (main): Likewise.
2453         * dlltool.c (main): Likewise.
2454         * nlmconv.c (main): Likewise.
2455         * nm.c (main): Likewise.
2456         * objcopy.c (main): Likewise.
2457         * objdump.c (main): Likewise.
2458         * size.c (main): Likewise.
2459         * srconv.c (main): Likewise.
2460         * strings.c (main): Likewise.
2461         * sysdump.c (main): Likewise.
2462         * windres.c (main): Likewise.
2463
2464 Tue Apr 21 22:13:08 1998  Tom Tromey  <tromey@scribbles.cygnus.com>
2465
2466         * Many files: Added gettext invocations around user-visible
2467         strings.
2468         * bucomm.h: Added gettext-related includes and defines.
2469         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
2470         HAVE_LC_MESSAGES): Define.
2471         * configure.in: Call CY_GNU_GETTEXT.  Create po/Makefile.in and
2472         po/Makefile.  Use AM_PROG_LEX.
2473         * Makefile.am (SUBDIRS): New macro.
2474         (POTFILES): Likewise.
2475         (po/POTFILES.in): New target.
2476         (LDADD): Added INTLLIBS.
2477         (objdump_LDADD): Likewise.
2478         (c__filt_LDADD): Likewise.
2479         (ar_LDADD): Likewise.
2480         (ranlib_LDADD): Likewise.
2481         (dlltool_LDADD): Likewise.
2482         (windres_LDADD): Likewise.
2483         * po/Make-in, po/POTFILES.in, po/binutils.pot: New files.
2484
2485 Tue Apr 21 16:07:18 1998  Stanislav Brabec  <utx@k332.feld.cvut.cz>
2486
2487         * objcopy.c (preserve_dates): New file static variable.
2488         (smart_rename): If preserve_dates, call set_times when copying.
2489         (strip_main): Remove preserve_dates local variable.
2490         (copy_main): Likewise.
2491
2492 Tue Apr  7 15:41:15 1998  Ian Lance Taylor  <ian@cygnus.com>
2493
2494         * Makefile.am (DISTSTUFF): Add defparse.h, defparse.c, rclex.c,
2495         rcparse.h, and rcparse.c
2496         * Makefile.in: Rebuild.
2497
2498 Mon Apr  6 16:24:35 1998  Ian Lance Taylor  <ian@cygnus.com>
2499
2500         * Makefile.am (PROGS): Move $(ADDR2LINE_PROG) to end, so that
2501         Makefile.in doesn't have an empty continuation line.
2502         (bin_PROGRAMS): Likewise.
2503         * Makefile.in: Rebuild.
2504
2505 Fri Apr  3 14:48:42 1998  Ian Lance Taylor  <ian@cygnus.com>
2506
2507         * Makefile.am (DISTCLEANFILES): Add site.exp and site.bak.
2508         (MOSTLYCLEANFILES): Add binutils.log, binutils.sum, and abcdefgh*.
2509         (mostlyclean-local): New target.
2510         * Makefile.in: Rebuild.
2511
2512 Wed Apr  1 15:54:16 1998  Ian Lance Taylor  <ian@cygnus.com>
2513
2514         From Zack Weinberg <zack@rabi.phys.columbia.edu> and H.J. Lu
2515         <hjl@gnu.org>:
2516         * ar.c (usage): Mention S modifier.
2517         (main): Add S modifier.
2518         * ar.1, binutils.texi: Document S modifier.
2519
2520 Wed Apr  1 13:11:23 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2521
2522         * binutils.texi: Use @itemx for a secondary item in a table.
2523
2524 Tue Mar 31 18:44:13 1998  Ian Lance Taylor  <ian@cygnus.com>
2525
2526         * dep-in.sed: Add rule to remove @OBJDIR@.
2527         * Makefile.am (dep.sed): Substitute for @OBJDIR@.
2528         * Makefile.in: Rebuild.
2529
2530 Mon Mar 30 12:47:18 1998  Ian Lance Taylor  <ian@cygnus.com>
2531
2532         * configure.in: Set version to 2.9.1.
2533         * configure: Rebuild.
2534
2535         * Branched binutils 2.9.
2536
2537         * Makefile.am (DISTCLEANFILES): Remove defparse.h, arparse.h,
2538         rcparse.h, and nlmheader.h.
2539         * Makefile.in: Rebuild.
2540
2541 Sat Mar 28 17:39:27 1998  Ian Lance Taylor  <ian@cygnus.com>
2542
2543         * Makefile.am (MOSTLYCLEANFILES): Define.
2544         * Makefile.in: Rebuild.
2545
2546         Fix some gcc -Wall warnings:
2547         * nlmconv.c (main): Add casts to avoid warnings.
2548         (alpha_mangle_relocs): Likewise.
2549         * objdump.c (dump_section_stabs): Likewise.
2550         * size.c (print_sysv_format): Likewise.
2551         * srcconv.c (wr_ob): Likewise.
2552         * wrstabs.c (stab_modify_type): Likewise.
2553         (stab_variable): Likewise.
2554         * nlmconv.c (main): Initialize variables to avoid warnings.
2555         * nm.c (sort_symbols_by_size): Likewise.
2556         * objdump.c (disassemble_bytes): Likewise.
2557         * wrstabs.c (stab_end_class_type): Likewise.
2558         * coffgrok.c (do_sections_p2): Change j to unsigned int.
2559         (do_lines): Change l to unsigned int.
2560         * nlmheader.y (yylex): Change i to unsigned int.
2561         * nm.c (print_symbol): Change j to long.
2562         * size.c (lprint_number): Comment out.
2563         * srconv.c (wr_ob): Change i to bfd_size_type.
2564         * sysdump.c (unit_info_list): Comment out.
2565         (object_body_list, program_structure, debug_list): Likewise.
2566         * sysinfo.y (yyerror): Return value.
2567
2568 Thu Mar 26 17:06:51 1998  Richard Henderson  <rth@cygnus.com>
2569
2570         * defparse.y (explist): Allow epsilon.
2571         Suggestion from Jonathan-Harris@psion.com.
2572
2573 Thu Mar 26 16:59:09 1998  Richard Henderson  <rth@cygnus.com>
2574
2575         * coffgrok.c (do_sections_p1): Use the section's lma instead of vma
2576         for the benefit of prom loaders.
2577
2578 Wed Mar 25 13:05:39 1998  Ian Lance Taylor  <ian@cygnus.com>
2579
2580         Based on patch from H.J. Lu  <hjl@gnu.org>:
2581         * Makefile.am (DISTSTUFF): New variable.
2582         (diststuff): New target.
2583         (DISTCLEANFILES): New variable.
2584         * Makefile.in: Rebuild.
2585
2586 Tue Mar 24 19:33:08 1998  Ian Lance Taylor  <ian@cygnus.com>
2587
2588         * rclex.l: Accept { and } as synonyms for BEGIN and END.
2589
2590 Fri Mar 20 19:18:08 1998  Ian Lance Taylor  <ian@cygnus.com>
2591
2592         * aclocal.m4, configure: Rebuild with libtool 1.2.
2593
2594 Tue Feb 24 13:07:50 1998  Doug Evans  <devans@canuck.cygnus.com>
2595
2596         * objdump.c (disassemble_data): Delete "++place" after call to
2597         find_symbol_for_address.  Set disasm_info.symbols to array of
2598         symbols at the current address.
2599
2600 Wed Feb 18 23:39:46 1998  Richard Henderson  <rth@cygnus.com>
2601
2602         * Makefile.am (install-exec-local): Install properly when ln
2603         fails or tooldir == prefix.
2604
2605 Tue Feb 17 18:40:55 1998  Richard Henderson  <rth@cygnus.com>
2606
2607         * objcopy.c (compare_section_lma): Rename from _vma.
2608         (copy_object): Gap fill based on LMA not VMA.
2609         * binutils.texi: Update and clarify.
2610         * objcopy.1: Likewise.
2611
2612 Tue Feb 17 20:34:11 1998  Ian Lance Taylor  <ian@cygnus.com>
2613
2614         * dlltool.c (gen_exp_file): Generate _imp__%s as well as __imp_%s,
2615         for Microsoft compatibility.
2616         (make_one_lib_file): Likewise.
2617
2618         * dlltool.c (make_one_lib_file): Don't add 1 to hint.
2619
2620 Fri Feb 13 16:37:44 1998  Ian Lance Taylor  <ian@cygnus.com>
2621
2622         * Makefile.am (AUTOMAKE_OPTIONS): Define.
2623         * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
2624
2625 Thu Feb 12 14:13:46 1998  Ian Lance Taylor  <ian@cygnus.com>
2626
2627         * deflex.l: Accept '?' in symbol names, for VC++ mangled names.
2628         From Mikey <jeffdb@netzone.com>.
2629
2630         * addr2line.c (usage): Update bug-gnu-utils address.
2631         * ar.c (usage): Likewise.
2632         * nlmconv.c (show_usage): Likewise.
2633         * nm.c (usage): Likewise.
2634         * objcopy.c (copy_usage): Likewise.
2635         (strip_usage): Likewise.
2636         * objdump.c (usage): Likewise.
2637         * size.c (usage): Likewise.
2638         * strings.c (usage): Likewise.
2639         * windres.c (usage): Likewise.
2640         * binutils.texi (Bug Reporting): Likewise.
2641
2642 Sat Feb  7 15:36:24 1998  Ian Lance Taylor  <ian@cygnus.com>
2643
2644         * configure, aclocal.m4: Rebuild with new libtool.
2645
2646 Thu Feb  5 12:21:13 1998  Ian Lance Taylor  <ian@cygnus.com>
2647
2648         * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
2649
2650 Fri Jan 30 19:16:28 1998  Doug Evans  <devans@canuck.cygnus.com>
2651
2652         * Makefile.am (CC_FOR_TARGET,nlmcomv.o): Change program_transform_name
2653         to transform.
2654         * Makefile.in: Regenerate.
2655
2656 Thu Jan 29 16:24:04 1998  Mumit Khan  <khan@xraylith.wisc.edu>
2657
2658         * dlltool.c: Define exit status macros for _WIN32 but not
2659         __CYGWIN32__.
2660         (gen_lib_file): Check for exit status of unlink.
2661         * resrc.c: Define popen and pclose if _WIN32 but not
2662         __CYGWIN32__.
2663
2664 Wed Jan 28 17:45:46 1998  Ian Lance Taylor  <ian@cygnus.com>
2665
2666         * configure.in: Remove vfork check.
2667         * nlmconv.c: Never include vfork.h.
2668         * aclocal.m4, configure, Makefile.in, config.in: Rebuild.
2669
2670 Wed Jan 28 17:43:02 1998  J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
2671
2672         * objcopy.c (copy_archive): Only pass one argument to mkdir if
2673         _WIN32 but not __CYGWIN32__.
2674         (smart_rename): Add code for _WIN32 (not __CYGWIN32__), to cope
2675         with different rename behaviour and lack of chown.
2676
2677         * configure.in: Check for mingw32 when deciding whether to build
2678         dlltool.
2679         * dlltool.c: Never include vfork.h.
2680         (run): Use pexecute rather than vfork.
2681         (gen_lib_file): Check for errors from bfd_set_archive_head and
2682         bfd_close.  Close all the BFDs in the archive before deleting the
2683         temporary files.
2684
2685 Thu Jan 22 16:22:55 1998  Fred Fish  <fnf@cygnus.com>
2686
2687         * objdump.c (disassemble_bytes): Add flag INSN_HAS_RELOC to tell
2688         disassembly function there is a reloc on this line.
2689
2690 Wed Jan 14 15:29:43 1998  Richard Henderson  <rth@cygnus.com>
2691
2692         * srconv.c (sh, h8300): Delete variables.
2693         (addrsize, toolname, rnames): New variables.
2694         (writeINT): Use addrsize.
2695         (wr_un): Use toolname.
2696         (wr_hd): Set up addrsize et al properly for h8300[hs].
2697         (walk_tree_symbol): Zero dsy.  Use rnames.
2698         (wr_un, wr_hd, wr_ob, wr_du): Use proper bfd access macros.
2699         * sysdump.c (sh, h8300): Delete variables.
2700         (addrsize): New variable.
2701         (getINT): Use it.
2702         (getone): Initialize it.
2703         (getBITS): Range check on MAX.
2704
2705 Mon Dec 29 16:58:05 1997  Ian Lance Taylor  <ian@cygnus.com>
2706
2707         From Matthew Bellantoni <matthew@chrysalis.com>:
2708         * ar.c (get_pos_bfd): Add default_posname parameter.  Change all
2709         callers.
2710         (replace_members): Default to replacing in the same position.
2711
2712 Mon Dec 22 11:27:22 1997  Ian Lance Taylor  <ian@cygnus.com>
2713
2714         * rclex.l: Don't permit a comma in a STRING.
2715         * rcparse.y (acc_entry): Warn if an inappropriate modifier is used
2716         with a non VIRTKEY.
2717         (acc_event): For a control character, set VIRTKEY, and force the
2718         character to uppercase.
2719         (acc_options): Don't require a comma separator.
2720
2721 Tue Dec  9 13:25:42 1997  Michael Meissner  <meissner@cygnus.com>
2722
2723         * size.c (size_number): New function to provide size of field.
2724         ({l,r}print_number): For octal and hex fields, print field using
2725         '0' and '0x' suffixes.  Do not include following tab.
2726         (sysv_internal_sizer): Size section name, section size, and vma
2727         address fields.
2728         (sysv_internal_printer): Use calculated sizes for the columns.
2729         (print_sysv_format): Size columns before printing.
2730         (print_berkeley_format): Print tabs between numbers now that
2731         {l,r}print_number doesn't.  Print fields right justified.
2732
2733 Mon Dec  8 11:22:04 1997  Nick Clifton  <nickc@cygnus.com>
2734
2735         * objdump.c (objdump_print_addr_with_sym): Remove call to
2736         disasm_symaddr() as this function no longer exists.
2737
2738 Tue Dec  2 10:23:50 1997  Nick Clifton  <nickc@cygnus.com>
2739
2740         * objdump.c (objdump_print_addr_with_sym): Call disasm_symaddr()
2741         to allow backend to know which symbol has just been displayed.
2742
2743 Tue Dec  2 13:06:46 1997  Ian Lance Taylor  <ian@cygnus.com>
2744
2745         * windres.h (ESCAPE_*): Define standard escape sequences.
2746         * rclex.l (handle_quotes): Handle standard escape sequences.  Warn
2747         about an unrecognized escape character.
2748         * windres.c (unicode_print): Print standard escape sequences.
2749         * rcparse.y (acc_event): Initialize $$.next.
2750         * resbin.c (bin_to_res_menuitems): Don't set MENUITEM_POPUP or
2751         MENUITEM_ENDMENU in the menu item flags.
2752         (bin_to_res_accelerators): Allocate a structure (the old code
2753         never worked).
2754         (res_to_bin_accelerator): Correct the test for setting ACC_LAST.
2755         (res_to_bin_dialog): Save the extended style rather than saving
2756         the style twice.  Remove useless shadowing length variable.  Set
2757         the length of control data correctly.
2758         * resrc.c (write_rc_dialog): Don't print the class or menu if the
2759         string length is zero.
2760
2761 Mon Nov 24 18:52:43 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2762
2763         * stabs.c (parse_stab_argtypes): Don't try to parse the name of a
2764         destructor as mangled argument types.
2765
2766 Mon Nov 10 17:51:41 1997  Gavin Koch  <gavin@cygnus.com>
2767
2768         * addr2line.c (translate_addresses): Use bfd_scan_vma rather
2769         than strtol to scan addresses.
2770
2771 Sun Nov  9 11:01:31 1997  Jeffrey A Law  (law@cygnus.com)
2772
2773         * Makefile.am (bin_PROGRAMS): Don't use line continuations here.
2774
2775 Tue Nov  4 11:56:14 1997  Ian Lance Taylor  <ian@cygnus.com>
2776
2777         * objcopy.c (copy_section): Don't crash if there is no particular
2778         information for a section.
2779
2780 Mon Nov  3 12:36:19 1997  Ian Lance Taylor  <ian@cygnus.com>
2781
2782         * objcopy.c (parse_flags): Make flag check case insensitive.
2783         Check for `contents' flag.  Give an error for unrecognized flags.
2784         (copy_section): If the contents flag was set for a section that
2785         had no contents, zero out the new contents.
2786         * binutils.texi (objcopy): Document contents section flag.
2787
2788 Sun Nov  2 14:49:56 1997  Ian Lance Taylor  <ian@cygnus.com>
2789
2790         * objcopy.c: Move new struct and variable definitions to top of
2791         file.  Remove obsolete add_strip_symbol and is_strip_symbol
2792         declarations.  Add prototype declarations for add_specific_symbol
2793         and is_specified_symbol.
2794
2795 Mon Oct 20 15:31:43 1997  Klaus K"ampf  <kkaempf@progis.de>
2796
2797         * configure.com (HAVE_SBRK): Undefine.
2798
2799 Tue Oct 14 16:14:35 1997  Nick Clifton  <nickc@cygnus.com>
2800
2801         * objdump.c (objdump_symbol_at_address): New function.  Returns
2802         true if a symbol can be found at the address passed in.
2803         (disassemble_data): Set the symbol_at_address_func field to point
2804         to objdump_symbol_at_address.
2805
2806 Fri Oct 10 14:13:09 1997  Richard Henderson  <rth@cygnus.com>
2807
2808         * objcopy.c, objcopy.1, binutils.texi: "localize" is a better name
2809         than "privatize".  Update all references.
2810
2811 Thu Oct  9 15:57:29 1997  Ian Lance Taylor  <ian@cygnus.com>
2812
2813         * binutils.texi (strip): Remove duplicate --target.  From Marty
2814         Leisner <leisner@sdsp.mc.xerox.com>.
2815
2816         * nm.c (lineno_cache_bfd): New file static variable.
2817         (lineno_cache_rel_bfd): New file static variable.
2818         (display_archive): Clear lineno_cache_bfd and lineno_cache_rel_bfd
2819         when closing a BFD.
2820         (display_file): Likewise.
2821         (print_symbol): Use lineno_cache_bfd and lineno_cache_rel_bfd
2822         instead of cache_bfd and cache_rel_bfd.  Make seccount static, and
2823         only set it when setting relocs.
2824
2825 Wed Oct  8 21:19:11 1997  Richard Henderson  <rth@cygnus.com>
2826
2827         * objcopy.c (keep_specific_list, privatize_specific_list,
2828         weaken_specific_list): New variables.
2829         (keep_symbols): Removed.
2830         (add_specific_symbol): New function from the carcas of
2831         add_strip_symbol.  Takes a list as an argument.
2832         (is_specified_symbol): Likewise from is_strip_symbol.
2833         (filter_symbols): Honor the new privatize and weaken lists.
2834         Optimize bfd_asymbol_name handling.
2835         (copy_object, copy_options, copy_usage): Add privatize-symbol &
2836         weaken-symbol options.
2837
2838         * objcopy.1, binutils.texi: Update docs.
2839
2840 Sun Oct  5 09:05:44 1997  Frank Ch. Eigler  <fche@cygnus.com>
2841
2842         * objdump.c (disassemble_data): Make "--prefix-addresses"
2843         disassembly adjust to mixed-length instructions.
2844         (objdump_print_addr_with_sym): Add "0x" prefix for hexadecimal
2845         symbol-offsets in disassembly.
2846
2847 Fri Oct  3 12:04:25 1997  Ian Lance Taylor  <ian@cygnus.com>
2848
2849         * objcopy.c (set_times): New static function, replacing
2850         make_same_dates.
2851         (strip_main): If preserve_dates, stat the input file before
2852         copying it, and call set_times afterward.
2853         (copy_main): Likewise.
2854
2855         * wrstabs.c (write_stabs_in_sections_debugging_info): Cast p to
2856         char * when calling strcpy and strlen.
2857
2858 Wed Sep 24 11:34:05 1997  Ian Lance Taylor  <ian@cygnus.com>
2859
2860         * binutils.texi (ar cmdline): Document that q now works like r.
2861         From Marty Leisner <leisner@sdsp.mc.xerox.com>.
2862
2863         * binutils.texi (size): The object file argument is optional.
2864         From Marty Leisner <leisner@sdsp.mc.xerox.com>.
2865
2866         * aclocal.m4: Rebuild with new libtool.
2867         * configure: Rebuild.
2868
2869 Tue Aug 26 17:48:34 1997  Ian Lance Taylor  <ian@cygnus.com>
2870
2871         * Makefile.am (EXEEXT_FOR_BUILD): New variable.  Use it in all
2872         references to the sysinfo program.
2873         * configure.in: Rebuild with new bfd/acinclude.m4.
2874         * Makefile.in: Rebuild.
2875
2876 Fri Aug  8 15:32:49 1997  Ian Lance Taylor  <ian@cygnus.com>
2877
2878         * windres.c: Include <time.h>.
2879         (define_resource): Set a timestamp for the resource.
2880
2881 Wed Aug  6 13:37:58 1997  Ian Lance Taylor  <ian@cygnus.com>
2882
2883         * configure.in: Define TARGET in header file.
2884         * acconfig.h (TARGET): Add #undef.
2885         * Makefile.am (version.o, bucomm.o): Remove special targets.
2886         * bucomm.c (target): Remove.
2887         * nm.c (program_name): Don't declare.
2888         (target): Make static.
2889         * size.c (target): Make static.
2890         * configure, config.in, Makefile.in: Rebuild.
2891
2892 Tue Aug  5 00:01:41 1997  Ian Lance Taylor  <ian@cygnus.com>
2893
2894         * Makefile.am (check-DEJAGNU): Export r.
2895         (.dep1): Use $(INCLUDES) rather than $(ALL_CFLAGS).
2896         * Makefile.in: Rebuild.
2897
2898         * nlmheader.y: Use VERSIONK rather than VERSION.
2899
2900         * Makefile.am (STRIP_PROG): Change from strip.new to strip-new.
2901         (NM_PROG): Change from nm.new to nm-new.
2902         (TOOL_PROGS, install-exec-local): Adjust accordingly.
2903         * Makefile.in: Rebuild.
2904
2905 Mon Aug  4 11:47:31 1997  Ian Lance Taylor  <ian@cygnus.com>
2906
2907         * configure.in: Remove AC_ARG_PROGRAM; it's invoked by
2908         AM_INIT_AUTOMAKE.
2909         * configure: Rebuild.
2910
2911         * Makefile.am (install-exec-local): Create $(tooldir)/bin before
2912         trying to install anything into it.
2913         * Makefile.in: Rebuild.
2914
2915         * Makefile.am (TOOL_PROGS): Use an explicit $(EXEEXT).
2916         (install-exec-local): When handling $(noinst_PROGRAMS), only use
2917         $(EXEEXT) on the installed file.  When handling $(TOOL_PROGS),
2918         handle $(EXEEXT) correctly.
2919         * configure.in: Add an explicit $(EXEEXT) when substituting for
2920         the name of a program to build.
2921         * Makefile.in, configure: Rebuild.
2922
2923         * aclocal.m4, configure, Makefile.in: Rebuild with new automake
2924         patches.
2925
2926         * deflex.l, defparse.y: Use VERSIONK rather than VERSION.
2927         * rclex.l, rcparse.y: Likewise.
2928         * Makefile.am (windres_SOURCES): Add $(BULIBS).
2929         * Makefile.in: Rebuild.
2930
2931 Fri Aug  1 13:08:39 1997  Ian Lance Taylor  <ian@cygnus.com>
2932
2933         * acinclude.m4: Include bfd/acinclude.m4, not bfd/acmacros.m4.
2934         * aclocal.m4, configure: Rebuild with new libtool.
2935
2936 Thu Jul 31 11:51:35 1997  Ian Lance Taylor  <ian@cygnus.com>
2937
2938         * Makefile.am: New file, based on old Makefile.in.
2939         * acinclude.m4: New file, from old aclocal.m4.
2940         * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL.  Remove
2941         shared library handling; now handled by libtool.  Replace
2942         AC_CONFIG_HEADER with AM_CONFIG_HEADER.  Call AC_PROG_YACC,
2943         AC_PROG_LEX, AC_DECL_YYTEST, AM_MAINTAINER_MODE, AM_CYGWIN32, and
2944         AM_EXEEXT.  Replace AC_PROG_INSTALL with AM_PROG_INSTALL.  Remove
2945         stamp-h handling in AC_OUTPUT.
2946         * acconfig.h: Mention PACKAGE and VERSION.
2947         * stamp-h.in: New file.
2948         * Makefile.in: Now built with automake.
2949         * aclocal.m4: Now built with aclocal.
2950         * config.in, configure: Rebuild.
2951
2952         From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
2953         * rcparse.y (dialog): Default menu and class to be named.
2954         (styles): If FONT is seen, set DS_SETFONT in dialog style.
2955         * resbin.c (res_to_bin_dialog): Correct computation of font
2956         information length.
2957
2958 Wed Jul 30 11:21:06 1997  Ian Lance Taylor  <ian@cygnus.com>
2959
2960         From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
2961         * resbin.c (res_to_bin_menu): Correct computation of menu
2962         vs. menuex length.
2963         * resrc.c (define_stringtable): Add 1 to resource ID.
2964
2965 Tue Jul 29 11:06:03 1997  Ian Lance Taylor  <ian@cygnus.com>
2966
2967         * resbin.c (bin_to_res_string): Correct adjustment of data and
2968         length.  From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>.
2969
2970 Tue Jul 22 18:01:23 1997  Ian Lance Taylor  <ian@cygnus.com>
2971
2972         * nlmconv.c (link_inputs): Call libiberty pexecute function.
2973         (pexecute) [multiple versions]: Remove.
2974
2975 Tue Jul 22 16:19:34 1997  Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
2976
2977         * bucomm.c (make_tempname): If we might be using a DOS filesystem,
2978         check for a backslash as well as a slash.
2979
2980 Thu Jun 26 13:53:17 1997  Ian Lance Taylor  <ian@cygnus.com>
2981
2982         * windres.c (main): Quit if we didn't get any resources.
2983         (usage): Fix --yydebug usage message.
2984         * rescoff.c (write_coff_file): Don't free the relocation array
2985         until after we've closed the BFD.
2986         (read_coff_rsrc): Quit rather than try to read standard input.
2987         (write_coff_file): Quit rather than try to write to standard
2988         output.
2989         * rcparse.y: Add a couple of missing semicolons (accepted by bison
2990         but not byacc).
2991         * binutils.texi: Document windres.
2992
2993 Wed Jun 25 20:57:06 1997  Ian Lance Taylor  <ian@cygnus.com>
2994
2995         * resbin.c: New file.
2996         * rclex.l, rcparse.y, rescoff.c, resrc.c, windres.c, windres.h:
2997         Numerous fixes and improvements.
2998         * Makefile.in: Rebuild dependencies.
2999         (CFILES): Add resbin.c.
3000         (WINDRES_OBJS): Add resbin.o.
3001
3002 Sun Jun 22 17:29:41 1997  Ian Lance Taylor  <ian@cygnus.com>
3003
3004         First stab at Windows resource compiler:
3005         * windres.h: New file.
3006         * windres.c: New file.
3007         * resrc.c: New file.
3008         * rcparse.y: New file.
3009         * rclex.l: New file.
3010         * rescoff.c: New file.
3011         * configure.in: Define and substitute BUILD_WINDRES.
3012         * configure: Rebuild.
3013         * Makefile.in: Rebuild dependencies.
3014         (WINDRES_PROG): New variable.
3015         (PROGS): Add @BUILD_WINDRES@.
3016         (HFILES): Add dlltool.h and windres.h.
3017         (CFILES): Add windres.c and resrc.c.
3018         (GENERATED_CFILES): Add rcparse.c and rclex.c.
3019         (WINDRES_OBJS): New variable.
3020         $(WINDRES_PROG): New target.
3021         (rcparse.c, rcparse.h, rclex.c): New targets.
3022
3023 Thu Jun 12 12:27:51 1997  Ian Lance Taylor  <ian@cygnus.com>
3024
3025         * dlltool.c (export_type): Add data field.
3026         (def_exports): Add data parameter.  Change all callers.
3027         (dump_def_info): Print data field.
3028         (gen_def_file): Likewise.
3029         (make_one_lib_file): Handle data field by not emitting simple
3030         label and not emitting anything in SEC_TEXT.
3031         (dtab): Print data field.
3032         (process_duplicates): Merge data field.
3033         * dlltool.h (def_exports): Update declaration.
3034         * defparse.y (expline): Accept opt_DATA.  Pass it to def_exports.
3035         (opt_DATA): New non-terminal.
3036
3037 Wed Jun 11 17:15:47 1997  Ian Lance Taylor  <ian@cygnus.com>
3038
3039         * dlltool.h: New file.
3040         * deflex.l: Include dlltool.h and libiberty.h.  Don't declare
3041         strdup.  Use xstrdup rather than strdup.
3042         * defparse.y: Include bfd.h, bucomm.h, and dlltool.h.
3043         * dlltool.c: Include dlltool.h and time.h.  Make a lot of
3044         variables and functions static.  Make a lot of char * variables
3045         and parameters const.  Add declarations for static functions.  Do
3046         some reindenting.  Hide more PowerPC stuff inside DLLTOOL_PPC.
3047
3048 Wed Jun 11 12:05:52 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
3049
3050         * ar.c (bfd_special_undocumented_glue): Add const.
3051
3052 Mon May 12 22:09:35 1997  Bob Manson  <manson@charmed.cygnus.com>
3053
3054         * Makefile.in (check): Pass CC_FOR_TARGET and CFLAGS_FOR_TARGET
3055         to runtest.
3056
3057 Mon May 12 13:14:22 1997  Ian Lance Taylor  <ian@cygnus.com>
3058
3059         * configure.in: Don't clear OPCODES when --enable-commonbfdlib is
3060         used on HP/UX.
3061         * configure: Rebuild.
3062
3063 Fri Apr 25 14:22:08 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
3064
3065         * Makefile.in (maintainer-clean realclean): Change *.info*
3066         to binutils.info* to save sysroff.info.
3067
3068 Tue Apr 15 13:42:22 1997  Ian Lance Taylor  <ian@cygnus.com>
3069
3070         * Makefile.in (INSTALL): Set to @INSTALL@.
3071         (INSTALL_XFORM, INSTALL_XFORM1): Remove.
3072         (install): Depend upon installdirs.  Use $(program_transform_name)
3073         directly, rather than using $(INSTALL_XFORM) and
3074         $(INSTALL_XFORM1).
3075         (installdirs): New target.
3076         (install-info): Run mkinstalldirs.
3077
3078 Mon Apr 14 11:52:39 1997  Ian Lance Taylor  <ian@cygnus.com>
3079
3080         * Makefile.in (INSTALL): Change install.sh to install-sh.
3081
3082         From Thomas Graichen <graichen@rzpd.de>:
3083         * Makefile.in: Always use $(SHELL) when running move-if-change.
3084         * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
3085         * configure: Rebuild.
3086
3087 Fri Apr  4 13:28:02 1997  Ian Lance Taylor  <ian@cygnus.com>
3088
3089         * configure.in: Add AC_FUNC_ALLOCA.
3090         * configure, config.in: Rebuild.
3091         * bucomm.h: Add alloca handling, copied from gas/as.h.
3092         * dlltool.c: Add #pragma alloca for AIX to start of file.
3093         * nlmconv.c: Likewise.
3094
3095         * Makefile.in (distclean): Remove site.exp and site.bak.  Remove
3096         everything that clean removes.
3097
3098 Thu Apr  3 13:18:39 1997  Ian Lance Taylor  <ian@cygnus.com>
3099
3100         * Makefile.in (VERSION): Set to 2.8.1.
3101
3102         * Branched binutils 2.8.
3103
3104 Tue Apr  1 16:21:44 1997  Klaus Kaempf  <kkaempf@progis.de>
3105
3106         * configure.com: New file.
3107         * config.h-vms: Remove file.
3108         * makefile.vms: Update for new configure scheme.
3109
3110 Mon Mar 31 15:30:43 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>
3111
3112         * objcopy.c (make_same_dates): Use statbuf, not buf, if not
3113         HAVE_GOOD_UTIME_H.
3114
3115 Fri Mar 28 17:57:53 1997  Alan Modra  <alan@spri.levels.unisa.edu.au>
3116
3117         * Makefile.in ($(OBJDUMP_PROG)): Don't link against BFDLIB twice.
3118         * configure.in: Add AC_ARG_ENABLE for commonbfdlib.  If it is set,
3119         set OPCODES to empty.
3120         * configure: Rebuild.
3121
3122 Thu Mar 27 16:03:02 1997  Ian Lance Taylor  <ian@cygnus.com>
3123
3124         Based on patch from Marty Leisner <leisner@sdsp.mc.xerox.com>:
3125         * objcopy.c: Include <utime.h> or <sys/time.h>.
3126         (strip_options): Add "preserve-dates".
3127         (copy_options): Likewise.
3128         (copy_usage): Mention -p and --preserve-dates.
3129         (strip_usage): Likewise.
3130         (make_same_dates): New static function.
3131         (strip_main): Handle -p.
3132         (copy_main): Likewise.
3133         * binutils.texi, strip.1, objcopy.1: Document new option.
3134
3135         addr2line.c contributed by Ulrich Lauther
3136         <Ulrich.Lauther@zfe.siemens.de>:
3137         * addr2line.c: New file.
3138         * Makefile.in: Rebuild dependencies.
3139         (ADDR2LINE_PROG): New variable.
3140         (MANPAGES): Add addr2line.
3141         (PROGS): Add $(ADDR2LINE_PROG).
3142         (CFILES): Add addr2line.c.
3143         ($(ADDR2LINE_PROG)): New target.
3144         * binutils.texi: Document addr2line.
3145         * addr2line.1: New file.
3146
3147         * version.c (print_version): Update copyright date.
3148
3149 Mon Mar 24 10:52:45 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3150
3151         * objdump.c (disassemble_data): Don't exit if a file cannot be
3152         disassembled, instead just return.
3153
3154 Thu Mar 20 21:16:51 1997  Jeffrey A Law  (law@cygnus.com)
3155
3156         * size.c (usage): Make definition match its prototype.
3157         (display_bfd, lprint_number, rprint_number): Likewise.
3158         (print_berkeley_format, sysv_internal_printer): Likewise.
3159         (print_sysv_format): Likewise.
3160         * nm.c (set_print_radix, set_output_format): Likewise.
3161         * objcopy.c (filter_bytes): Likewise.
3162
3163 Tue Mar 18 16:39:55 1997  H.J. Lu  <hjl@lucon.org>
3164
3165         * Many files: Add function prototypes.
3166         * ar.c (mri_emul, get_pos_bfd): Make static.
3167         * arlex.l: Include "libiberty.h".  Don't declare strdup.  Use
3168         xstrdup rather than strdup.
3169         * arparse.y (yyerror): Make argument const.  Correct typo.
3170         * arsup.c (strdup): Don't declare.
3171         (ar_save): Use xstrdup rather than strdup.
3172         * filemode.c: Include "bucomm.h".
3173         * nm.c (usage): Make static.
3174         (print_symname): Make format and name const.
3175         * objcopy.c (cat): Remove.
3176         (copy_archive): Make output_target const.  Use concat, not cat.
3177         (copy_file, simple_copy, smart_rename): Make arguments const.
3178         * objdump.c (read_section_stabs): Likewise.
3179         (print_section_stabs): Likewise.
3180         (display_target_tables): Don't declare getenv.
3181         * strings.c (strings_object_file): Change file to const.
3182         (print_strings): Change filename to const.
3183         * Makefile.in: Rebuild dependencies.
3184
3185 Tue Mar 18 11:37:24 1997  Ian Lance Taylor  <ian@cygnus.com>
3186
3187         * configure.in: Add BFD_NEED_DECLARATION(getenv).
3188         * acconfig.h: Add NEED_DECLARATION_GETENV.
3189         * bucomm.h (getenv): Declare if NEED_DECLARATION_GETENV.
3190         * configure, config.in: Rebuild.
3191         * nlmconv.c (getenv): Don't declare.
3192
3193         * Makefile.in: Rebuild dependencies.
3194
3195 Sat Mar 15 15:35:56 1997  Ian Lance Taylor  <ian@cygnus.com>
3196
3197         Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
3198         * objdump.c: Include "demangle.h".
3199         (do_demangle): New static variable.
3200         (usage): Mention -C/--demangle.
3201         (long_options): Add "demangle".
3202         (objdump_print_symname): New static function.
3203         (objdump_print_addr_with_sym): Use objdump_print_symname.
3204         (disassemble_bytes): Likewise.
3205         (dump_reloc_set): Likewise.
3206         (dump_symbols): Demangle symbol name.
3207         (main): Handle -C.
3208         * binutils.texi, objdump.1: Document -C/--demangle.
3209
3210         * objdump.c (usage): Mention --no-show-raw-insn.
3211         (long_options): Add "no-show-raw-insn".
3212         (disassemble_bytes): Handle --no-show-raw-insn.
3213         * binutils.texi, objdump.1: Document --no-show-raw-insn.
3214
3215 Wed Mar 12 11:42:00 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3216
3217         * rddbg.c (free_saved_stabs): Set the strings to NULL after being
3218         freed.
3219
3220 Fri Feb 28 17:18:45 1997  Ian Lance Taylor  <ian@cygnus.com>
3221
3222         * bucomm.c (set_default_bfd_target): New function.
3223         * bucomm.h (set_default_bfd_target): Declare.
3224         * ar.c (main): Call set_default_bfd_target.
3225         * nlmconv.c (main): Likewise.
3226         * nm.c (main): Likewise.
3227         * objcopy.c (main): Likewise.
3228         * objdump.c (main): Likewise.
3229         * size.c (main): Likewise.
3230         * strings.c (main): Likewise.
3231         * Makefile.in (bucomm.o): New target, to define TARGET.
3232
3233 Tue Feb 25 21:28:38 1997  Ian Lance Taylor  <ian@cygnus.com>
3234
3235         * objdump.c (adjust_section_vma): New static variable.
3236         (usage): Mention --adjust-section-vma.
3237         (OPTION_ADJUST_VMA): Define.
3238         (long_options): Add "addjust-vma".
3239         (display_bfd): If adjust_section_vma is not 0, add it to all the
3240         section addresses.
3241         (main): Handle OPTION_ADJUST_VMA.
3242         * binutils.texi, objdump.1: Document --adjust-vma.
3243
3244 Fri Feb 14 18:46:47 1997  Ian Lance Taylor  <ian@cygnus.com>
3245
3246         * nm.c (print_symbol): Cache the BFD as well as the symbols and
3247         relocs, and don't try to use the symbols or relocs with a
3248         different BFD.
3249
3250 Thu Feb 13 21:34:43 1997  Klaus Kaempf  (kkaempf@progis.de)
3251
3252         * config.h-vms: sbrk() is provided on openVMS/Alpha.
3253         * makefile.vms: allow compiling with current gcc snapshot.
3254
3255 Thu Feb 13 20:14:40 1997  Ian Lance Taylor  <ian@cygnus.com>
3256
3257         * arsup.c, coffgrok.c, dlltool.c, nlmconv.c: Use xmalloc rather
3258         than malloc.
3259
3260 Wed Feb 12 16:12:02 1997  Ian Lance Taylor  <ian@cygnus.com>
3261
3262         * objdump.c (disassemble_data): Correct VMA argument to
3263         find_symbol_for_address.  Improve handling of code with no symbol
3264         followed by code with a symbol.
3265
3266 Wed Feb 12 12:16:47 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3267
3268         * objdump.c (disassemble_bytes): Make output of raw instructions
3269         work better for non-standard values of bytes_per_chunk and
3270         bytes_per_line.
3271
3272 Thu Feb  6 14:14:59 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>
3273
3274         * objdump.c (disassemble_bytes): Added code to allow some control
3275         over the way raw instructions are displayed.
3276
3277 Thu Feb  6 12:36:03 1997  Ian Lance Taylor  <ian@cygnus.com>
3278
3279         * stabs.c (struct bincl_file): Add next_stack field.
3280         (push_bincl): Put the new file on both bincl_list and
3281         bincl_stack.  Clear the file_types field.
3282         (pop_bincl): Use the next_stack field when popping the stack.
3283         Don't put the file on bincl_list.
3284         (find_excl): Include the file name when warning about an unfound
3285         N_EXCL.
3286
3287         * debug.c (debug_type_samep): Don't crash if we are passed NULL.
3288
3289 Thu Feb  6 11:54:24 1997  Alan Modra  <alan@spri.levels.unisa.edu.au>
3290
3291         * objcopy.1: Add missing space after .B.
3292
3293 Fri Jan 31 10:33:07 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3294
3295         * objdump.c (disassemble_data): Initialize `aux.require_sec'.
3296
3297 Wed Jan 29 13:21:21 1997  Ian Lance Taylor  <ian@cygnus.com>
3298
3299         * objdump.c (objdump_print_value): Add skip_zeroes parameter.
3300         Change all callers.
3301         (objdump_print_addr_with_sym): Likewise.  Call objdump_print_value
3302         to print address.
3303         (objdump_print_addr): New static function.
3304         (objdump_print_address): Just call objdump_print_addr.
3305         (disassemble_bytes): Print real address, not function offset.
3306         Skip a certain number of leading zeroes.
3307
3308         * objdump.c (disassemble_zeroes): New static variable.
3309         (usage): Mention --disassemble-zeroes.
3310         (long_options): Add "disassemble-zeroes".
3311         (disassemble_bytes): Check disassemble_zeroes.
3312
3313 Tue Jan 28 16:47:26 1997  Ian Lance Taylor  <ian@cygnus.com>
3314
3315         * objdump.c (disassemble_bytes): Don't skip zeroes if the
3316         disassembler has told us that we are in a branch delay slot.
3317
3318 Mon Jan 20 14:24:04 1997  Ian Lance Taylor  <ian@cygnus.com>
3319
3320         * size.c (berkeley_sum): Rewrite.  Skip sections which are not
3321         SEC_ALLOC.  Count SEC_READONLY sections as text.
3322
3323 Tue Jan 14 15:14:14 1997  Ian Lance Taylor  <ian@cygnus.com>
3324
3325         * Makefile.in (maintainer-clean realclean): Remove *.info*, not
3326         just *.info.  From H.J. Lu <hjl@lucon.org>.
3327
3328 Tue Dec 31 15:42:54 1996  Ian Lance Taylor  <ian@cygnus.com>
3329
3330         * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
3331
3332 Fri Dec 27 11:19:26 1996  Ian Lance Taylor  <ian@cygnus.com>
3333
3334         * configure.in: Work around bug in AC_FUNC_VFORK in autoconf 2.12.
3335         * configure: Rebuild.
3336
3337 Thu Dec 19 13:11:20 1996  Ian Lance Taylor  <ian@cygnus.com>
3338
3339         Based on patch from Andrew J Klossner <andrew@pogo.wv.tek.com>:
3340         * objcopy.c (OPTION_WEAKEN): Define.
3341         (copy_options): Add "weaken".
3342         (copy_usage): Mention --weaken.
3343         (weaken): New static variable.
3344         (filter_symbols): Handle weaken.
3345         (copy_object): Call filter_symbols if weaken.
3346         (copy_main): Handle OPTION_WEAKEN.
3347         * binutils.texi, objcopy.1: Document --weaken.
3348
3349 Wed Dec 18 22:49:13 1996  Stan Shebs  <shebs@andros.cygnus.com>
3350
3351         * mpw-make.sed: Use NewFolderRecursive for installation.
3352
3353 Sat Dec  7 10:17:25 1996  Jeffrey A Law  (law@cygnus.com)
3354
3355         * Makefile.in (install): Add "else true" clause to cater to
3356         broken "make" on some systems.
3357
3358 Fri Dec  6 17:21:41 1996  Ian Lance Taylor  <ian@cygnus.com>
3359
3360         * ieee.c (parse_ieee_bb): Always initialize namcopy to avoid gcc
3361         warning about uninitialized variable.
3362         (ieee_read_cxx_class): Likewise, for pf.
3363         (ieee_enum_type): Likewise, for i.
3364
3365 Tue Nov 26 17:01:25 1996  Ian Lance Taylor  <ian@cygnus.com>
3366
3367         * wrstabs.c (stab_array_type): Add casts when printing
3368         bfd_signed_vma values.
3369
3370         * configure: Rebuild with autoconf 2.12.
3371
3372 Mon Nov 25 16:53:18 1996  Ian Lance Taylor  <ian@cygnus.com>
3373
3374         * objdump.c (disassemble_data): Don't crash if there is no
3375         symbol.
3376
3377 Fri Nov 22 17:29:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3378
3379         * ar.c (open_inarch): Don't call bfd_openr with a null name.
3380
3381 Fri Nov  1 12:08:13 1996  Ian Lance Taylor  <ian@cygnus.com>
3382
3383         * binutils.texi: Add section on reporting bugs.
3384
3385 Thu Oct 31 18:20:53 1996  Ian Lance Taylor  <ian@cygnus.com>
3386
3387         * stabs.c (struct stab_handle): Add bincl_list field.
3388         (parse_stab): Pass value to push_bincl.  Call find_excl for
3389         N_EXCL.
3390         (struct bincl_file): Add hash, file and file_types fields.
3391         (push_bincl): Add hash parameter.  Save it in the new hash field.
3392         Save the file number in the new file field.
3393         (pop_bincl): Put the bincl_file on bincl_list, rather than freeing
3394         it.  Save the file types in the new file_types field.
3395         (find_excl): New static function.
3396
3397         * ieee.c (ieee_lineno): Don't compare line number addresses to
3398         info->highaddr (undo part of October 28 patch).
3399
3400 Tue Oct 29 16:40:22 1996  Ian Lance Taylor  <ian@cygnus.com>
3401
3402         * objdump.c (objdump_print_value): Don't print the empty string
3403         for zero.
3404
3405 Mon Oct 28 16:58:14 1996  Ian Lance Taylor  <ian@cygnus.com>
3406
3407         * stabs.c (struct stab_handle): Add function_end field.
3408         (start_stab): Initialize function_end.
3409         (finish_stab): Pass info->function_end to debug_end_function.
3410         (parse_stab): If info->function_end is set, use it as the address
3411         which ends a function.
3412
3413         * ieee.c (ieee_array_type): Remember the correct size.
3414
3415         * ieee.c (ieee_finish_compilation_unit): Permit coalescing ranges
3416         that are up to 0x1000 bytes apart, not just 64.
3417         (ieee_add_bb11_blocks): Don't bother to emit a BB11 that is less
3418         than 0x100 bytes.
3419         (ieee_lineno): Only emit line numbers that are less than
3420         info->highaddr.
3421
3422 Fri Oct 25 12:12:17 1996  Ian Lance Taylor  <ian@cygnus.com>
3423
3424         * ieee.c (struct ieee_defined_enum): Add defined field.
3425         (ieee_enum_type): If the enum tag has been seen before but not
3426         defined, reuse the same type index, and define it.
3427         (ieee_tag_type): If this enum has not been defined, add an
3428         undefined entry to the list of enums.
3429
3430         * objdump.c (disassemble_bytes): Let the disassembler override the
3431         number of bytes printed on a line.
3432
3433 Thu Oct 24 16:42:10 1996  Ian Lance Taylor  <ian@cygnus.com>
3434
3435         * objdump.c (prefix_addresses): New static variable.
3436         (long_options): Add "prefix-addresses".
3437         (compare_symbols): Sort BSF_FUNCTION symbols before other
3438         symbols.
3439         (find_symbol_for_address): New static function, broken out of
3440         objdump_print_address.
3441         (objdump_print_addr_with_sym): New static function, broken out of
3442         objdump_print_address.
3443         (objdump_print_address): Call new functions.
3444         (disassemble_bytes): New static function, broken out of
3445         disassemble_data.  Change disassembly format, unless
3446         prefix_addresses is set.
3447         (disassemble_data): Call disassemble_bytes.  Unless
3448         prefix_addresses is set, disassemble in chunks headed by a
3449         symbol.
3450         * binutils.texi, objdump.1: Document --prefix-addresses.
3451
3452         * rddbg.c (read_section_stabs_debugging_info): Preserve the
3453         backslash when concatenating multiple stabs strings.
3454
3455 Thu Oct 10 11:36:31 1996  Doug Evans  <dje@canuck.cygnus.com>
3456
3457         * dlltool.c (scan_open_obj_file): Fix loop exit test.
3458         Add missing parameter to def_exports.
3459
3460 Tue Oct  8 12:06:17 1996  Ian Lance Taylor  <ian@cygnus.com>
3461
3462         * Makefile.in (LEX_OPTIONS): Set to empty string.  -I -Cem is the
3463         default for flex, and is not recognized by lex.
3464
3465 Thu Oct  3 17:41:23 1996  Ian Lance Taylor  <ian@cygnus.com>
3466
3467         * binutils.texi (Target Selection): Document that you can now
3468         specify targets using configuration triplets.
3469
3470         * ar.c (usage): Declare.  Make sure all callers pass an argument.
3471
3472 Thu Oct  3 15:39:42 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
3473
3474         * Makefile.in (clean): Remove config.log.
3475
3476 Wed Oct  2 15:49:16 1996  Klaus Kaempf  <kkaempf@progis.de>
3477
3478         * makefile.vms: Bump version date.
3479
3480 Tue Oct  1 15:00:59 1996  Ian Lance Taylor  <ian@cygnus.com>
3481
3482         * version.c (print_version): New function.
3483         * bucomm.h (print_version): Declare.
3484         * ar.c (program_version): Don't declare.
3485         (do_show_version): Remove.
3486         (usage): Add help parameter.  Print bug report address.
3487         (main): Set is_ranlib at start.  Check for --help and --version.
3488         Call print_version, not do_show_version.
3489         * nlmconv.c (program_version): Don't declare.
3490         (main): Call print_version.
3491         (show_usage): Print bug report address.
3492         * nm.c (program_version, print_version): Don't declare.
3493         (usage): Print bug report address.
3494         (main): Call print_version.
3495         * objcopy.c (program_version): Don't declare.
3496         (copy_usage): Print bug report address.
3497         (strip_usage): Likewise.
3498         (strip_main): Call print_version.
3499         (copy_main): Likewise.
3500         * objdump.c (program_version): Don't declare.
3501         (usage): Print bug report address.
3502         (main): Call print_version.
3503         * size.c (program_version): Don't declare.
3504         (usage): Print bug report address.
3505         (main): Call print_version.
3506         * strings.c (program_version): Don't declare.
3507         (main): Call print_version.
3508         (usage): Print bug report address.
3509         * Makefile.in: Update dependencies.
3510
3511 Thu Sep 19 14:53:15 1996  Ian Lance Taylor  <ian@cygnus.com>
3512
3513         * ieee.c: Revert Monday's reflocalp patch, and apply this patch
3514         instead:
3515         (write_ieee_debugging_info): Write a dummy type at the end of the
3516         global type block.
3517
3518 Mon Sep 16 15:30:54 1996  Ian Lance Taylor  <ian@cygnus.com>
3519
3520         * ieee.c (struct ieee_write_type): Add reflocalp field.
3521         (ieee_pointer_type): Set reflocalp after pushing type.
3522         (ieee_function_type): If reflocalp is set, make this type local.
3523         (ieee_range_type, ieee_array_type, ieee_set_type): Likewise.
3524         (ieee_const_type, ieee_volatile_type): Likewise.
3525         (ieee_struct_field, ieee_class_baseclass): Likewise.
3526
3527         * ieee.c (struct ieee_info): Add global_types field.
3528         (parse_ieee_bb): When starting a BB1, initialize the types field
3529         to the global_types field.
3530         (parse_ieee_be): When ending a BB2, copy the types field to the
3531         global_types field.
3532
3533 Fri Sep 13 17:32:21 1996  Ian Lance Taylor  <ian@cygnus.com>
3534
3535         * objcopy.c (change_leading_char): New static variable.
3536         (OPTION_CHANGE_LEADING_CHAR): Define.
3537         (copy_options): Add "change-leading-char".
3538         (copy_usage): Mention --change-leading-char.
3539         (filter_symbols): Add obfd parameter.  Change all callers.
3540         Implement change_leading_char.
3541         (copy_object): Call filter_symbols if change_leading_char.
3542         (copy_main): Handle OPTION_CHANGE_LEADING_CHAR.
3543         * binutils.texi, objcopy.1: Document --change-leading-char.
3544
3545 Tue Sep  3 14:05:29 1996  Ian Lance Taylor  <ian@cygnus.com>
3546
3547         * ieee.c (ieee_enum_type): Don't check index into a NULL names
3548         array.
3549         * nm.c (sort_symbols_by_size): Always initialize next.
3550         * rdcoff.c (parse_coff_type): Warn about an incomprehensible
3551         type rather than crashing.
3552         * rddbg.c (read_symbol_stabs_debugging_info): Initialize f.
3553         * stabs.c (parse_stab_members): Set context in all cases.
3554
3555 Thu Aug 29 16:56:52 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3556
3557         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
3558         * configure: Regenerate.
3559
3560 Thu Aug 29 11:29:20 1996  Ian Lance Taylor  <ian@cygnus.com>
3561
3562         * objdump.c (L_tmpnam): Never define.
3563         (display_target_list): Use choose_temp_base instead of tmpnam.
3564         (display_info_table): Likewise.
3565
3566 Tue Aug 27 18:15:01 1996  Ian Lance Taylor  <ian@cygnus.com>
3567
3568         * stabs.c (parse_stab): An N_FUN symbol with an empty string
3569         indicates the end of a function.
3570
3571 Thu Aug 22 17:08:00 1996  Ian Lance Taylor  <ian@cygnus.com>
3572
3573         * wrstabs.c (struct string_hash_entry): Add next field.
3574         (struct stab_write_handle): Change strings to a pointer to
3575         string_hash_entry.  Add last_strings field.  Remove strings_alloc
3576         field.
3577         (string_hash_newfunc): Initialize next field.
3578         (stab_write_symbol): Copy string into hash table rather than into
3579         buffer.  Keep a list of hash table entries.
3580         (write_stabs_in_sections_debugging_info): Initialize last_string.
3581         Copy strings from list of hash table entries in memory.
3582         (stab_modify_type): If the entry on the stack is a definition,
3583         make a new definition rather than failing an assert.
3584         (stab_array_type): The size is only zero if high is strictly less
3585         than low.
3586
3587         * ieee.c (struct ieee_info): Add saw_filename field.
3588         (parse_ieee): Initialize saw_filename.
3589         (parse_ieee_bb): Set saw_filename for a BB1 or BB2.  In a BB1,
3590         discard the current variables and types.  In a BB10, if no
3591         filename has been seen, call debug_set_filename.
3592         (parse_ieee_ty): In case 'g', the type is optional.
3593
3594         * prdbg.c (pr_fix_visibility): Don't abort on
3595         DEBUG_VISIBILITY_IGNORE.
3596
3597         * debug.c (debug_name_type): Correct error message.
3598
3599         * configure.in: Substitute HLDENV.
3600         * configure: Rebuild.
3601         * Makefile.in (HLDENV): New variable.  Use it whenever linking a
3602         program.
3603
3604 Thu Aug 15 19:30:41 1996  Stan Shebs  <shebs@andros.cygnus.com>
3605
3606         * mpw-make.sed: Add symbolic doublequotes around the version
3607         number.
3608
3609 Thu Aug  8 12:27:52 1996  Klaus Kaempf  <kkaempf@progis.de>
3610
3611         * makefile.vms: Add better support for DEC C compilation.
3612         Add new macros as in Makefile.in.
3613
3614 Wed Aug  7 14:27:33 1996  Philippe De Muyter  <phdm@info.ucl.ac.be>
3615
3616         * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
3617         * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
3618         (NEED_DECLARATION_SBRK): New macro.
3619         * configure, config.in: Rebuild.
3620         * bucomm.h (strstr): Declare if NEED_DECLARATION_STRSTR.
3621         (sbrk): Declare if HAVE_SBRK and NEED_DECLARATION_SBRK.
3622
3623         * prdbg.c (pr_end_struct_type): Avoid using a string constant in
3624         assert, for the benefit of broken assert macros.
3625
3626 Fri Jul 26 14:06:50 1996  Ian Lance Taylor  <ian@cygnus.com>
3627
3628         * objdump.c (disassemble_data): Set disasm_info.flavour from
3629         abfd.
3630
3631 Tue Jul 23 13:59:54 1996  Ian Lance Taylor  <ian@cygnus.com>
3632
3633         * dlltool.c (secdata): In non DLLTOOL_PPC case, change alignment
3634         of .text section to 2.
3635
3636 Mon Jul 22 08:46:15 1996  Stu Grossman  (grossman@lisa.cygnus.com)
3637
3638         * objdump.c (dump_section_stabs):  Fix test for stabs sections
3639         ending with numbers.  This fixes a problem with .stab being
3640         confused with .stab.index.
3641
3642 Wed Jul 10 13:32:28 1996  Ian Lance Taylor  <ian@cygnus.com>
3643
3644         * stabs.c (stab_demangle_fund_type): Return a void * for a
3645         template, rather than simply aborting.
3646
3647 Mon Jul  8 15:28:05 1996  Ian Lance Taylor  <ian@cygnus.com>
3648
3649         * ar.c (open_inarch): Add file parameter.  Change all callers.  If
3650         this is a newly created archive, set the target based on the
3651         file.
3652         * arsup.h (open_inarch): Update declaration.
3653
3654 Thu Jul  4 12:00:55 1996  Ian Lance Taylor  <ian@cygnus.com>
3655
3656         * Makefile.in (VERSION): Set to cygnus-2.7.1.
3657
3658         * Released binutils 2.7.
3659
3660         * rdcoff.c (parse_coff): Get address to pass to debug_end_function
3661         from function size, not value of .ef symbol.  From Ning
3662         Mosberger-Tang <ning@AZStarNet.com>.
3663
3664 Sat Jun 29 21:18:09 1996  Ian Lance Taylor  <ian@cygnus.com>
3665
3666         * objcopy.c (strip_main): Add -o option, and handle it.
3667         (strip_usage): Mention -o.
3668         * binutils.texi, strip.1: Mention -o.
3669
3670 Mon Jun 24 17:19:02 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
3671
3672         * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
3673         INSTALL_PROGRAM, INSTALL_DATA): Use autoconf set values.
3674         (docdir): Removed.
3675         * configure.in (AC_PREREQ): Autoconf 2.5 or higher.
3676
3677 Mon Jun 24 11:59:13 1996  Ian Lance Taylor  <ian@cygnus.com>
3678
3679         * objdump.c (endian): New static variable.
3680         (usage): Mention -EB/-EL/--endian.
3681         (long_options): Add "endian".
3682         (disassemble_data): If endianness was specified, replace
3683         abfd->xvec with a copy of itself with the given endianness.
3684         (main): Handle -EB/-EL/--endian.
3685         * binutils.texi, objdump.1: Mention -EB/-EL/--endian.
3686
3687         * objdump.c: Make most variables and functions static.
3688
3689         * configure.in: On alpha*-*-osf*, link against libbfd.a if not
3690         using shared libraries.
3691         * configure: Rebuild with autoconf 2.10.
3692
3693 Sun Jun 23 14:47:36 1996  Kim Knuttila  <krk@cygnus.com>
3694
3695         * dlltool.c (secdata): Changed .rdata to .reldata so .reloc will work.
3696         (make_one_lib_file): Removed cruft. (#if 1)
3697
3698 Wed Jun 19 14:46:38 1996  Ian Lance Taylor  <ian@cygnus.com>
3699
3700         * objdump.c (stabs): Change from struct internal_nlist * to
3701         bfd_byte *.
3702         (print_section_stabs): Fetch stabs information directly, rather
3703         than assuming that struct internal_nlist is the right size.
3704
3705         * binutils.texi: Document change to binary format: file position
3706         based on load address, not section VMA.
3707
3708         * bucomm.h: Define SEEK_SET, SEEK_CUR, and SEEK_END if they are
3709         not already defined.
3710
3711 Tue Jun 18 18:25:00 1996  Ian Lance Taylor  <ian@cygnus.com>
3712
3713         * Makefile.in (DISTSTUFF): Add deflex.c.
3714
3715 Tue Jun 18 15:03:44 1996  Klaus Kaempf  <kkaempf@progis.de>
3716
3717         * config.h-vms, makefile.vms: New files.
3718
3719 Mon Jun 17 09:47:31 1996  Ian Lance Taylor  <ian@cygnus.com>
3720
3721         * dlltool.c (make_one_lib_file): Use BFD_RELOC_RVA rather than
3722         BFD_RELOC_32 in IDATA7.
3723
3724 Wed Jun 12 11:52:06 1996  Ian Lance Taylor  <ian@cygnus.com>
3725
3726         * nm.c (struct get_relocs_info): Define.
3727         (line_numbers): New static variable.
3728         (long_options): Add "line-numbers".
3729         (usage): Mention -l and --line-numbers.
3730         (main): Handle -l.
3731         (print_symbol): Print line numbers if requested.
3732         (get_relocs): New static function.
3733         * binutils.texi, nm.1: Document -l/--line-numbers.
3734
3735 Tue Jun 11 20:12:15 1996  Ian Lance Taylor  <ian@cygnus.com>
3736
3737         * objdump.c (dump_reloc_set): Add sec parameter.  Change all
3738         callers.  If with_line_numbers is set, display line numbers of
3739         relocation entries.
3740         * binutils.texi, objdump.1: Document -l with -r.
3741
3742 Mon Jun 10 23:42:59 1996  Ian Lance Taylor  <ian@cygnus.com>
3743
3744         * ar.c (open_inarch): Report BFD error message if an archive can
3745         not be recognized.  List matching formats if the file is
3746         ambiguously recognized.
3747         (ranlib_touch): Likewise.
3748
3749 Thu Jun  6 13:56:14 1996  Ian Lance Taylor  <ian@cygnus.com>
3750
3751         * README: Add notes on how to build if you don't have ar.
3752
3753         * Makefile.in: Remove old incorrect setting of CC.
3754
3755 Tue Jun  4 10:52:49 1996  Tom Tromey  <tromey@csk3.cygnus.com>
3756
3757         * Makefile.in (install): Don't check to see if tooldir exists.
3758         Make $(tooldir) and $(tooldir)/bin.
3759
3760 Mon Jun  3 17:40:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3761
3762         * strings.c (main): Make main an int function, not void.
3763
3764 Fri May 31 13:59:24 1996  Ian Lance Taylor  <ian@cygnus.com>
3765
3766         * nm.c (filter_symbols): Check for BSF_WEAK as well as
3767         BSF_GLOBAL.
3768         * objcopy.c (filter_symbols): Likewise.
3769
3770 Wed May  8 16:57:20 1996  Ian Lance Taylor  <ian@cygnus.com>
3771
3772         * objcopy.c (copy_object): Make clear that it is only a warning
3773         when the output file can not represent the architecture.
3774
3775 Fri May  3 11:30:17 1996  Ian Lance Taylor  <ian@cygnus.com>
3776
3777         * objdump.c (disassemble_data): Don't refer to bytes past the end
3778         of data.
3779
3780 Wed Apr 24 14:10:21 1996  Ian Lance Taylor  <ian@cygnus.com>
3781
3782         * rddbg.c (read_symbol_stabs_debugging_info): Move call to
3783         free_saved_stabs outside the loop over the symbols.
3784
3785 Tue Apr 23 12:56:11 1996  Ian Lance Taylor  <ian@cygnus.com>
3786
3787         * objdump.c (compare_symbols): Sort symbols whose names start with
3788         `.' after other symbols.  If no other decision can be made, sort
3789         symbols by name.
3790
3791 Thu Apr 18 16:02:11 1996  Ian Lance Taylor  <ian@cygnus.com>
3792
3793         * dep-in.sed: Substitute $(BFDDIR) for @BFDDIR@.
3794         * Makefile.in: Rebuild dependencies.
3795         (dep.sed): Substitute $(BFDDIR) for @BFDDIR@.
3796
3797 Tue Apr 16 13:50:22 1996  Ian Lance Taylor  <ian@cygnus.com>
3798
3799         * rdcoff.c: New file.
3800         * rddbg.c (read_debugging_info): Read COFF symbols if COFF flavour
3801         and no stabs were found.
3802         * budbg.h (parse_coff): Declare.
3803         * Makefile.in: Rebuild dependencies.
3804         (CFILES): Add rdcoff.c.
3805         (DEBUG_OBJS): Add rdcoff.o.
3806
3807 Mon Apr 15 15:55:01 1996  Doug Evans  <dje@canuck.cygnus.com>
3808
3809         * nlmconv.c (choose_temp_base{,_try}): Delete, in libiberty now.
3810         (link_inputs): Update call to choose_temp_base.
3811
3812 Mon Apr  8 14:40:05 1996  Ian Lance Taylor  <ian@cygnus.com>
3813
3814         * configure.in: Permit --enable-shared to specify a list of
3815         directories.
3816         * configure: Rebuild.
3817
3818 Fri Mar 29 16:11:33 1996  Ian Lance Taylor  <ian@cygnus.com>
3819
3820         * objdump.c (dump_section_header): Print the SEC_LINK_ONCE flag
3821         and the SEC_LINK_DUPLICATES field.
3822
3823 Fri Mar 29 11:35:55 1996  J.T. Conklin  (jtc@lisa.cygnus.com)
3824
3825         * nlmconv.1: Changed to be recognized by catman -w on Solaris.
3826
3827 Thu Mar 28 14:17:02 1996  Ian Lance Taylor  <ian@cygnus.com>
3828
3829         * wrstabs.c (stab_enum_type): Set buf before using it.
3830
3831 Fri Mar 22 15:49:08 1996  Ian Lance Taylor  <ian@cygnus.com>
3832
3833         * stabs.c (struct stab_handle): Add field abfd.
3834         (start_stab): Add abfd parameter.
3835         (parse_stab_string): Skip the symbol leading char when searching
3836         for the value of a global symbol.
3837         * budbg.h (start_stab): Update declaration.
3838         * rddbg.c (read_section_stabs_debugging_info): Pass abfd to
3839         start_stab.
3840         (read_symbol_stabs_debugging_info): Likewise.
3841
3842 Thu Mar 21 12:40:48 1996  Ian Lance Taylor  <ian@cygnus.com>
3843
3844         * wrstabs.c (stab_function_type): Output an empty typedef for an
3845         unused argument, rather than making up a meaningless name.
3846         (stab_variable): Use N_RSYM for a DEBUG_REGISTER variable.
3847
3848         * ieee.c (struct ieee_info): Add global_vars field.
3849         (parse_ieee_be): When ending the global typedef block, copy the
3850         variables into info->global_vars.
3851         (parse_ieee_atn): Don't require an NN record for a pmisc ATN.
3852         (ieee_read_reference): Search the global variables after the local
3853         variables.
3854
3855 Wed Mar 20 18:08:19 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3856
3857         * objdump.c (disassemble_data): Make sure sym_name is always set.
3858         (dump_section_header): Always put a space after the section name.
3859         (dump_bfd_header): Terminate output with newline.
3860
3861 Wed Mar 20 16:35:20 1996  Ian Lance Taylor  <ian@cygnus.com>
3862
3863         * wrstabs.c: New file.
3864         * budbg.h (write_stabs_in_sections_debugging_info): Declare.
3865         * objcopy.c (write_debugging_info): For COFF or ELF, output stabs
3866         in sections.
3867         * Makefile.in: Rebuild dependencies.
3868         (CFILES): Add wrstabs.c.
3869         (WRITE_DEBUG_OBJS): New variable.
3870         ($(OBJCOPY_PROG)): Use $(WRITE_DEBUG_OBJS), not $(DEBUG_OBJS).
3871         ($(STRIP_PROG)): Likewise.
3872
3873         * stabs.c (parse_stab_members): Make type stub detection more like
3874         gdb.
3875
3876         * ieee.c (struct ieee_handle): Add fields complex_float_index and
3877         complex_double_index.
3878         (ieee_complex_type): Cache type index in complex_float_index and
3879         complex_double_index, depending upon size.  Set size on type stack
3880         to size * 2.
3881
3882         * ieee.c (ieee_empty_type): Use builtin_unknown, not 0.
3883         (ieee_void_type): Use builtin_void, not 1.
3884
3885         * ieee.c (parse_ieee_ty): Handle 'V' type code.
3886         (parse_ieee_atn): Don't require two numbers for type 10.
3887
3888         * ieee.c (parse_ieee_be): Add one to offset at end of function or
3889         block.
3890
3891         * ieee.c (struct ieee_block): Add field skip.
3892         (parse_ieee_bb): Don't call debug_record_function for __XRYCPP
3893         function, and set skip field.
3894         (parse_ieee_be): Don't call debug_end_function if skip is set.
3895
3896         * debug.c (struct debug_handle): Add fields current_write_lineno
3897         and current_write_lineno_index.
3898         (debug_write): Initialize current_write_lineno and
3899         current_write_lineno_index for each unit.  Call
3900         debug_write_linenos rather than writing out the line numbers
3901         directly.
3902         (debug_write_function): Call debug_write_linenos.
3903         (debug_write_block): Likewise.
3904         (debug_write_linenos): New static function.
3905
3906         * debug.c (debug_write_type): For DEBUG_KIND_FUNCTION, push return
3907         type before arguments.
3908
3909 Mon Mar 18 18:05:33 1996  Ian Lance Taylor  <ian@cygnus.com>
3910
3911         * configure.in: Add AC_FUNC_VFORK.
3912         * configure, config.in: Rebuild.
3913         * dlltool.c, nlmconv.c: Include <vfork.h> if HAVE_VFORK_H is
3914         defined.
3915
3916         * stabs.c (parse_stab_range_type): A complex type is defined as a
3917         subrange of itself with the high bound zero.
3918         * ieee.c (ieee_complex_type): Don't crash on sizes of 12 or 16.
3919
3920 Tue Mar 12 12:09:43 1996  Ian Lance Taylor  <ian@cygnus.com>
3921
3922         * ieee.c (ieee_write_undefined_tag): Switch to global_types even
3923         if it is not empty.
3924         (ieee_tag_type): For an enum, look through info->enums.
3925
3926         * configure: Rebuild with autoconf 2.8.
3927
3928         * debug.c (debug_type_samep): Don't loop endlessly in
3929         DEBUG_KIND_ENUM case.  From Eric Baur <ecb@nexen.com>.
3930
3931 Mon Mar 11 12:35:03 1996  Ian Lance Taylor  <ian@cygnus.com>
3932
3933         * rddbg.c (read_section_stabs_debugging_info): Call save_stab for
3934         each stab entry, call stab_context on an error, and call
3935         free_saved_stabs before rturning.
3936         (read_symbol_stabs_debugging_info): Likewise.
3937         (SAVE_STABS_COUNT): Define.
3938         (struct saved_stab): Define.
3939         (saved_stabs, saved_stabs_index): New static variables.
3940         (save_stab, stab_context, free_saved_stabs): New static functios.
3941
3942         * objdump.c (stab_name): Remove.
3943         (struct stab_print): Remove.
3944         (stab_print): Remove.
3945         (dump_stabs): Don't initialize stab_name.
3946         (print_section_stabs): Call bfd_get_stab_name rather than using
3947         the stab_name array.
3948
3949 Tue Feb 27 19:52:01 1996  Ian Lance Taylor  <ian@cygnus.com>
3950
3951         * prdbg.c (pr_int_constant): Initialize info correctly.
3952         (pr_float_constant): Likewise.
3953
3954 Mon Feb 26 18:11:37 1996  Stan Shebs  <shebs@andros.cygnus.com>
3955
3956         * mpw-make.sed: Update to handle shared library support.
3957
3958 Sat Feb 24 11:21:49 1996  Alan Modra  <alan@spri.levels.unisa.edu.au>:
3959
3960         * Makefile.in ($(OBJDUMP_PROG)): Search $(BFDLIB) before
3961         $(OPCODES).
3962
3963 Thu Feb 15 12:44:45 1996  Ian Lance Taylor  <ian@cygnus.com>
3964
3965         * configure.in: Don't tamper with LDFLAGS.  Call AC_PROG_CC before
3966         configure.host.
3967         * configure: Rebuild.
3968
3969         * configure.in: Substitute RPATH_ENVVAR.
3970         * configure: Rebuild.
3971         * Makefile.in (RPATH_ENVVAR): New variable.
3972         (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
3973
3974         * objcopy.c (smart_rename): Rather than doing chmod then chown, do
3975         chmod without setuid, then chown, then chmod with setuid.
3976
3977 Wed Feb 14 16:46:42 1996  Martin Anantharaman  <martin@mail.imech.uni-duisburg.de>
3978
3979         * arsup.c (map_over_list): Reindent.  Don't assume that the
3980         function does not delete the BFD.
3981         (ar_addlib_doer): Don't set prev->next if prev is NULL.
3982
3983 Wed Feb 14 15:12:17 1996  Ian Lance Taylor  <ian@cygnus.com>
3984
3985         * ieee.c (ieee_regno_to_genreg): Convert register numbers for m68k
3986         and i960.
3987         (ieee_genreg_to_regno): Likewise.
3988
3989 Mon Feb 12 14:19:59 1996  Ian Lance Taylor  <ian@cygnus.com>
3990
3991         * ieee.c: Extensive changes to write code to put types in the
3992         global type block when possible, to output ranges for all memory
3993         occupied by the module, and to improve efficiency.
3994
3995         * debug.c (struct debug_handle): Remove class_mark field.  Add
3996         id_list and compare_list fields.
3997         (struct debug_class_id): Define.
3998         (struct debug_type_compare_list): Define.
3999         (debug_write): Initialize info->id_list
4000         (debug_write_name): Remove reference to info->class_mark.
4001         (debug_write_type): Get id for all structs and classes.  Simplify
4002         test for whether struct has already been written.
4003         (debug_write_class_type): Get id for all classes.  Simplify test
4004         for whether class has already been written.
4005         (debug_write_block): Don't write out blocks other than the top
4006         level block if they have no local variables.
4007         (debug_set_class_id): New static function.
4008         (debug_type_samep): New static function.
4009         (debug_class_type_samep): New static function.
4010         * prdbg.c (pr_start_struct_type): Always print id.
4011         (pr_start_class_type): Likewise.
4012         (pr_tag_type): Likewise.
4013
4014         * stabs.c (struct stab_handle): Add syms and symcount fields.
4015         (start_stab): Add syms and symcount parameters.  Change all
4016         callers.
4017         (parse_stab_string): Look up global variables in the symbol table
4018         to get the right value.
4019         * budbg.h (start_stab): Update declaration.
4020         * rddbg.c (read_section_stabs_debugging_info): Add syms and
4021         symcount parameters.  Change all callers.
4022
4023         * stabs.c (parse_stab_array_type): If the index type is 0, use
4024         int.
4025
4026 Wed Feb  7 14:17:45 1996  Ian Lance Taylor  <ian@cygnus.com>
4027
4028         * ieee.c (ieee_start_compilation_unit): Clear modified and
4029         modified_alloc fields of info.
4030
4031         * configure.in: Check for --enable-shared.  Substitute new
4032         variables BFDLIB and OPCODES.
4033         * configure: Rebuild.
4034         * Makefile.in (BFDLIB): Set to @BFDLIB@.
4035         (OPCODES): Set to @OPCODES@.
4036
4037 Mon Feb  5 16:18:42 1996  Ian Lance Taylor  <ian@cygnus.com>
4038
4039         Support for building bfd and opcodes as shared libraries, based on
4040         patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
4041         * configure.in (HLDFLAGS): New substitution.
4042         * configure: Rebuild.
4043         * Makefile.in (HLDFLAGS): New variable.  Make all links use
4044         $(HLDFLAGS) before $(CFLAGS) and $(LDFLAGS).
4045         (BFDLIB_DEP): New variable.  Replace all occurrences of $(BFD) as
4046         a dependency with $(BFDLIB_DEP).  Remove $(BFD) as a dependency if
4047         there is also a dependency on $(ADDL_DEPS).
4048         (BFDLIB): Rename from BFD; change all uses; set to -L../bfd -lbfd.
4049         (OPCODES_DEP): New variable.  Replace all occurrends of $(OPCODES)
4050         as a dependency with $(OPCODES_DEP).
4051         (OPCODES): Set to -L../opcodes -lopcodes.
4052         (ADDL_DEPS): New variable.  Replace all occurrences of
4053         $(ADDL_LIBS) as a dependency with $(ADDL_DEPS).
4054         (check): Set LD_LIBRARY_PATH in the environment.
4055         (config.status): Depend upon BFD configure.host and config.bfd.
4056
4057 Fri Feb  2 17:02:59 1996  Doug Evans  <dje@charmed.cygnus.com>
4058
4059         * objdump.c: #include stdarg.h or varargs.h.
4060         (objdump_print_value): Change FILE* arg to struct disassemble_info*.
4061         All callers updated.  Use fprintf_func.
4062         (objdump_print_address): Consistently use fprintf_func.
4063         (objdump_sprintf): New function.
4064         (disassemble_data): Print insn into a buffer, print raw insn ourselves,
4065         then print insn mnemonic.
4066
4067 Fri Feb  2 16:48:55 1996  Ian Lance Taylor  <ian@cygnus.com>
4068
4069         * configure: Regenerate.
4070
4071 Thu Feb  1 09:38:18 1996  Steve Chamberlain  <sac@slash.cygnus.com>
4072
4073         * configure.in (i[3-6]86-*-win32): Becomes i[3-6]86-*-cygwin32.
4074         (powerpc*-*-cygwin32): New.
4075         * configure: Regenerated.
4076
4077 Wed Jan 31 13:22:03 1996  Richard Henderson  <rth@tamu.edu>
4078
4079         * Makefile.in (distclean): Remove $(DEMANGLER_PROG).1.
4080
4081 Mon Jan 29 17:36:29 1996  Ian Lance Taylor  <ian@cygnus.com>
4082
4083         Based on patches from H J Lu <hjl@zoom.com>:
4084         * objcopy.c (remove_leading_char): New static variable.
4085         (OPTION_REMOVE_LEADING_CHAR): Define.
4086         (copy_usage): Mention --remove-leading-char.
4087         (filter_symbols): If remove_leading_char, and the first character
4088         of a global symbol matches the symbol leading char of the BFD,
4089         remove the first character.
4090         (copy_object): Filter the symbols if remove_leading_char is set.
4091         (copy_main): Handle --remove-leading-char.
4092         * binutils.texi, objcopy.1: Document --remove-leading-char.
4093
4094 Sat Jan 27 15:40:13 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
4095
4096         * objdump.c (fprintf): Add prototype to avoid compiler warning on
4097         SunOS.
4098
4099 Fri Jan 26 11:53:42 1996  Ian Lance Taylor  <ian@cygnus.com>
4100
4101         * binutils.texi (nm): Improve documentation on symbol types.
4102         (objdump): Reference the stabs manual from the discussion of the
4103         --stabs option.
4104
4105 Thu Jan 25 11:21:46 1996  Raymond Jou  <rjou@mexican.cygnus.com>
4106
4107         * mpw-make.sed: Add a "stamps" target.
4108
4109 Thu Jan 25 13:51:44 1996  Ian Lance Taylor  <ian@cygnus.com>
4110
4111         * objdump.c (dump_headers, dump_section_header): Change objdump -h
4112         output to be simpler and to include section file offsets.
4113
4114 Wed Jan 24 12:06:05 1996  Ian Lance Taylor  <ian@cygnus.com>
4115
4116         * stabs.c (parse_stab_members): Don't adjust voffset.
4117
4118         * ieee.c (ieee_read_cxx_class): Don't multiply voffset by 4.
4119         (struct ieee_write_type): Add name field.
4120         (struct ieee_type_class): Remove name field.  Change all uses to
4121         use new name field in type instead.
4122         (struct ieee_name_type): Likewise.
4123         (ieee_start_struct_type): Initialize name field of type.
4124         (ieee_start_class_type): Don't initialize classdef entry of tag.
4125         (ieee_class_method_var): Don't adjust voffset.
4126         (ieee_end_class_type): Likewise.
4127         (ieee_tag_type): Initialize new name field of type.
4128         (ieee_typdef): Set name after copying in type information.
4129
4130         * debug.c (VOFFSET_STATIC_METHOD): Define as -1, not 1.
4131
4132         * ieee.c (struct ieee_modified_type): Define.
4133         (struct ieee_handle): Add modified and modified_alloc fields.
4134         (ieee_get_modified_info): New static function.
4135         (ieee_pointer_type): Cache type index.
4136         (ieee_const_type): Likewise.
4137         (ieee_volatile_type): Likewise.
4138
4139         * ieee.c (ieee_define_named_type): When creating a tag for an
4140         anonymous struct, copy the name into memory.
4141         (ieee_tag_type): Likewise.
4142         * debug.c (debug_write_type): Only check and set id field for an
4143         unnamed object.
4144         (debug_write_class_type): Likewise.
4145
4146         * ieee.c: Various changes to write out types for functions and
4147         references, and to not write out unnecessary function types.
4148
4149         * ieee.c (struct ieee_var): Remove variable field.  Add kind
4150         field, and define some enum constants for it.
4151         (parse_ieee_ty): Set kind field of variable for 'x' and 'X' types.
4152         (parse_ieee_atn): Make an indirect slot for an external variable,
4153         although we otherwise don't record it.  Set kind field rather than
4154         variable field of pvar.
4155         (ieee_read_cxx_class): Try to get the type of a static member.
4156         (ieee_read_reference): Check kind field rather than variable
4157         field.
4158
4159 Tue Jan 23 15:54:18 1996  Ian Lance Taylor  <ian@cygnus.com>
4160
4161         * ieee.c: Various changes to handle reading C++ reference type
4162         information.
4163
4164         * debug.h (enum debug_var_kind): Add DEBUG_VAR_ILLEGAL.
4165         (enum debug_parm_kind): Add DEBUG_PARM_ILLEGAL.
4166         * debug.c (debug_get_parameter_types): Handle DEBUG_KIND_FUNCTION.
4167
4168         * ieee.c: Various changes to write out definitions of C++ classes.
4169
4170         * debug.c (debug_append_filename): Remove.
4171         * debug.h (debug_append_filename): Don't declare.
4172
4173         * stabs.c (struct stab_handle): Remove last_type field.  Add
4174         so_string and so_value fields.
4175         (finish_stab): Call stab_emit_pending_vars before calling
4176         debug_end_function.  Don't warn about pending variables.
4177         (parse_stab): Accumulate N_SO strings until a non N_SO symbol is
4178         seen, rather than calling debug_append_filename.  Call
4179         stab_emit_pending_vars before calling debug_end_function.  Don't
4180         set info->last_type.
4181
4182 Tue Jan 23 09:53:54 1996  Doug Evans  <dje@charmed.cygnus.com>
4183
4184         * objdump.c (disassemble_data): Handle unknown endianness.
4185         Pass fprintf to INIT_DISASSEMBLE_INFO.
4186
4187 Mon Jan 22 16:46:43 1996  Doug Evans  <dje@charmed.cygnus.com>
4188
4189         Add new option --show-raw-insn.
4190         * objdump.c (show_raw_insn): New global.
4191         (usage): Update.
4192         (long_options): Update.
4193         (disassemble_data): Set disasm_info.flags if --show-raw-insn.
4194
4195         * objdump.c (disassemble_data): Set new arch,mach,endian fields in
4196         disasm_info.
4197
4198 Mon Jan 22 19:29:36 1996  Ian Lance Taylor  <ian@cygnus.com>
4199
4200         * ieee.c: Extensive changes to pass a single info argument around
4201         in the reading routines, rather than several arguments.  Add code
4202         to read C++ debugging records.
4203
4204         * debug.h (debug_get_type_size): Declare.
4205         (debug_get_field_name): Declare.
4206         (debug_get_field_bitpos): Declare.
4207         (debug_get_field_bitsize): Declare.
4208         (debug_get_field_visibility): Declare.
4209         (debug_get_field_physname): Declare.
4210         * debug.c (debug_get_real_type): Handle DEBUG_KIND_TAGGED.
4211         (debug_get_type_size): New function.
4212         (debug_get_field_name): New function.
4213         (debug_get_field_bitpos): New function.
4214         (debug_get_field_bitsize): New function.
4215         (debug_get_field_visibility): New function.
4216         (debug_get_field_physname): New function.
4217         (debug_write_type): Make sure we pass the real kind, not INDIRECT,
4218         to tag_type.  Pass the name recursively for INDIRECT.
4219
4220 Fri Jan 19 12:31:57 1996  Ian Lance Taylor  <ian@cygnus.com>
4221
4222         * debug.h (struct debug_write_fns): Remove ellipsis_type.  Add int
4223         and boolean parameters to function_type.  Add boolean parameter to
4224         method_type.
4225         (debug_make_ellipsis_type): Don't declare.
4226         (debug_make_function_type): Add debug_type * and boolean
4227         parameters.  Change all callers.
4228         (debug_make_method_type): Add boolean parameter.  Change all
4229         callers.
4230         (debug_get_parameter_types): Add boolean * parameter.  Change all
4231         callers.
4232         (debug_get_target_type): Declare.
4233         * debug.c (struct debug_function_type): Add fields arg_types and
4234         varargs.
4235         (struct debug_method_type): Add field varargs.
4236         (debug_ellipsis_type, ELLIPSIS_P): Remove.
4237         (debug_make_ellipsis_type): Remove.
4238         (debug_make_function_type): Add arg_types and varargs parameters.
4239         (debug_make_method_type): Add varargs parameter.
4240         (debug_get_parameter_types): Add pvarargs parameter.
4241         (debug_get_target_type): New function.
4242         (debug_write_type): In case DEBUG_KIND_FUNCTION, push argument
4243         types and pass count to function_type.  In DEBUG_KIND_METHOD, use
4244         a signed int for the count, don't call ellipsis_type, and pass
4245         varargs to method_type.
4246         * stabs.c (struct stab_demangle_info): Add varargs field.
4247         (stab_demangle_argtypes): Add pvarargs parameter.  Change all
4248         callers.
4249         (stab_demangle_args): Likewise.
4250         (stab_demangle_type): In case 'F', pick up argument types.
4251         * prdbg.c (pr_ellipsis_type): Remove.
4252         (pr_function_type): Add argcount and varargs parameters.
4253         (pr_method_type): Add varargs parameter.
4254         * ieee.c (ieee_ellipsis_type): Remove.
4255         (ieee_function_type): Add argcount and varargs parameters.
4256         (ieee_method_type): Add varargs parameter.  Remove most of
4257         function body, and just call ieee_function_type.
4258
4259         * stabs.c: Include "demangle.h".  Added several new static
4260         functions not listed below to demangle argument types; they are
4261         all called via stab_demangle_argtypes.
4262         (finish_stab): If the kind of an undefined tag is
4263         DEBUG_KIND_ILLEGAL, use DEBUG_KIND_STRUCT instead.  Warn if there
4264         are any pending variable.
4265         (parse_stab): Don't close the function when the block depth goes
4266         to zero.  Pass value to debug_end_function.
4267         (parse_stab_string): In case 'T', pass the name to
4268         parse_stab_type.
4269         (parse_stab_type): In case 'x', use stab_find_tagged_type.  In
4270         case '#', handle functions with variable numbers of arguments.
4271         (parse_stab_struct_type): Add tagname parameter.  Change all
4272         callers.
4273         (parse_stab_members): Add tagname and typenums parameters.  Change
4274         all callers.  If the type of a method is a stub, call
4275         parse_stab_argtypes to demangle the argument types and get the
4276         physical name of the function.
4277         (parse_stab_argtypes): New static function.
4278         (stab_record_variable): For a DEBUG_GLOBAL or DEBUG_STATIC
4279         variable, call debug_record_variable immediately.
4280         (stab_find_tagged_type): New static function.
4281
4282         * debug.h (enum debug_type_kind): Add DEBUG_KIND_ILLEGAL.
4283         (struct debug_write_fns): Add field ellipsis_type.  Add id
4284         parameter to start_struct_type, start_class_type, and tag_type.
4285         (debug_make_ellipsis_type): Declare.
4286         (debug_find_named_type): Declare.
4287         (debug_get_type_kind): Declare.
4288         (debug_get_return_type): Declare.
4289         (debug_get_parameter_types): Declare.
4290         (debug_get_fields): Declare.
4291         (debug_get_field_type): Declare.
4292         * debug.c (struct debug_handle): Add fields class_id and base_id.
4293         (struct debug_class_type): Add field id.
4294         (struct debug_method_variant): Rename argtypes to physname.
4295         Change all uses.
4296         (debug_ellipsis_type): New static variable.
4297         (ELLIPSIS_P): New macro.
4298         (debug_make_ellipsis_type): New function.
4299         (debug_make_method_variant): Rename argtypes to physname.
4300         (debug_make_static_method_variant): Likewise.
4301         (debug_name_type): Always put types in the global namespace.
4302         (debug_find_named_type): New function.
4303         (debug_find_tagged_type): Treat DEBUG_KIND_ILLEGAL specially,
4304         rather than DEBUG_KIND_VOID.
4305         (debug_get_real_type): New static function.
4306         (debug_get_type_kind): New function.
4307         (debug_get_return_type): New function.
4308         (debug_get_parameter_types): New function.
4309         (debug_get_fields): New function.
4310         (debug_get_field_type): New function.
4311         (debug_write): Initialize base_id.
4312         (debug_write_type): Pass new id argument to tag_type.  Handle
4313         DEBUG_KIND_ILLEGAL.  Use id for DEBUG_KIND_STRUCT and
4314         DEBUG_KIND_UNION.  Handle ellipsis for method arguments.
4315         (debug_write_class_type): Don't dereference kclass if it is NULL.
4316         Use id.
4317         * prdbg.c (pr_fns): Add pr_ellipsis_type.
4318         (pr_ellipsis_type): New static function.
4319         (pr_pointer_type): If this is a pointer to an array, parenthesize
4320         it correctly.
4321         (pr_start_struct_type): Add id parameter.
4322         (pr_start_class_type): Likewise.
4323         (pr_tag_type): Likewise.
4324         (pr_fix_visibility): Add the visibility to the top of the stack,
4325         not the second element on the stack.
4326         (pr_struct_field): Pop the stack before calling pr_fix_visibility.
4327         (pr_class_static_member): Likewise.
4328         (pr_class_start_method): Don't push a type, just set the method
4329         name in the type on the top of the stack.
4330         (pr_class_end_method): Don't pop the stack.
4331         (pr_class_method_variant): Rename argtypes parameter to physname.
4332         Append const and volatile rather than prepending them.  Add a
4333         space after the physname.
4334         (pr_class_static_method_variant): Likewise.
4335         * ieee.c (ieee_fns): Add ieee_ellipsis_type.
4336         (ieee_define_named_type): Use DEBUG_KIND_ILLEGAL rather than
4337         DEBUG_KIND_VOID.
4338         (write_ieee_debugging_info): Likewise.
4339         (ieee_typdef): Likewise.
4340         (ieee_ellipsis_type): New static function.
4341         (ieee_start_struct_type): Add id parameter.
4342         (ieee_start_class_type): Likewise.
4343         (ieee_tag_type): Likewise.
4344         (ieee_class_method_variant): Rename name to physname.
4345         (ieee_class_static_method_variant): Likewise.
4346
4347         * Makefile.in (DEBUG_OBJS): Remove prdbg.o.
4348         ($(OBJDUMP_PROG)): Depend upon, and link against, prdbg.o.
4349
4350 Thu Jan 18 17:35:06 1996  Kim Knuttila  <krk@cygnus.com>
4351
4352         * dlltool.c (make_tail): Changed the order of the sections to avoid
4353         an alignment problem.
4354
4355 Wed Jan 17 14:23:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
4356
4357         * srconv.c (wr_du): Set du.stackfrmt to 0.
4358         (wr_un, wr_sc): Emit all sections, even those with 0 size.
4359
4360 Tue Jan 16 16:15:49 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
4361
4362         * srconv.c (wr_hd): Space size within segment was being
4363         stored in segment identifier field.
4364
4365 Tue Jan 16 12:07:25 1996  Stan Shebs  <shebs@andros.cygnus.com>
4366
4367         * mpw-config.in (BUILD_NLMCONV, BUILD_SRCONV, SYSINFO_PROG,
4368         BUILD_DLLTOOL): Put definitions for these into makefile when
4369         configuring, instead of always clearing in mpw-make.sed.
4370         * mpw-make.sed: Edit out any host_alias or target_alias settings,
4371         fix pathname to BFD internal include files, remove dependency
4372         calculation rules.
4373
4374 Thu Jan 11 17:31:38 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
4375
4376         * objdump.c (dump_section_header): Add new section flags
4377         SEC_{EXCLUDE,SORT_ENTRIES}.
4378
4379 Thu Jan 11 11:45:34 1996  Ian Lance Taylor  <ian@cygnus.com>
4380
4381         * objcopy.c (filter_symbols): NULL terminate the output symbols.
4382         (copy_object): Allocate space for a possible extra NULL pointer.
4383
4384         * debug.c (debug_make_undefined_tagged_type): Make sure we are
4385         given a kind of type we can handle.
4386         (debug_write_type): Handle undefined enums and structs.
4387         (debug_write_class_type): Handle undefined classes.
4388         * prdbg.c (pr_enum_type): Handle an undefined enum.
4389         * ieee.c (ieee_enum_type): Likewise.
4390
4391 Wed Jan 10 15:33:18 1996  Ian Lance Taylor  <ian@cygnus.com>
4392
4393         * Makefile.in: Updated dependencies.
4394         (ALLOCA, MALLOC): Remove variables.
4395         (ADDL_LIBS): Remove $(MALLOC) from definition.
4396         * alloca.c, gmalloc.c: Remove.
4397
4398 Mon Jan  8 18:02:29 1996  Ian Lance Taylor  <ian@cygnus.com>
4399
4400         * ieee.c: Add global function write_ieee_debugging_info and a
4401         bunch of static functions and structs used to write out IEEE
4402         debugging information.
4403         * budbg.h (write_ieee_debugging_info): Declare.
4404
4405         * ieee.c (struct ieee_type): Add pslot field.
4406         (enum builtin_types): Define.
4407         (ieee_builtin_type): For a pointer, return a pointer to the named
4408         type.  Use enum values rather than numbers.
4409         (ieee_alloc_type): New static function.
4410         (ieee_read_type_index): Use ieee_alloc_type.
4411         (parse_ieee_bb): Likewise.
4412         (parse_ieee_ty): Likewise.  Use ieee_builtin_type for array range,
4413         rather than making a new integer type.  Store the new type in the
4414         slot, if there is one.
4415         (parse_ieee_atn): Treat ATN10 as defining a register variable.
4416         (ieee_regno_to_genreg): Rename from ieee_regno_to_gen.  Change all
4417         callers.
4418         (ieee_genreg_to_regno): New static function.
4419
4420         * stabs.c (parse_stab_type): Add new typename parameter.  Change
4421         all callers.
4422         (parse_stab_range_type): Add new typename parameter.  Change all
4423         callers.
4424
4425         * debug.h (struct debug_write_fns): Add tag parameter to
4426         enum_type, start_struct_type, and start_class_type.
4427         * debug.c (debug_write_type): Pass any tag name to
4428         start_struct_type, debug_write_class_type, and enum_type.  If
4429         DEBUG_KIND_TAGGED, pass the name in the recursive call.
4430         (debug_write_class_type): Accept a new tag parameter, and pass it
4431         to start_class_type.
4432         * prdbg.c (pop_type): Don't remove '+' character.
4433         (pr_enum_type): Accept and use tag parameter.
4434         (pr_start_struct_type): Likewise.
4435         (pr_start_class_type): Likewise.
4436         (pr_class_baseclass): Adjust algorithm used to find where to put
4437         the baseclass name.
4438         (pr_tag): Don't bother to insert the tag name.
4439
4440         * objcopy.c: Include budbg.h.
4441         (convert_debugging): New static variable.
4442         (OPTION_DEBUGGING): Define.
4443         (copy_options): Add "debugging".
4444         (copy_usage): Mention --debugging.
4445         (is_strip_section): Skip debugging sections if convert_debugging.
4446         (setup_section, copy_section): Likewise.
4447         (filter_symbols): Skip debugging symbols if convert_debugging.
4448         (copy_object): If convert_debugging, read and write debugging
4449         information.
4450         (write_debugging_info): New static function.
4451         (copy_main): Handle --debugging.
4452         * Makefile.in (DEBUG_OBJS): New variable.
4453         ($(OBJCOPY_PROG)): Depend upon and link against $(DEBUG_OBJS).
4454         ($(STRIP_PROG)): Likewise.
4455         (OBJDUMP_OBJS): Remove variable.
4456         ($(OBJDUMP_PROG)): Use objdump.o $(DEBUG_OBJS) rather than
4457         $(OBJDUMP_OBJS).
4458         * binutils.texi, objcopy.1: Document --debugging.
4459
4460 Thu Jan  4 16:31:21 1996  Ian Lance Taylor  <ian@cygnus.com>
4461
4462         * ieee.c: New file with code to read IEEE debugging information.
4463         * budbg.h (parse_ieee): Declare.
4464         * rddbg.c (read_debugging_info): Handle IEEE flavour files.
4465         (read_ieee_debugging_info): New static function.
4466         * Makefile.in: Rebuild dependencies.
4467         (CFILES): Add ieee.c.
4468         (OBJDUMP_OBJS): Add ieee.o.
4469
4470         * bucomm.h (xrealloc): Change type of first parameter from char *
4471         to PTR.
4472
4473 Tue Jan  2 17:44:07 1996  Ian Lance Taylor  <ian@cygnus.com>
4474
4475         * Makefile.in: Add targets to automatically rebuild dependencies.
4476         Remove targets which just listed dependencies of .o files.
4477         (DEP): New variable.
4478         (HFILES, GENERATED_HFILES): New variables.
4479         (CFILES, GENERATED_CFILES): New variables.
4480         (underscore.c): Don't do anything, just depend upon stamp-under.
4481         (stamp-under): New target; do what underscore.c used to do.
4482         (nlmconv.o): Depend upon sym.h and ecoff.h.
4483         (.dep, .dep1, dep.sed, dep, dep-in): New targets.
4484         (stage1, stage2, stage3, against, comparison): Remove.
4485         (de-stage1, de-stage2, de-stage3): Remove.
4486         (clean, distclean): Remove stamp-under and dep.sed.
4487         * dep-in.sed: New file.
4488
4489         Implement generic debugging support.  Implement a stabs reader and
4490         a generic printer.
4491         * budbg.h, debug.c, debug.h, prdbg.c, rddbg.c, stabs.c: New files.
4492         * objdump.c: Include "debug.h" and "budbg.h".
4493         (dump_debugging): New global variable.
4494         (usage): Mention --debugging.
4495         (long_options): Add "debugging".
4496         (display_bfd): Handle --debugging.
4497         * Makefile.in (OBJDUMP_OBJS): New variable.
4498         ($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
4499         * binutils.texi, objdump.1: Document --debugging.
4500
4501 Sat Dec 30 09:59:51 1995  Jeffrey A Law  (law@cygnus.com)
4502
4503         * nm.c ( long_options): Add "--defined-only" option.
4504         (usage): Update for new "--defined-only" option.
4505         (filter_symbols): Handle "--defined-only".
4506
4507 Fri Dec 29 16:04:56 1995  Ian Lance Taylor  <ian@cygnus.com>
4508
4509         * arparse.y: Include "bucomm.h", not <sysdep.h>.
4510         * nlmheader.y: Don't include "sysdep.h".
4511
4512 Tue Dec 26 18:23:18 1995  Ian Lance Taylor  <ian@cygnus.com>
4513
4514         * nm.c (print_symdef_entry): Check return value of
4515         bfd_get_elt_at_index.
4516
4517 Sat Dec 23 11:03:16 1995  Michael Meissner  <meissner@tiktok.cgynsu.com>
4518
4519         * configure.in (DLLTOOL_DEFS): Build dlltool for PowerPC if target
4520         is powerpc*-*-win* in addition to powerpc*-*-*pe*.
4521
4522 Fri Dec 15 16:30:57 1995  Ian Lance Taylor  <ian@cygnus.com>
4523
4524         * objdump.c (endian_string): New static function.
4525         (display_target_list): Use it.
4526         * nlmconv.c (main): Use new bfd_big_endian macro.
4527
4528 Fri Dec 15 07:51:34 1995  steve chamberlain  <sac@slash.cygnus.com>
4529
4530         * dlltool.c (fill_ordinals): Start from 1 if no other instructions
4531         given.
4532
4533 Tue Dec 12 12:05:21 1995  Ian Lance Taylor  <ian@cygnus.com>
4534
4535         * Makefile.in (clean): Remove $(DEMANGLER_PROG).1.  From Ronald
4536         F. Guilmette <rfg@monkeys.com>.
4537
4538 Mon Dec 11 14:33:05 1995  Stan Shebs  <shebs@andros.cygnus.com>
4539
4540         * mac-binutils.r: Fix copyright and version strings.
4541
4542         * Makefile.in (version): Remove, no longer used.
4543
4544 Fri Dec  1 14:41:56 1995  Stan Shebs  <shebs@andros.cygnus.com>
4545
4546         * mpw-make.sed (install, install-only): Edit in Mac-specific
4547         install procedure.
4548
4549 Thu Nov 30 20:26:02 1995  Kim Knuttila  <krk@cygnus.com>
4550
4551         * dlltool.c (ppc_jtab): The binary glue for PowerPC dll linkage,
4552         including the return instruction.
4553         sinfo: added a preferred alignment field.
4554         (secdata): section data for the PowerPC version.
4555         (make_one_lib_file): More symbols, More sections (pdata, rdata)
4556         (make_tail): Use idata$6 instead of idata$7 for ppc. Also added a
4557         NULL idata$3 descriptor (temporary).
4558
4559 Tue Nov 28 17:23:44 1995  Doug Evans  <dje@canuck.cygnus.com>
4560
4561         * dlltool.c (fill_ordinals): Don't reference d_export_vec if
4562         there are no exported functions.
4563
4564 Mon Nov 27 13:05:59 1995  Ian Lance Taylor  <ian@cygnus.com>
4565
4566         * configure: Regenerate with autoconf 2.7.
4567
4568 Wed Nov 22 13:17:15 1995  Ian Lance Taylor  <ian@cygnus.com>
4569
4570         * dlltool.c (fill_ordinals): Start assigning ordinals at 1.
4571
4572         * Makefile.in (EXPECT): Use $$r, not $${rootme}.
4573         (check): Set r, not rootme.
4574
4575 Tue Nov 21 18:04:09 1995  Ian Lance Taylor  <ian@cygnus.com>
4576
4577         * configure.in: Use BFD_NEED_DECLARATION.
4578         * acconfig.h: Put NEED_DECLARATION_FPRINTF in @TOP@ section.
4579         * configure, config.in: Rebuild with autoconf 2.6.
4580
4581 Fri Nov 17 10:34:37 1995  Ian Lance Taylor  <ian@cygnus.com>
4582
4583         * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
4584         $(host_canonical) and $(target_canonical).
4585
4586 Thu Nov 16 03:39:20 1995  Ken Raeburn  <raeburn@cygnus.com>
4587
4588         Version 2.6 released.
4589         * Makefile.in (VERSION): Update to 2.6.
4590
4591 Wed Nov 15 12:14:17 1995  Ian Lance Taylor  <ian@cygnus.com>
4592
4593         * Makefile.in (CC_FOR_TARGET): Define.
4594         (check): Pass CC and CFLAGS to runtest.
4595
4596         * nm.c (display_rel_file): Don't require a DYNAMIC object when
4597         dumping the dynamic symbol table.
4598
4599         * objdump.c (compare_symbols): Sort global symbols before local
4600         symbols before debugging symbols.
4601         (objdump_print_address): Don't futz around looking for a global
4602         symbol with the same value.
4603
4604 Tue Nov 14 17:19:11 1995  Ian Lance Taylor  <ian@cygnus.com>
4605
4606         * dlltool.c: Use FOPEN_* macros rather than "r" or "w".
4607
4608         * dlltool.c (fill_ordinals): Correct memset call.
4609
4610 Sun Nov 12 12:56:05 1995  Stan Shebs  <shebs@andros.cygnus.com>
4611
4612         * mpw-make.sed (DEMANGLER_PROG): Edit out attempts to do anything
4613         with the man page.
4614
4615 Fri Nov 10 11:41:22 1995  Ian Lance Taylor  <ian@cygnus.com>
4616
4617         * objcopy.c (setup_section): Copy the section lma independently of
4618         the vma.
4619
4620 Wed Nov  8 11:33:00 1995  Ian Lance Taylor  <ian@cygnus.com>
4621
4622         * arsup.c (ar_open): Cast malloc return value.
4623
4624 Tue Nov  7 09:01:26 1995  Kim Knuttila  <krk@cygnus.com>
4625
4626         * configure.in, configure (DLLTOOL_DEFS): Added ppc target.
4627         * dlltool.c (MPPC): Added basic PPC definitions.
4628
4629 Tue Nov  7 14:02:57 1995  Ian Lance Taylor  <ian@cygnus.com>
4630
4631         * configure.in: Don't treat rs6000-*-lynx* specially.
4632         * configure: Rebuild.
4633         * config/rslynx: Remove.
4634         * Makefile.in: Remove @target_makefile_fragment@.
4635
4636 Mon Nov  6 15:00:50 1995  Ian Lance Taylor  <ian@cygnus.com>
4637
4638         * bucomm.h: Include <sys/types.h>.
4639         * ar.c: Don't include <sys/types.h> or <stdio.h>.
4640         * bucomm.c, dlltool.c, nlmconv.c, objcopy.c, objdump.c: Likewise.
4641
4642 Fri Nov  3 12:38:09 1995  Ian Lance Taylor  <ian@cygnus.com>
4643
4644         * objdump.c: Include <sys/types.h>.
4645
4646         Permit user to override DEMANGLER_PROG from command line.  From
4647         Manfred Hollstein <manfred@lts.sel.alcatel.de>.
4648         * Makefile.in ($(DEMANGLER_PROG)): Depend upon
4649         $(DEMANGLER_PROG).1.
4650         (install): Don't depend upon $(DEMANGLER_PROG).1.  Only install
4651         $(DEMANGLER_PROG).1 if $(DEMANGLER_PROG) is not empty.
4652
4653 Wed Nov  1 15:04:57 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>
4654
4655         * Makefile.in (syslex.o): add -I$(srcdir) if compiling in a
4656         separate directory.
4657
4658 Mon Oct 30 14:24:18 1995  Ian Lance Taylor  <ian@cygnus.com>
4659
4660         * objdump.c (objdump_print_value): New static function.
4661         (objdump_print_address): Use it.  If we need the right section for
4662         the symbol, and we can't find it, print an offset from the section
4663         rather than using a symbol from some other section.
4664
4665 Thu Oct 26 10:23:14 1995  steve chamberlain  <sac@slash.cygnus.com>
4666
4667         * dlltool.c (no_idata4, no_idata5): New.
4668         (arm_jtab): Use correct encoding of jump instruction.
4669         (usage, main, make_head, make_tail): Act on no_idata4, no_idata5.
4670
4671 Wed Oct 25 12:10:07 1995  Stan Shebs  <shebs@andros.cygnus.com>
4672
4673         * mpw-make.sed: Edit paths to generated y.tab.[ch] files.
4674
4675 Fri Oct 20 18:40:34 1995  Ian Lance Taylor  <ian@cygnus.com>
4676
4677         * binutils.texi: Change --with-targets to --enable-targets.
4678
4679 Thu Oct 19 17:47:41 1995  Fred Fish  <fnf@cygnus.com>
4680
4681         * Makefile.in:  Remove extraneous tab on otherwise empty line,
4682         which confuses many non-GNU versions of "make".
4683
4684 Wed Oct 18 16:31:58 1995  steve chamberlain  <sac@slash.cygnus.com>
4685
4686         * dlltool.c (i386_jtab, arm_jtab): New
4687         (gen_lib_file): Rewritten to use bfd.
4688
4689 Fri Oct 13 16:10:07 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
4690
4691         * Makefile.in (install): Don't give error message if dlltool
4692         wasn't built.
4693
4694 Fri Oct 13 11:04:37 1995  steve chamberlain  <sac@slash.cygnus.com>
4695
4696         * deflex.l: Allow quoting of IDs.
4697         * defparse.y (%union): string deleted.
4698         (command): DESCRIPTION takes ID.
4699         * dlltool.c (gen_def_file): Quote outgoing name if
4700         necessary.  Preserve NONAME.
4701         (gen_lib_file): Run ranlib.
4702         (workout_prefix): Deleted.
4703         (main, usage, long_options): Add --as, --ranlib, --ar options.
4704
4705 Wed Oct 11 13:36:13 1995  steve chamberlain  <sac@slash.cygnus.com>
4706
4707         * dlltool.c (mtable): HOW_ALIGN_LONG, new.
4708         (d_ord): Deleted.
4709         (d_low_ord, d_high_ord, d_named_funcs): New.
4710         (gen_exp_file): Create noname entries correctly.
4711         (gen_lib_file): Dump exports alphabetically.
4712         (process_duplicates):  Count nonamed functions.
4713         (fill_ordinals): Keep track of highest ord too.
4714         (mangle_defs): Create alphabetically ordered list of names.
4715
4716 Tue Oct 10 09:39:09 1995  steve chamberlain  <sac@slash.cygnus.com>
4717
4718         * Makefile.in (TOOL_PROGS): Include DLLTOOL_PROG.
4719
4720 Mon Oct  9 13:06:31 1995  steve chamberlain  <sac@slash.cygnus.com>
4721
4722         * dlltool.c (add_underscore): New.
4723         (xlate): Use new name.
4724         (main, usage): Update.
4725
4726 Fri Oct  6 14:08:51 1995  Ken Raeburn  <raeburn@cygnus.com>
4727
4728         * sysinfo.y: Eliminate unused terminals "[" and "]" and unused
4729         nonterminal "name".  One s/r conflict remains.
4730
4731         Mon Sep 25 22:49:32 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4732
4733         * nm.c (print_symname): Don't try to demangle an empty
4734         name.
4735         * objdump.c (slurp_symtab): Reset symcount if there are
4736         no symbols.
4737         (slurp_dynamic_symtab): Likewise, for dynsymcount.
4738         (disassemble_data): Fix memory leak: free sorted_syms when done.
4739         (display_bfd): Likewise, for syms and dynsyms.
4740         (dump_relocs): Don't print header before possibly generating an
4741         error message.
4742         (dump_dynamic_relocs): Likewise.
4743
4744         * ar.1, nm.1, objdump.1, size.1, strings.1, strip.1: Fix typos and
4745         formatting bugs.
4746
4747 Fri Oct  6 12:00:25 1995  Ian Lance Taylor  <ian@cygnus.com>
4748
4749         * ar.c (do_quick_append): Comment out.
4750         (replace_members): Add quick argument.
4751         (main): Don't call do_quick_append.
4752         (open_inarch): Don't call quick_append to create an empty archive.
4753         Instead call bfd_openw/bfd_set_format/bfd_close.
4754
4755 Thu Oct  5 20:53:08 1995  Ken Raeburn  <raeburn@cygnus.com>
4756
4757         * bucomm.c: Always include time.h.
4758
4759 Thu Oct  5 17:25:21 1995  Ian Lance Taylor  <ian@cygnus.com>
4760
4761         * objdump.c (compare_symbols): Sort gnu_compiled and gcc2_compiled
4762         symbols after other symbols with the same value.  Likewise for
4763         symbols which look like file names.
4764         (objdump_print_address): Always chose the first reasonable symbol
4765         with a given value.
4766
4767 Tue Oct  3 22:38:55 1995  Ian Lance Taylor  <ian@cygnus.com>
4768
4769         * arsup.c (ar_save): Use rename, not unlink/link/unlink.
4770
4771 Mon Oct  2 12:10:25 1995  Ian Lance Taylor  <ian@cygnus.com>
4772
4773         * strings.c (main): Exit with zero status if no files are given
4774         and standard input is read.
4775
4776 Thu Sep 28 20:03:07 1995  Stan Shebs  <shebs@andros.cygnus.com>
4777
4778         * mpw-config.in: Calculate underscore and put into makefile
4779         fragment, generate config.h.
4780         * mpw-make.sed: New file, sed commands to edit Unix makefile
4781         into MPW syntax.
4782         * mpw-make.in: Remove.
4783         * mac-binutils.r: New file, Mac resources.
4784
4785 Thu Sep 28 15:49:00 1995  steve chamberlain  <sac@slash.cygnus.com>
4786
4787         * dlltool.c: (gen_exp_file): Always emit a .reloc section if
4788         relocatable.
4789         (imp_name_lab): New.
4790         (gen_def_file): New.
4791         (gen_lib_file): Use imp_name_lab.
4792         (main): Initialize imp_name_lab.
4793
4794 Mon Sep 25 12:05:34 1995  Ian Lance Taylor  <ian@cygnus.com>
4795
4796         * configure.in: Call AC_HEADER_SYS_WAIT.
4797         * configure: Rebuild.
4798         * config.in: Rebuild.
4799         * dlltool.c: Include "libiberty.h" and "bucomm.h".  Don't include
4800         <stdio.h>, <stdlib.h>, or <string.h>.  Don't include <wait.h>.
4801         Include <sys/types.h>.  Use HAVE_SYS_WAIT_H to control whether to
4802         include <sys/wait.h> or define the wait macros by hand.  Don't
4803         declare xmalloc.
4804         (gen_lib_file): Don't assume that sprintf returns the number of
4805         characters; use strlen instead.
4806
4807 Fri Sep 22 17:16:41 1995  Ian Lance Taylor  <ian@cygnus.com>
4808
4809         * objdump.c (disassemble_data): Don't use the old BFD based
4810         disassembler interface.  Make info a const pointer.
4811
4812 Wed Sep 13 18:33:44 1995  Ian Lance Taylor  <ian@cygnus.com>
4813
4814         * objdump.c (start_address): New variable.
4815         (stop_address): New variable.
4816         (usage): Mention --start-address and --stop-address.
4817         (OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define.
4818         (long_options): Add "start-address" and "stop-address".
4819         (disassemble_data): Handle start_address and stop_address.
4820         (dump_data, dump_reloc_set): Likewise.
4821         (main): Don't set seenflag for -l.  Handle OPTION_START_ADDRESS
4822         and OPTION_STOP_ADDRESS.
4823         * objcopy.c (parse_vma): Move to bucomm.c.
4824         * bucomm.c (parse_vma): New function, moved in from objcopy.c.
4825         * bucomm.h (parse_vma): Declare.
4826         * binutils.texi, objdump.1: Document new objdump options.
4827
4828 Tue Sep 12 12:37:39 1995  Ian Lance Taylor  <ian@cygnus.com>
4829
4830         * Makefile.in (maintainer-clean): New target.
4831
4832         * ar.c (replace_members): Don't call write_archive if nothing
4833         changed.
4834
4835         * objdump.c (disassemble_data): Add casts to avoid gcc warnings.
4836
4837 Thu Sep  7 12:12:17 1995  Ian Lance Taylor  <ian@cygnus.com>
4838
4839         * config.in: Rename from config.h.in.
4840         * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
4841         Check for config.h:config.in when creating stamp-h.
4842         * configure: Rebuild.
4843         * Makefile.in (stamp-h): Depend upon config.in rather than
4844         config.h.in.  Set CONFIG_HEADERS to config.h:config.in when
4845         calling config.status.
4846
4847         * Makefile.in (distclean): Remove config.h, stamp-h, and
4848         config.log.
4849
4850         * nm.c (value_format): Initialize based on BFD64 and
4851         BFD_HOST_64BIT_LONG.
4852         (print_radix): New static variable.
4853         (set_print_radix): Set print_radix.  Adjust changes to
4854         value_format.
4855         (print_value): New static function, to print 64 bit octal and
4856         decimal values correctly.
4857         (print_symbol_info_bsd): Check BFD64, not BFD_HOST_64_BIT.  Use
4858         print_value.
4859         (print_symbol_info_sysv): Use print_value.
4860         (print_symbol_info_posix): Likewise.
4861
4862 Wed Sep  6 15:02:55 1995  Ian Lance Taylor  <ian@cygnus.com>
4863
4864         * Makefile.in (*.o): Remove incorrect dependencies on
4865         $(BFDDIR)/hosts/std-host.h.
4866
4867         * Makefile.in (INSTALL_DATA): Add -m 644.
4868         (INSTALL_XFORM1): Likewise.
4869         (CC_FOR_BUILD): Set to @CC_FOR_BUILD@ rather than $(CC).
4870         (mostlyclean): Remove config.log.
4871         (distclean): Remove config.cache.
4872
4873         * configure.in: Call BFD_CC_FOR_BUILD and BFD_BINARY_FOPEN.
4874         * configure: Rebuild.
4875
4876 Tue Sep  5 20:22:42 1995  Ian Lance Taylor  <ian@cygnus.com>
4877
4878         * configure.in: Rewrite to use autoconf.
4879         * aclocal.m4: New file.
4880         * configure: New file, built by autoconf.
4881         * acconfig.h: New file.
4882         * config.h.in: New file, built by autoheader.
4883         * Makefile.in: Various changes for new configure script.  Also:
4884         (PROGS): Remove $(SYSINFO_PROG).
4885         (ALL_CFLAGS): Remove $(TDEFINES).
4886         (version.o): Use $(ALL_CFLAGS).
4887         (cplus-dem.o, dlltool.o, nlmconv.o): Likewise.
4888         (sysdump.o): Depend upon bucomm.h and config.h.
4889         (srconv.o, arsup.o, strings.o): Depend upon config.h.
4890         (filemode.o): Don't depend upon ../bfd/sysdep.h.
4891         (bucomm.o): Depend upon config.h, not ../bfd/sysdep.h.
4892         (size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise.
4893         (nlmheader.o, nlmconv.o): Likewise.
4894         (distclean): Don't remove sysdep.h.
4895         * bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h".
4896         Include "fopen-same.h" or "fopen-bin.h", based on
4897         USE_BINARY_FOPEN.  Include <errno.h>, and declare errno if it is
4898         not a macro.  Include <unistd.h>, <string.h>, <strings.h>,
4899         <stdlib.h>, and <fcntl.h> if they are present.  Declare strchr,
4900         strrchr, and strstr if no string header file exists.  Include
4901         <sys/file.h> if it exists and <fcntl.h> does not.  Define
4902         O_RDONLY and O_RDWR if necessary.
4903         * ar.c:  Don't include "sysdep.h".  Do include <sys/types.h> and
4904         <sys/stat.h>.  Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME.  Use
4905         HAVE_UTIMES rather than !USE_UTIME.  Don't include <errno.h>, and
4906         don't declare errno.
4907         * arsup.c: Don't include <sysdep.h>.
4908         * bucomm.c: Don't include "sysdep.h".  Include <stdio.h>,
4909         <sys/types.h>, and <sys/stat.h>.  Include <time.h> if it defines
4910         time_t.  Define time_t if necessary.
4911         * coffdump.c: Don't include "sysdep.h".
4912         * coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise.
4913         * srconv.c, strings.c: Likewise.
4914         * nm.c: Don't include "sysdep.h".  Don't try to define HAVE_SBRK.
4915         * objcopy.c: Don't include "sysdep.h".  Include <sys/types.h> and
4916         <sys/stat.h>.
4917         (simple_copy): Use creat rather than assuming that O_CREAT is
4918         defined.
4919         * objdump.c: Don't include "sysdep.h".  Use
4920         NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED.
4921         * sysdump.c: Include "bfd.h" and "bucomm.h".  Don't include
4922         "sysdep.h" or <stdlib.h>.
4923         (dump_symbol_info): Rename from symbol_info.  Change all callers.
4924
4925 Mon Sep  4 14:30:00 1995  Ian Lance Taylor  <ian@cygnus.com>
4926
4927         * configure.in (host_makefile_frag): Don't set.  Substitute for
4928         @CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
4929         * Makefile.in (AR_FLAGS): Set to rc rather than qv.
4930         (CC): Define as @CC@.
4931         (CFLAGS): Set to @CFLAGS@.
4932         (LDFLAGS): Define as @LDFLAGS@.
4933         (ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
4934
4935         * configure.in: Don't bother to call config.bfd for each target.
4936         Just call it for the default target, and use the shell variable to
4937         decide whether underscores are used.
4938
4939 Thu Aug 31 19:21:48 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
4940
4941         * configure.in: match i[3-6]86-*-win32, not just i386-*-win32.
4942
4943 Thu Aug 31 16:30:22 1995  steve chamberlain  <sac@slash.cygnus.com>
4944
4945         * dlltool.c (add_indirect): New.
4946         (asm_prefix): New
4947         (gen_exp_file): Timestamp should be 0. Insert prefix when
4948         needed. New code for indirection.
4949         (gen_lib_file): Timestamp should be 0. Insert prefix
4950         when needed.
4951         (usage): Document --add-indirect.
4952         (main): Cope with new option.
4953
4954         * objdump.c (dump_private_headers): New.
4955         (usage): Document new option.
4956         (long_option): Add private-headers.
4957         (dump_bfd_private_header): New.
4958         (main): Cope with new option.
4959
4960 Thu Aug 31 04:09:16 1995  Doug Evans  <dje@canuck.cygnus.com>
4961
4962         * dlltool.c (run): Add missing 3rd arg to waitpid.
4963
4964 Wed Aug 30 11:02:11 1995  steve chamberlain  <sac@slash.cygnus.com>
4965
4966         * Makefile.in (TOOL_PROGS): Include dlltool if needed.
4967
4968 Tue Aug 29 13:25:21 1995  steve chamberlain  <sac@slash.cygnus.com>
4969
4970         * dlltool.c (rva): Deleted.
4971         (rvaafter, rva_before): Use new assembler pseudo.
4972         (flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing.
4973         (gen_exp_file): Don't generate .edata if no need.
4974         (gen_lib_file): Don't make timestamp.
4975         Put _iname in idata$7.
4976         (workout_prefix): Fix memory initialization bug.
4977         (usage): Tidy up, delete many single char options.
4978         (main): rva option is gone.
4979
4980 Mon Aug 21 18:41:28 1995  steve chamberlain  <sac@slash.cygnus.com>
4981
4982         * dlltool.c (options): image-base is a synonym for rva.
4983         (gen_lib_file): Put dll name into ibase$7.
4984
4985 Sun Aug 20 09:59:00 1995  steve chamberlain  <sac@slash.cygnus.com>
4986
4987         Modified to generate archives and objects rather than .s files.
4988         * dlltool.c (run) New function.
4989         (gen_exp_file, gen_lib_file): Use run.
4990         (workout_prefix): New.
4991         (usage): Document new options.
4992         (main): Parse new options.
4993
4994 Wed Aug 16 16:26:52 1995  steve chamberlain  <sac@slash.cygnus.com>
4995
4996         * dlltool.c (gen_exp_file): Fix RVA handling.
4997         (rva_s, rva_n): Delete.
4998
4999 Fri Aug 11 18:27:18 1995  Ian Lance Taylor  <ian@cygnus.com>
5000
5001         * nm.c (main): Ignore -e.
5002
5003 Thu Aug 10 17:35:00 1995  Ken Raeburn  <raeburn@cygnus.com>
5004
5005         * Makefile.in (config.texi): New target.  Write out a setting for
5006         texinfo variable VERSION.
5007         (binutils.dvi, binutils.info): Depend on it.
5008         * binutils.texi: Include it, and reference @value{VERSION} instead
5009         of explicitly specifying 2.2(!).
5010
5011 Thu Aug 10 16:07:53 1995  Ian Lance Taylor  <ian@cygnus.com>
5012
5013         * coffgrok.c (do_type): Handle array dimensions the same way gdb
5014         does.
5015
5016 Tue Aug  8 17:10:42 1995  steve chamberlain  <sac@slash.cygnus.com>
5017
5018         * dlltool.c (mtable): New fields.
5019         (ASM_RVA_BEFORE, ASM_RVA_AFTER): New.
5020         (flush_page): Use new macros.
5021
5022 Sat Aug  5 00:16:37 1995  Jeff Law  (law@snake.cs.utah.edu)
5023
5024         * objcopy.c (mark_symbols_used_in_relocations): Handle sections
5025         with no relocations.
5026         * coffgrok.c (do_sections_p1): Likewise.
5027
5028 Mon Jul 31 12:51:06 1995  Ian Lance Taylor  <ian@cygnus.com>
5029
5030         * strings.c (print_strings): For compatibility with existing
5031         strings programs, print strings which are not terminated with a
5032         null byte or a newline.
5033         * binutils.texi, strings.1: Update documentation accordingly.
5034
5035         * ar.c (replace_members): For compatibility with existing ar
5036         programs, permit users to add the same file multiple times.
5037
5038 Tue Jul 25 11:21:53 1995  Ian Lance Taylor  <ian@cygnus.com>
5039
5040         * strings.c (DATA_FLAGS): Remove SEC_DATA.
5041         (main): If no file names are given, scan standard input.
5042         * binutils.texi, strings.1: strings now scans non-data sections by
5043         default.
5044
5045 Mon Jul 24 13:52:28 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
5046
5047         * srconv.c (wr_hd): Set afl field to 4 for bfd_arch_sh.
5048         (writeINT): When size == -2, use 2 bytes for the h8300 and 4 bytes
5049         for the sh.
5050
5051         * sysdump.c (fillup): Return size - 1, the last byte is a checksum
5052         and shouldn't be counted.
5053         * sysroff.info (hd): Changed segment identifier from a byte to a 1
5054         bit field.  The sysroff 2.0-01 specification seems to be in error
5055         here.  Reduce width of following "spare" field from 4 to 3 bits.
5056         (rl): Changed order and width of first 4 bitfields to correspond
5057         to sysroff specification.
5058         (dln_head, dln_inside, dln_tail): Removed.
5059
5060 Tue Jul 18 23:00:03 1995  Fred Fish  <fnf@cygnus.com>
5061
5062         * nm.c (sort_symbols_by_size):  Enclose expression being casted
5063         in parens so result is casted, not just first operand.  Can't
5064         do pointer arithmetic on void* pointers.
5065
5066 Fri Jul 14 13:42:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
5067
5068         * sysdump.c (dh): Changed format of output to be 16 hex digits
5069         followed by 16 ascii characters, similar to Emacs' hexl-mode,
5070         to make it easier to read.
5071         (xcalloc): fix typo.
5072
5073 Thu Jul 13 15:27:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
5074
5075         * srconv.c (wr_tr): Write out handcrafted tr block.
5076         (walk_tree_symbol): Use evallen and evalue instead of
5077         vallen & value because of corresponding changes in
5078         sysroff.info.
5079
5080         * sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New
5081         functions.
5082
5083         * sysroff.info (tr): the tr block is a special case --- a block
5084         without contents --- which can't be handled by generated code.
5085         (den, dpp): only first byte is present for DENend, DPPend.
5086         (dsy): describe a conditional portion of block, rename some fields.
5087         (dps): describe a conditional portion of block.
5088         (dfl): removed.
5089
5090         * sysinfo.y (yyerror): write error message to standard error.
5091
5092 Thu Jul 13 10:43:59 1995  Ian Lance Taylor  <ian@cygnus.com>
5093
5094         * Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
5095         (mostlyclean): Remove y.output.
5096         (clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo.
5097
5098         * nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t.
5099         * objcopy.c (copy_object): Likewise.
5100
5101         * nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.
5102         (struct size_sym): Define.
5103         (show_stats): New static variable.
5104         (long_options): Add undocumented option "stats".
5105         (main): Print memory stats if requested.
5106         (sort_bfd, sort_dynamic, sort_x, sort_y): New static variables.
5107         (numeric_forward): Use minisymbols rather than asymbols.
5108         (non_numeric_forward): Likewise.
5109         (size_forward1): Rename from size_forward.  Use minisymbols.
5110         (size_forward2): New static function.
5111         (sort_symbols_by_size): Take new arguments dynamic, size, and
5112         symsizep.  Use minisymbols.  Don't store the size back in the
5113         symbol; store in a newly allocate struct size_sym array.
5114         (display_rel_file): Read minisymbols rather than asymbols.  Set
5115         sort_* variables.  Call print_size_symbols if sorting by size.
5116         (filter_symbols): Take new arguments dynamic and size.  Use
5117         minisymbols.
5118         (print_symbols): Likewise.  Call print_symbol for actual printing.
5119         (print_size_symbols): New static function.
5120         (print_symbol): New static function.
5121
5122 Wed Jul 12 10:43:05 1995  Ian Lance Taylor  <ian@cygnus.com>
5123
5124         * objdump.c (dump_section_stabs): Only print each stabs section
5125         once.
5126         (compare_relocs): Make it clear to gcc that this always returns a
5127         value.
5128
5129 Wed Jul 12 10:40:23 1995  H.J. Lu  <hjl@nynexst.com>
5130
5131         * objcopy.c (simple_copy): Preserve errno on failure.
5132         (smart_rename): Print error mesage if simple_copy fails.
5133
5134 Tue Jul 11 13:10:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
5135
5136         * sysdump.c: re-indented file.
5137         (module): read blocks sequentially instead of trying to parse
5138         them, as that would require changing the parser recognize the
5139         difference between a DPSstart and DPSend block.
5140         (getone): Add break's between switch blocks as appropriate.
5141         (object_body_list): parse blocks according to sysroff spec.
5142
5143 Mon Jul 10 12:37:25 1995  J.T. Conklin  <jtc@poseidon.cygnus.com>
5144
5145         * sysroff.info: re-indented file, prior formatting was confusing
5146         because it was indentation did not reflect nesting of conditional
5147         records.  Change "space size within segment" record in hd record
5148         from bit to byte.
5149
5150         * sysinfo.y (cond_it_field): Use xcalloc instead of calloc.
5151
5152         * srconv.c (wr_cs): Reformatted cs header array, tag each byte
5153         with a comment describing the field.
5154         (wr_unit_info): Use SEEK_SET macro instead of constant 0.
5155         (main): Use FOPEN_WB macro instead of literal "wb".
5156         * sysroff.info: Remove fdl (dfl) field from cs block.  Compare
5157         ptr->type with ED_TYPE_CONST instead of constant 2 in ed block.
5158
5159 Tue Jul  4 14:48:42 1995  Ian Lance Taylor  <ian@cygnus.com>
5160
5161         * nm.c (size_forward): Check yf against yn, not xn.
5162
5163         * objcopy.c (copy_archive): Record all output BFD's, and close
5164         them before unlinking them and removing the temporary directory,
5165         to avoid NFS problems.
5166
5167         * ar.c (replace_members): In verbose messages, use 'r' when
5168         replacing a member, and 'a' when adding one.
5169
5170         * ar.c (ar_truncate): New static variable.
5171         (normalize): Change return type to const char *.  Add abfd
5172         argument.  Change all callers.  If ar_truncate, chop the filename
5173         to abfd->ar_max_namelen.
5174         (main): For the 'f' modifier, set ar_truncate to true.  Don't
5175         change quick_append to replace if ar_truncate is true.
5176         (do_quick_append): If ar_truncate, set BFD_TRADITIONAL_FORMAT.
5177         (write_archive): Likewise.
5178         * binutils.texi, ar.1: Document 'f' modifier.
5179
5180         * objcopy.c (enum strip_action): Define strip_unneeded.
5181         (OPTION_STRIP_UNNEEDED): Define.
5182         (strip_options): Add "strip-unneeded".
5183         (copy_options): Likewise.
5184         (copy_usage): Mention --strip-unneeded.
5185         (strip_usage): Likewise.
5186         (is_strip_section): Strip debugging sections if strip_unneeded.
5187         (filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
5188         (copy_object): If strip_all, discard symbols without checking
5189         discard_locals.
5190         (copy_object): Call filter_symbols if strip_unneeded.
5191         (setup_section): Strip debugging sections if strip_unneeded.
5192         (copy_section): Likewise.
5193         (strip_main): Handle OPTION_STRIP_UNNEEDED.
5194         (copy_main): Likewise.
5195         * binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
5196
5197 Mon Jul  3 14:16:47 1995  Steve Chamberlain  <sac@slash.cygnus.com>
5198
5199         * configure.in (i386-*-win32): New configuration.
5200         * dlltool.c (killat, xlate, usage, long_options, main):
5201         Understand and cope with -k option.
5202
5203 Sat Jul  1 12:25:15 1995  Fred Fish  <fnf@cygnus.com>
5204
5205         * ar.c: (extract_file):  Change "#if POSIX_UTIME" to
5206         "#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME
5207         and avoid lossage when POSIX_UTIME is not defined at all.
5208
5209 Wed Jun 28 17:51:24 1995  Steve Chamberlain  <sac@slash.cygnus.com>
5210
5211         * ar.c: (print_contents.c, extract_file, do_quick_append):
5212         Malloc buffers rather than allocate on stack (so it works
5213         on NT).
5214         * deflex.l: Names can have an @ in them.
5215         * dlltool.c: Loads of stuff. Can now generate .imp files which
5216         work with NT .dlls.
5217
5218 Thu Jun 22 19:10:50 1995  Stan Shebs  <shebs@andros.cygnus.com>
5219
5220         * mpw-make.in (demangle.c.o): Remove.
5221         (arparse.h): Depend on arparse.c instead of arparse.y.
5222
5223 Wed Jun 21 17:32:45 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
5224
5225         * Makefile.in (DISTSTUFF): Don't include info here.
5226         (diststuff): Include it here.
5227         (realclean): Remove *.info.
5228
5229         * objdump.c (compare_relocs): If relocation entries have the same
5230         address, keep them in file order.
5231
5232 Mon Jun 19 09:06:49 1995  Steve Chamberlain  <sac@slash.cygnus.com>
5233
5234         * dlltool.c: Change names of generated files. .*.s-> -*.s
5235
5236         * objdump.c (dump_section_stabs):  Check for names
5237         which are supersets of selected names.
5238
5239 Wed Jun 14 19:43:52 1995  Doug Evans  <dje@canuck.cygnus.com>
5240
5241         * dlltool.c (mtable, ARM jump): Must redirect via pc offsetable ptr.
5242
5243 Wed Jun 14 13:27:22 1995  Steve Chamberlain  <sac@slash.cygnus.com>
5244
5245         * deflex.l, defparse.y, dlltool.c: New files.
5246         * Makefile.in, configure.in: Support for them.
5247
5248 Mon Jun 12 11:27:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
5249
5250         * sysdump.c: Include sysdep.h
5251         (main): Open input with FOPEN_RB.
5252
5253 Fri Jun  9 17:26:11 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
5254
5255         * objdump.c (wide_output): New flag variable.
5256         (usage): Print new -w, --wide options.
5257         (long_options): Add --wide support.
5258         (dump_section_header): If --wide, don't print a newline between
5259         the section's first line and the flags.
5260         (objdump_print_address): Use unsigned comparisons for the binary
5261         search, not signed.
5262         (disassemble_data): If --wide, don't put a \n between the
5263         disassembly output and relocation information.
5264         (main): Support -w option being the same as --wide.
5265
5266 Thu Jun  1 17:09:27 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
5267
5268         Sat May  6 08:52:24 1995  H.J. Lu (hjl@nynexst.com)
5269
5270         * objcopy.c (smart_rename): make it smarter, clean up
5271           if rename () fails.
5272
5273 Tue May 30 14:24:15 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
5274
5275         * Makefile.in: Delete lines with lots of #### because four or more
5276         indicate a point for makefile fragment substitution.
5277
5278 Tue May  9 17:17:05 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
5279
5280         * configure.in: Don't build nlmconv on PowerPC eabi any more, it
5281         is not needed.
5282
5283 Thu Apr 27 20:21:24 1995  Doug Evans  <dje@canuck.cygnus.com>
5284
5285         * Makefile.in (EXPECT): Define.
5286         (RUNTEST): Use one in source tree if present.
5287         (check): Set `rootme' for $(EXPECT).
5288
5289 Wed Apr 26 18:26:21 1995  Steve Chamberlain  <sac@slash.cygnus.com>
5290
5291         * srconv.c (main): Add support for -n option which disables
5292         prescan of common symbols.
5293         (wr_ob): If reading past the end of a section, fill with zeros.
5294
5295 Tue Apr 25 19:14:37 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
5296
5297         * objdump.c (dump_section_header): Display load address after
5298         virtual memory (run-time) address.
5299
5300 Wed Apr 19 09:44:06 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5301
5302         * Makefile.in (cplus-dem.o): Pass -DVERSION='"$(VERSION)"' to the
5303         compile.
5304         (DEMANGLER_PROG): No longer uses version.o.
5305
5306 Mon Apr 10 13:29:49 1995  Stan Shebs  <shebs@andros.cygnus.com>
5307
5308         Merge in support for Mac MPW as a host.
5309         (Old change descriptions retained for informational value.)
5310
5311         * mpw-config.in (TDEFINES): Define as empty in makefile frag.
5312
5313         * mpw-config.in: Create mk.tmp, define ARCHDEFS in it.
5314
5315         * mpw-config.in: New file, MPW configure fragment for binutils.
5316         * mpw-make.in (install-only): New target.
5317         (install): Also depend on install-only.
5318
5319         * mpw-make.in (cplusfilt): Renamed from c++filt.
5320         (INCLUDES): Add more paths.
5321
5322         * mpw-make.in: New file, MPW makefile fragment for binutils.
5323         (Normally automatically generated from Makefile.in.)
5324
5325 Mon Mar 27 11:52:57 1995  Ian Lance Taylor  <ian@cygnus.com>
5326
5327         * ar.c (write_archive): Call make_tempname to get output file
5328         name, rather than using a fixed name based on the input file.
5329
5330         * objcopy.c (make_tempname): Copy from here...
5331         * bucomm.c (make_tempname): ...to here, and make global.
5332         * bucomm.h (make_tempname): Declare.
5333
5334 Fri Mar 24 11:47:42 1995  Ian Lance Taylor  <ian@cygnus.com>
5335
5336         * strings.c: Include "bfd.h" before other headers.  Include
5337         "sysdep.h".
5338         * bucomm.c (print_arelt_descr): Cast st_uid and st_gid to long,
5339         and print them with %ld.
5340
5341 Fri Mar 10 13:09:42 1995  Ian Lance Taylor  <ian@cygnus.com>
5342
5343         * objcopy.c (strip_options): Add --keep-symbol.
5344         (copy_options): Likewise.
5345         (copy_usage): Mention --keep-symbol and -K.
5346         (strip_usage): Likewise.
5347         (keep_symbols): New static variable.
5348         (is_strip_symbol): Adjust the return value according to
5349         keep_symbols.
5350         (strip_main): Handle -K.  For -N, check that -K was not given.
5351         (copy_main): Likewise.
5352         * binutils.texi, objcopy.1, strip.1: Document -K.
5353
5354 Mon Mar  6 13:33:47 1995  Stan Shebs  <shebs@andros.cygnus.com>
5355
5356         * objcopy.c (copy_archive): Check result of mkdir.
5357         (copy_main): Cast an xmalloc result.
5358
5359         * objdump.c (usage): Break long format string into shorter ones.
5360
5361 Mon Mar  6 13:46:12 1995  Ian Lance Taylor  <ian@cygnus.com>
5362
5363         * bucomm.c (list_supported_targets): New function.
5364         * bucomm.h (list_supported_targets): Declare.
5365         * ar.c (usage): Call list_supported_targets.
5366         * nm.c (usage): Likewise.
5367         * objcopy.c (copy_usage, strip_usage): Likewise.
5368         * objdump.c (usage): Likewise.
5369         * size.c (usage): Likewise.
5370         * strings.c (usage): Likewise.
5371
5372 Tue Feb 28 15:13:58 1995  Ian Lance Taylor  <ian@cygnus.com>
5373
5374         * bucomm.c (print_arelt_descr): Cast st_size to long before
5375         passing it to fprintf.
5376
5377 Fri Feb 17 13:36:45 1995  Ian Lance Taylor  <ian@cygnus.com>
5378
5379         * objcopy.c (struct section_list): Add fields remove, set_flags,
5380         and flags.  Change adjust from boolean to enum.
5381         (remove_sections): Remove static variable.
5382         (sections_removed): New static variable.
5383         (copy_options): Add --set-section-flags.
5384         (copy_usage): Mention --set-section-flags.
5385         (parse_flags): New static function.
5386         (find_section_list): New static function.
5387         (is_strip_symbol): Change return type from int to boolean.
5388         (is_strip_section): New static function.
5389         (filter_symbols): Call is_strip_section.
5390         (copy_object): When adding sections, check for specified flags or
5391         VMA.  Call filter_symbols if any sections are being removed.
5392         (setup_section): Use find_section_list function rather than
5393         looking through remove_sections and adjust_sections.  Handle
5394         --set-section-flags.
5395         (copy_section): Use find_section_list rather than looking through
5396         remove_sections.
5397         (strip_main): Use find_section_list instead of adding items to
5398         sections_removed.
5399         (copy_main): Use find_section_list instead of adding items to
5400         sections_removed and adjust_sections.  Handle --set-section-flags.
5401         * binutils.texi, objcopy.1: Document --set-section-flags.
5402
5403 Tue Feb 14 18:03:03 1995  Ian Lance Taylor  <ian@cygnus.com>
5404
5405         * objdump.c (with_source_code): New global variable.
5406         (usage): Mention -S/--source.
5407         (long_options): Add --source.
5408         (prev_functionname, prev_line): New static variables.
5409         (struct print_file_list): Define.
5410         (print_files): New static variable.
5411         (skip_to_line, show_line): New static functions.
5412         (disassemble_data): Call show_line to handle -l and -S.
5413         (main): Handle -S.
5414         * binutils.texi, objdump.1: Document -S/--source.
5415
5416 Thu Feb  9 16:11:53 1995  Ian Lance Taylor  <ian@cygnus.com>
5417
5418         * objcopy.c (copy_usage): Rename parameter to avoid shadowing.
5419         (strip_usage): Likewise.
5420
5421         * objcopy.c (struct section_add): Define.
5422         (add_sections): New static variable.
5423         (copy_options): Accept --add-section.
5424         (copy_usage): Mention --add-section.
5425         (copy_object): Add sections from the add_sections list.
5426         (copy_main): Handle --add-section.
5427         * binutils.texi, objcopy.1: Document --add-section.
5428
5429 Wed Feb  1 15:04:57 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
5430
5431         * objdump.c (disassemble_data): Pass section offset, not absolute
5432         address, to bfd_find_nearest_line.
5433
5434         * nlmconv.c (powerpc_mangle_relocs): Don't use const with
5435         reloc_howto_type.
5436
5437 Thu Jan 26 18:50:06 1995  Ian Lance Taylor  <ian@cygnus.com>
5438
5439         * objdump.c (compare_symbols): Use bfd_asymbol_value (VAR) rather
5440         than VAR->value.
5441         (objdump_print_address): Likewise.
5442         (disassemble_data): Don't change the symbol values.  It can
5443         confuse bfd_canonicalize_reloc.
5444
5445 Thu Jan 26 12:03:56 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
5446
5447         * configure.in: Add support for powerpc-*-ebai.
5448
5449 Wed Jan 18 10:02:12 1995  Steve Chamberlain  <sac@splat>
5450
5451         * coffdump.c: Include sysdep.h.
5452         (dump_coff_type): Handle coff_secdef_type.
5453         * coffgrok.c : Include sysdep.h.
5454         * srconv.c: Include libiberty.h
5455         (absolute_p, dty_start, dty_end, dump_tree_structure): Remove.
5456
5457 Wed Jan 18 12:24:14 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5458
5459         * coffdump.c (dump_coff_scope): Cast pointer to unsigned long for
5460         printf.
5461         * coffgrok.c: Include bucomm.h.  Don't declare xmalloc.
5462         (push_scope): Declare type of parameter link.
5463         * size.c: Include libiberty.h.
5464         * srconv.c: Include bucomm.h.
5465         (find_base): Declare at top of file.
5466         (wr_hd): Add default case to architecture switch.
5467         (wr_dps_start): Declare type of parameter nest.
5468         (wr_du): Comment out variables used only in commented out blocks.
5469         (wr_dus): Remove unused variable i.
5470         (wr_sc): Remove unused variables myinfo, low, and high.
5471         * strings.c: Include libiberty.h.
5472         * sysdump.c: Include <ctype.h>.
5473
5474 Tue Dec 20 19:13:44 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5475
5476         * ar.c (main): Ignore 'f' modifier used on HP/UX 9.
5477
5478 Thu Dec 15 17:34:12 1994  Stan Shebs  <shebs@andros.cygnus.com>
5479
5480         * ar.c, nm.c, objcopy.c, objdump.c: Include progress.h.
5481         * ar.c, nm.c, objcopy.c, objdump.c (main): Add START_PROGRESS
5482         and END_PROGRESS.
5483         * ar.c (map_over_members, open_inarch): Call PROGRESS.
5484         * nm.c (main, display_archive, filter_symbols, print_symbols):
5485         Call PROGRESS.
5486
5487         * objcopy.c (copy_usage): Break up long usage string.
5488
5489 Wed Dec 14 15:51:56 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
5490
5491         * objcopy.c (copy_object): Don't bother setting status after
5492         nonfatal() "call", because it won't return.
5493
5494 Fri Dec  9 00:22:54 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5495
5496         * nlmconv.c (powerpc_mangle_relocs): Don't switch a reloc to use
5497         the section symbol if the symbol is undefined.
5498
5499 Thu Dec  8 14:45:50 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
5500
5501         * objcopy.c (add_strip_symbol): Cast return value of xmalloc.
5502
5503 Wed Nov 30 11:05:43 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
5504
5505         * ar.c (replace_members): Pass current->filename to normalize when
5506         checking for duplicates, because the filename of a newly added
5507         file will not have been normalized yet.
5508
5509 Thu Nov 17 15:00:13 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5510
5511         * ar.c (main): Don't call do_quick_append if any of the archive
5512         names are longer than 14 characters.
5513
5514         * objcopy.c (main): Fix is_strip test.  From
5515         pirker@eiunix.tuwien.ac.at (Martin Pirker).
5516
5517 Thu Nov 17 15:37:19 1994  Mark W. Eichin  <eichin@cygnus.com>
5518
5519         * objcopy.c (add_strip_symbol): New function, adds a name to an
5520         explicit list of symbols to strip.
5521         (is_strip_symbol): New function, reports whether the name argument
5522         is in the explicit list.
5523         (filter_symbols): Check against is_strip_symbol above all.
5524         (strip_main): Recognize -N option. If used, don't default to
5525         strip_all.
5526         (copy_main): Recognize -N option.
5527         (strip_usage): Document -N and --strip-symbol options.
5528         (copy_usage): Ditto.
5529         * objcopy.1, strip.1, binutils.texi: Document -N and
5530         --strip-symbol options.
5531
5532 Tue Nov  8 13:12:54 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5533
5534         * objdump.c (display_target_list, display_info_table): Pass an
5535         array to tmparg, rather than NULL, since some systems can't handle
5536         NULL.
5537
5538         * objcopy.c (copy_archive): Keep a list of the names of the
5539         temporary files we created.  Close each input BFD after we open
5540         its successor.
5541
5542 Mon Nov  7 15:48:39 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
5543
5544         * Makefile.in (VERSION): Bump to 2.5.3.
5545
5546 Thu Nov  3 19:04:34 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
5547
5548         * Makefile.in (install-info): Install info files from whatever
5549         directory they were found in.
5550
5551         Patch from DJ Delorie:
5552         * configure.bat: do c++filt -> cxxfilt right
5553
5554         * sysinfo.y: Include system header files early, so any potential
5555         declaration of abort() occurs before its use.
5556
5557         * strings.c (strings_file): Try opening the file in binary mode
5558         first.
5559
5560 Wed Nov  2 15:44:13 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5561
5562         * ar.c (main): Treat ar qs like ar rs.
5563
5564 Tue Oct 25 16:19:25 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5565
5566         * objcopy.c (gap_fill): Explicitly initialize, for clarity.
5567         (pad_to_set, pad_to): New static variables.
5568         (copy_options): Accept --pad-to.
5569         (copy_usage): Mention --pad-to.
5570         (copy_object): Support --pad-to.
5571         (compare_section_vma): Sort non loadable sections to the front.
5572         Sort sections with the same VMA by size.
5573         (copy_main): Handle --pad-to.
5574         * binutils.texi, objcopy.1: Document --pad-to.
5575
5576 Thu Oct 20 13:51:31 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5577
5578         * objcopy.c (gap_fill_set, gap_fill): New static variables.
5579         (copy_options): Accept --gap-fill.
5580         (copy_usage): Mention --gap-fill.
5581         (copy_object): Support --gap-fill.
5582         (get_sections, compare_section_vma): New static functions.
5583         (copy_main): Handle --gap-fill.
5584         * binutils.texi, objcopy.1: Document --gap-fill.
5585
5586 Wed Oct 19 14:09:16 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5587
5588         * Makefile.in (check): Add a dummy else clause to the if
5589         statement.
5590
5591         * objcopy.c (copy_object): Revert yesterday's change.
5592         * binutils.texi, objcopy.1: Remove special mention of --set-start
5593         and `binary' output format.
5594
5595 Tue Oct 18 11:12:01 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5596
5597         * objcopy.c (copy_object): If the output file format is `binary',
5598         and the start address was not set using --set-start, default the
5599         start address to zero.  This hack is because the `binary' output
5600         file format uses the start address to set the virtual address of
5601         the first byte in the file.
5602         * binutils.texi, objcopy.1: Add some notes on generating S-records
5603         and binary files.
5604
5605         * nm.c (print_symdef_entry): Call print_symname to print the
5606         symbol name, so that --demangle works.
5607
5608         * Makefile.in (mostlyclean): Remove tmpdir.
5609
5610         * objcopy.c (struct section_list): Add fields used, adjust, val.
5611         (adjust_start, set_start_set, set_start): New static variables.
5612         (adjust_section_vma, adjust_sections): New static variables.
5613         (copy_options): Add --adjust-start, --adjust-vma,
5614         --adjust-section-vma, --adjust-warnings, --no-adjust-warnings,
5615         --set-start.
5616         (parse_vma): New static function.
5617         (copy_usage): Mention new options.
5618         (copy_object): Handle --set-start and --adjust-start.
5619         (setup_section): Correct type of last argument to PTR.  Set used
5620         field if section is removed.  Handle --adjust-vma and
5621         --adjust-section-vma.
5622         (copy_section): Correct type of last argument to PTR.
5623         (mark_symbols_used_in_relocations): Likewise.
5624         (strip_main): Clear used field when handling -R.
5625         (copy_main): Handle new options.
5626         * binutils.texi (objcopy): Document new options.
5627         * objcopy.1: Document new options.
5628
5629 Fri Oct 14 14:38:13 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5630
5631         * configure.in (configdirs): Remove definition--testsuite is no
5632         longer configured.
5633         * Makefile.in (testsuite): Remove target.
5634         (site.exp): New target.
5635         (check): Rewrite.
5636         (clean, distclean): Don't recur into testsuite directory.
5637
5638 Thu Oct 13 19:24:09 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
5639
5640         * Makefile.in (VERSION): Updated to 2.5.
5641         * Version 2.5 released.
5642
5643 Tue Oct 11 15:26:42 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5644
5645         * Makefile.in (sysdump.o): Depends upon sysroff.c.
5646
5647 Mon Oct 10 13:50:30 1994  J.T. Conklin  (jtc@rtl.cygnus.com)
5648
5649         * nlmconv.c (link_inputs): Pass -Ur flag to ld so that the
5650           ctor/dtor tables needed by C++ programs are built.
5651
5652 Sun Oct  9 18:04:00 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5653
5654         * Makefile.in (srconv.o): Add dependence on sysroff.c.
5655
5656 Tue Oct  4 12:19:51 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5657
5658         * configure.in: Use ${config_shell} when running config.bfd.
5659
5660         * Makefile.in (sysroff.h): Split target away from sysroff.c.
5661         (srconv.o, sysdump.o): New targets.
5662         (srconv, sysdump): Don't depend upon sysroff.c.
5663
5664 Wed Sep 28 13:04:34 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5665
5666         * Makefile.in (arparse.c): Don't ignore errors from mv.
5667         (sysinfo.c): Likewise.  Also, depend upon arparse.c, to prevent a
5668         parallel make from trying to build both arparse.c and sysinfo.c
5669         simultaneously.
5670         (nlmheader.c): Similar change.
5671         (arparse.h): Separate target from arparse.c, so that a parallel
5672         make does not try to build both at once.  Depend upon arparse.c.
5673         (sysinfo.h): Similar change.
5674
5675         * objdump.c (disassemble_data): Pass the reloc buffer to free, not
5676         the pointer used to loop over the relocs.
5677
5678 Sat Sep 24 16:16:57 1994  Stan Shebs  (shebs@andros.cygnus.com)
5679
5680         * objdump.c (disassemble_data): Cast result of xmalloc.
5681
5682 Wed Sep 21 19:30:35 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5683
5684         * objdump.c (sorted_syms, sorted_symcount): New global variables.
5685         (objdump_print_address): Use sorted_syms and sorted_symcount
5686         instead of syms and symcount.
5687         (disassemble_data): Don't bother to get the relocs before looping
5688         over the sections.  Before filtering and sorting the symbol table,
5689         copy it into sorted_syms.
5690
5691 Fri Sep 16 11:27:39 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5692
5693         * objdump.c (struct objdump_disasm_info): Add field require_sec.
5694         (objdump_print_address): If aux->require_sec, require that the
5695         symbol be in aux->sec even if HAS_RELOC is not set.  If we can't
5696         find a smaller symbol in the right section, look for a larger one.
5697         (disassemble_data): Set aux.require_sec around the
5698         objdump_print_address call for the instruction address.
5699
5700 Thu Sep 15 21:43:17 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5701
5702         * ar.c: Call xexit rather than exit.
5703         (output_filename, output_file, output_bfd): New static variables.
5704         (remove_output): New static function.
5705         (main): Call xatexit (remove_output).  Call xexit rather than
5706         returning.
5707         (extract_file): Set output_filename and output_file while output
5708         file is open.
5709         (write_archive): Likewise, but use output_bfd, not output_file.
5710         * arsup.c: Include libiberty.h.  Call xexit rather than exit.
5711         * bucomm.c: Likewise.
5712
5713         * objdump.c (disassemble_all): New global variable.
5714         (usage): Document --disassemble-all.
5715         (long_options): Add disassemble-all as a synonym for -D.
5716         (compare_symbols): Make pointers const.
5717         (compare_relocs): New static function.
5718         (disassemble_data): Rename disassemble to disassemble_fn to avoid
5719         shadowing.  If dump_reloc_info, print relocs along with
5720         disassembly.  Skip sections which are not SEC_CODE unless
5721         disassemble_all or only is set.
5722         (display_bfd): Don't call dump_relocs if disassemble is set.
5723         (main): Accept and handle -D.
5724         * binutils.texi: Document -D/--disassemble-all.
5725         * objdump.1: Likewise.
5726
5727 Wed Sep 14 12:19:07 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5728
5729         * objdump.c (disassemble_data): Initialize prevline to 0.  Make
5730         prev_function non const.  Copy functionname into an malloc buffer
5731         when setting prev_function, instead of assuming that the string
5732         will last forever.
5733
5734         * nm.c: Include libiberty.h.
5735         (sort_by_size): New static variable.
5736         (long_options): Add --size-sort.
5737         (usage): Mention --size-sort.
5738         (numeric_forward): Make static.  Change from void * to PTR.
5739         (numeric_reverse): Likewise.
5740         (non_numeric_forward, non_numeric_reverse): Likewise.
5741         (sorters): Change declaration from void * to PTR.
5742         (size_forward, sort_symbol_by_size): New static functions.
5743         (display_rel_file): Handle sort_by_size.
5744         (filter_symbols): If sort_by_size, discard absolute and undefined
5745         symbols.
5746         * binutils.texi (nm): Document --size-sort.
5747         * nm.1: Document --size-sort.
5748
5749 Tue Sep 13 21:06:06 1994  Jeff Law  (law@snake.cs.utah.edu)
5750
5751         * objcopy.c (copy_main): Initialize input_filename and
5752         output_filename to NULL.
5753
5754 Tue Sep 13 14:17:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5755
5756         * Makefile.in (version.o): Depend upon Makefile, so that version.o
5757         gets rebuilt when make variable VERSION is changed.
5758
5759         * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.
5760
5761 Wed Aug 24 12:40:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5762
5763         * configure.in: Change i[34]86 to i[345]86.
5764
5765 Tue Aug 23 11:00:40 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5766
5767         * ar.c (ranlib_touch): Don't update the archive map if there isn't
5768         one.
5769
5770 Mon Aug 22 16:02:18 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5771
5772         * ar.c: Include libiberty.h.
5773         (inarch): Remove variable.
5774         (map_over_members): Make static.  Add arch argument, and use it
5775         instead of inarch.  Change all callers.
5776         (main): Treat --version as -v.  Accept -t argument.  Accept any
5777         number of archive arguments.  Catch and use open_inarch return
5778         value, rather than using inarch.
5779         (open_inarch): Return newly opened BFD, rather than using inarch.
5780         (do_quick_append): Make archive_filename const.
5781         (write_archive): Add iarch argument, and use it instead of inarch.
5782         Change all callers.
5783         (delete_members, move_members, replace_members): Likewise.
5784         (ranlib_only): Don't exit on success.  Catch and use open_inarch
5785         return value.
5786         (ranlib_touch): New function.
5787         * arsup.h (map_over_members): Don't declare.
5788         (ar_end, ar_extract): Declare.
5789         (open_inarch): Change return value in declaration to bfd *.
5790         * arsup.c (map_over_list): Make static. Always pass two arguments
5791         to function.  Add arch argument, and use it instead of inarch.
5792         Change all callers.
5793         (ar_directory_doer): Make static.  Add ignored second argument.
5794         Change all callers.
5795         (ar_directory): Use open_inarch return value rather than inarch.
5796         (ar_addlib_doer): Make static.
5797         (ar_addlib): Use open_inarch return value rather than inarch.
5798         (ar_extract): Remove unused local variable abfd.
5799
5800 Thu Aug 11 14:55:57 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5801
5802         Add support for removing named sections to objcopy and strip.
5803         * objcopy.c (struct section_list): Define.
5804         (remove_sections): New static variable.
5805         (strip_options, copy_options): Add remove-section.
5806         (copy_usage, strip_usage): Mention -R and --remove-section.
5807         (setup_section): If section is in remove_sections list, ignore it.
5808         (copy_section): Likewise.
5809         (strip_main, copy_main): Handle -R.
5810         * binutils.texi, objcopy.1, strip.1: Document new options.
5811
5812 Wed Aug 10 10:19:55 1994  Stan Shebs  (shebs@andros.cygnus.com)
5813
5814         * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
5815         so as not to conflict with the symvalue typedef in bfd.h.
5816
5817 Mon Aug  1 13:19:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5818
5819         * nlmheader.y: Per current NetWare docs, accept a revision number
5820         of 0 and treat a revision number greater than 26 as 0.
5821
5822 Mon Jul 25 12:58:36 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5823
5824         * objdump.c (objdump_print_address): Correct handling of end of
5825         symbols when looking for next symbol with a different value.
5826
5827 Fri Jul 22 16:48:34 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
5828
5829         * nm.c (numeric_forward): Treat undefined symbols as "less than"
5830         defined symbols with zero values.  If numeric values are equal, or
5831         both symbols are undefined, sort alphabetically.  Don't assume
5832         that the difference of two bfd_vma values will truncate to "int"
5833         and still have the same sign.
5834         (numeric_reverse): Call numeric_forward and negate the result.
5835         (print_symbol_info_bsd): For undefined symbols, print leading
5836         spaces equivalent to the width of a printed bfd_vma, rather than
5837         assuming that 8 will look right.
5838
5839 Fri Jul 22 10:36:50 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
5840
5841         * coffgrok.c (doit):  Zero all fields of new structure.
5842         * srconv.c (sysroff_swap_*_out): Remove redundant trailing arg.
5843         * sysinfo.y: Generate sysroff_swap_*_out without requiring extra
5844         arg.
5845
5846 Fri Jul 22 10:09:53 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
5847
5848         * nlmheader.y: Make "stack" and "stacksize" synonyms in the lexer
5849           rather than the parser.
5850
5851 Thu Jul 21 10:25:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5852
5853         * config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:
5854         Remove; obsolete.
5855
5856 Sat Jul 16 22:34:39 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5857
5858         * objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbols
5859         even if the bfd is not marked DYNAMIC.  ELF executables are not
5860         marked DYNAMIC, but do have dynamic symbols.
5861
5862 Fri Jul 15 01:41:35 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
5863
5864         * coffgrok.c (do_where): Make data with no type 'int'.
5865         (do_define):  Keep info on source file of a symbol.
5866         * coffgrok.h (coff_symbol): New field.
5867         * srconv.c (PROGRAM_VERSION): Now 1.3
5868         (wr_rl): Use external ref number for symbol.
5869         (wr_dus): Only keep one source file per debug unit.
5870         (wr_dln): Always emit line numbers for first source file,
5871         (wr_globals):  Emit globals in the du of their owning source file.
5872
5873 Mon Jul 11 15:59:03 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
5874
5875         * nlmheader.y: Null terminate var_hdr->threadName.
5876
5877 Fri Jul  8 17:33:22 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
5878
5879         * Makefile.in (syslex.o, sysinfo.o): Permit C source files to be
5880         in $(srcdir), as they will be for FSF releases.
5881
5882 Wed Jul  6 01:13:14 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5883
5884         * nlmconv.c (setup_sections): Preserve existing section flags when
5885         copying in flags from a new section.
5886
5887 Tue Jul  5 15:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5888
5889         * objcopy.c: Include libiberty.h.
5890         (copy_file): If output_target is NULL, set it to the target of the
5891         input file.
5892
5893 Wed Jun 29 17:17:14 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
5894
5895         * nlmconv.c (link_inputs): Fixed memory allocation bug.
5896
5897 Thu Jun 23 12:52:46 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
5898
5899         * configure.in: Change --with-targets to --enable-targets.
5900
5901 Tue Jun 21 12:53:21 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5902
5903         * Makefile.in (sysinfo): Does not depend upon $(ADDL_LIBS).
5904
5905         * nlmconv.c (powerpc_build_stubs): Don't generate the PowerPC
5906         NetWare custom header; no longer needed.
5907         (powerpc_mangle_relocs): Convert relocs against the uninitialized
5908         data section into relocs against the data section.
5909
5910         * configure.in: Set nlmconv_defs to -DNLMCONV_cputype for all the
5911         netware targets.  Write it into Makefile as NLMCONV_DEFS.
5912         * Makefile.in (nlmconv.o): Pass $(NLMCONV_DEFS) to $(CC).
5913         * nlmconv.c: Only compile code for specific CPU types if
5914         NLMCONV_cputype is defined.
5915
5916         * nlmconv.c (main): Change uses of bfd_abs_section, etc., to use
5917         bfd_abs_section_ptr or bfd_is_abs_section, etc.
5918         (i386_mangle_relocs, alpha_mangle_relocs): Likewise.
5919         (powerpc_build_stubs): Likewise.
5920         * nm.c (filter_symbols, print_symbols): Likewise.
5921         * objcopy.c (filter_symbols): Likewise.
5922         (mark_symbols_used_in_relocations): Likewise.
5923         * objdump.c (remove_useless_symbols, dump_relocs): Likewise.
5924         * size.c (sysv_internal_printer): Likewise.
5925
5926 Mon Jun 20 16:43:03 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
5927
5928         * Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG).
5929         (install): Install it explicitly, from build dir, not srcdir.
5930
5931 Mon Jun 20 16:29:54 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5932
5933         * objdump.c: Don't include elf/internal.h.
5934         (bfd_elf_find_section): Don't declare.
5935         (read_section_stabs): No special handling for ELF.  Always read
5936         using BFD sections.
5937
5938 Thu Jun 16 17:25:20 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5939
5940         * configure.in: Set UNDERSCORE in Makefile based on result of
5941         invoking config.bfd with a second argument of ``_''.
5942         * Makefile.in (underscore.c): Depend upon Makefile.  Don't try to
5943         run $(CC) and $(NM), just use $(UNDERSCORE).  Create via temporary
5944         file.
5945         (demangle.o): Remove target.
5946         ($(NM_PROG)): Don't depend upon demangle.o, and don't link against
5947         demangle.o.  It's in libiberty anyhow.
5948         (cplus-dem.o): Don't depend upon demangle.o.
5949         * binutils.texi: Mention -n and --no-strip-underscores arguments
5950         to c++filt.
5951
5952 Wed Jun 15 12:10:31 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5953
5954         * nm.c (long_options): Add --no-demangle to turn off --demangle,
5955         and --no-cplus for Linux compatibility.
5956         (usage): Mention --no-demangle.
5957         * binutils.texi: Document --no-demangle.
5958
5959 Fri Jun 10 15:41:25 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5960
5961         * nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.
5962
5963         * objcopy.c (copy_archive): Make the temporary directory in the
5964         same directory as the output BFD, since we may not have write
5965         permission on the current directory.  Set the permissions of the
5966         new directory to 0700, not 0777.
5967
5968 Mon Jun  6 21:36:43 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
5969
5970         * configure.in: if this is an rs6000 (and we're not building for
5971         any other bfd targets) then build only nm (collect needs it on
5972         rs6000-lynx).
5973
5974         * Makefile.in: define TOOL_PROGS which the list of programes to
5975         install in $tooldir -- replaces a hard-coded list.
5976
5977 Fri Jun  3 10:59:18 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5978
5979         * objdump.c (display_target_list): Remove unused local ok.
5980
5981 Thu May 26 18:05:52 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
5982
5983         * config/mh-alphaosf (CFLAGS): Don't specify both -g and -O;
5984         they're not compatible under native cc.  Use -O1 instead.
5985
5986         * Makefile.in (VERSION): Updated to cygnus-2.4.1.
5987
5988         Changes from binutils-2.4 net release:
5989
5990         * Makefile.in (MANPAGES): Use $(DEMANGLER_PROG).
5991         ($(DEMANGLER_PROG).1): Build from cxxfilt.man, using sed.
5992         * cxxfilt.man: Renamed from c++filt.1, replaced "c++filt" with
5993         magic token to be replaced by sed.
5994
5995         Wed May 11 22:32:00 1994  DJ Delorie (dj@ctron.com)
5996
5997         * configure.bat: update for latest makefile.in
5998
5999 Fri May 13 23:25:13 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6000
6001         * bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.
6002
6003 Tue May 10 18:22:06 1994  Jason Molenda    (crash@sendai.cygnus.com)
6004
6005         * objcopy.c (copy_section): Set section size correctly if using
6006         interleave.
6007
6008 Sat May  7 16:49:36 1994  Steve Chamberlain  (sac@cygnus.com)
6009
6010         * Makefile.in: Add rule for sysinfo.h
6011
6012 Fri May  6 12:18:33 1994  Steve Chamberlain  (sac@cygnus.com)
6013
6014         * Makefile.in (SRCONV_PROG): Define.
6015         (PROGS): Use $(SRCONV_PROG) too.
6016
6017 Thu May  5 19:41:43 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
6018
6019         * Makefile.in (DISTSTUFF): Add sysinfo.c, syslex.c, in case
6020         someone configures with `targets=all'.
6021         (distclean): Remove y.*.
6022         (syslex.o): Depend on sysinfo.h.
6023         (sysinfo.c): Rename y.tab.h to sysinfo.h.
6024         (install-info): Don't try to install into $(infodir)/$(srcdir).
6025         * syslex.l: Include sysinfo.h, not y.tab.h.
6026
6027 Thu May  5 11:50:55 1994  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
6028
6029         * syslex.l (yywrap): Define as function if not defined as a macro.
6030
6031         * Makefile.in (objdump.o): Deleted special rule.
6032         * configure.in: Don't bother building ARCHDEFS variable for
6033         Makefile.
6034         * objdump.c (ARCH_*): Deleted handling.
6035         (disassemble_data): Call `disassembler' from opcodes library.
6036
6037 Thu May  5 13:28:42 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6038
6039         * Makefile.in (install): Correct handling of $(tooldir) and
6040         $(bindir) being on different devices.
6041
6042 Fri Apr 29 09:50:38 1994  Steve Chamberlain  (sac@cygnus.com)
6043
6044         * sysdump.c (h8300, sh): Add declarations.
6045
6046 Wed Apr 27 11:25:18 1994  Steve Chamberlain  (sac@cygnus.com)
6047
6048         * Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
6049         * coffdump.c, coffgroc.c, coffgrog.h, srconv.c, sysdump.c,
6050         sysroff.info: Major changes.
6051
6052 Tue Apr 26 18:18:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
6053
6054         * objdump.c (print_section_stabs): Indicate the stab header symbol
6055         more clearly, print numbers of unrecognized stab n_type values.
6056
6057 Tue Apr 26 16:22:55 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6058
6059         * nlmconv.c (copy_sections): Copy arelent pointers, not arelents.
6060
6061 Mon Apr 25 16:14:32 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6062
6063         * Makefile.in (distclean): Remove $(PROGS) and underscore.c.
6064
6065 Fri Apr 22 11:14:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6066
6067         * nlmconv.c (setup_sections): Remove special handling of .reginfo
6068         section.
6069         (copy_sections): Likewise.
6070         (alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the
6071         special ECOFF .reginfo section.
6072
6073         * objcopy.c (copy_object): Call bfd_copy_private_bfd_data after
6074         copying everything else, to let it fiddle with the file in its
6075         final state.
6076
6077         * objdump.c: Include libiberty.h.
6078         (display_target_list): If a format fails, just go on to the next
6079         one.  Check return value of bfd_set_format.
6080         (display_info_table): Likewise.  Don't increment loop variable in
6081         for loop test, since that skips the first element.
6082         (display_target_tables): Rewrite loop for clarity.  Ensure that it
6083         always prints at least one element.
6084
6085         * nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs for
6086         sections header.  Rename from cygnus_sections to cygnus_ext.
6087
6088 Thu Apr 21 12:12:26 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6089
6090         * objdump.c (_DUMMY_NAME_): Don't define.
6091         (display_target_list): Use tmpnam to get a file name rather than
6092         using _DUMMY_NAME_.  Unlink it when done.
6093         (display_info_table): Likewise.
6094
6095         * nlmconv.c (secsec): New static variable.
6096         (main): Create .nlmsections section in output BFD.  Store
6097         information about it in sections header.
6098         (setup_sections): Allocate space in sections header.
6099         (copy_sections): Copy zero sized sections.  Put information about
6100         each section in the sections header.
6101
6102 Wed Apr 20 14:34:51 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6103
6104         * nlmconv.c (powerpc_build_stubs): Take new outbfd argument.
6105         Change caller.  Create custom header for new PowerPC NetWare
6106         format.
6107
6108         * Makefile.in (nlmheader.o, nlmconv.o): Update dependencies.
6109         * nlmconv.c: Include bfd.h and libiberty.h with "", not <>.
6110         * nlmheader.y: Include bfd.h with "", not <>.
6111
6112 Wed Apr 13 10:52:50 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6113
6114         * objdump.c: Do an ifdef on __GO32__, not unix.
6115
6116 Wed Apr  6 21:54:49 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6117
6118         Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -R
6119         (--dynamic-reloc) arguments to objdump.
6120         * nm.c (dynamic): New static variable.
6121         (long_options): Added "dynamic".
6122         (usage): Mention -D and --dynamic.
6123         (main): Add D to getopt string.  Handle -D by setting dynamic.
6124         (display_rel_file): If dynamic is non-zero, read dynamic symbols
6125         rather than normal symbols.
6126         * nm.1: Updated for -D (--dynamic) option.
6127         * objdump.c (dump_dynamic_symtab): New global variable.
6128         (dump_dynamic_reloc_info): New global variable.
6129         (dynsyms, dynsymcount): New global variables.
6130         (usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc.
6131         (long_options): Added "dynamic-reloc" and "dynamic-syms".
6132         (slurp_symtab): If no symbols, return rather than exit.
6133         (slurp_dynamic_symtab): New function.
6134         (display_bfd): Handle dump_dynamic_symtab and
6135         dump_dynamic_reloc_info.
6136         (dump_symbols): Take new dynamic argument, indicating whether to
6137         display dynamic symbols.
6138         (dump_relocs): Move most printing into dump_reloc_set.
6139         (dump_dynamic_relocs): New function.
6140         (dump_reloc_set): New function, extracted from dump_relocs.
6141         (main): Add R and T to getopt string.  Handle -T by setting
6142         dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info.
6143         * objdump.1: Updated for -R (--dynamic-reloc) and -T
6144         (--dynamic-syms) options.
6145         * binutils.texi: Updated for new nm and objdump options.
6146
6147 Wed Mar 30 15:52:40 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6148
6149         Update for recent BFD changes to symbol and reloc reading.  Rename
6150         all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound.
6151         Also:
6152         * coffgrok.c (symcount): Change to long.
6153         (do_sections_p1): Check for error return from
6154         bfd_get_reloc_upper_bound.  Change relcount to long, and check for
6155         error from bfd_canonicalize_reloc.
6156         (coff_grok): Change storage to long.  Check for error from
6157         bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
6158         * nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and
6159         i to long.  Check for error from bfd_get_symtab_upper_bound and
6160         bfd_canonicalize_symtab.
6161         (copy_sections): Change reloc_size and reloc_count to long.  Check
6162         for error from bfd_get_reloc_upper_bound and
6163         bfd_canonicalize_reloc.
6164         (mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change
6165         reloc_count_ptr argument to long *.  Make corresponding changes to
6166         variables loaded from *reloc_count_ptr.
6167         * nm.c (display_rel_file): Change storage and symcount to long.
6168         Check for errors from bfd_get_symtab_upper_bound and
6169         bfd_canonicalize_symtab.
6170         * objcopy.c (filter_symbols): Change symcount, src_count and
6171         dst_count to long.
6172         (copy_object): Change symcount to long.  Pass another argument to
6173         fprintf.  Check for errors from bfd_get_symtab_upper_bound and
6174         bfd_canonicalize_symtab.
6175         (copy_section): Change relcount to long.  Check for errors from
6176         bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
6177         (mark_symbols_used_in_relocations): Change relcount and i to long.
6178         Check for errors form bfd_get_reloc_upper_bound and
6179         bfd_canonicalize_reloc.
6180         * objdump.c (storage): Remove global variable.
6181         (symcount): Changed to long.
6182         (slurp_symtab): New local variable storage.  Check for errors from
6183         bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
6184         (remove_useless_symbols): Change return value and count to long.
6185         (objdump_print_address): Change min, max, thisplace and i to long.
6186         (disassemble_data): Change i to long.
6187         (dump_symbols): Change count to long.
6188         (dump_relocs): Change relcount to long.  Check for errors from
6189         bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc.
6190         (display_info_table): Add casts when passing LONGEST_ARCH for
6191         printf %* argument.
6192
6193 Tue Mar 29 14:59:04 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6194
6195         * nm.c (display_archive): Close each archive element after it has
6196         been displayed.
6197         * objdump.c (display_file): Likewise.
6198
6199 Mon Mar 28 13:04:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6200
6201         * configure.in: Change error message to refer to bfd/config.bfd
6202         rather than bfd/configure.in.
6203
6204 Sun Mar 27 16:23:39 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
6205
6206         * More fixes for object formats which allow multiple sections
6207         with the same name:
6208         * objcopy.c (setup_section): Make a new output section even if
6209         one already exists with the given name.
6210         (copy_section): Use isection->output_section rather than trying
6211         to look the output section up by its (possibly non-unique) name.
6212
6213         * Makefile.in (install-info): Look for binutils.info in the
6214         current directory, then in $(srcdir).  Don't use $<.
6215
6216 Mon Mar 21 12:55:45 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6217
6218         * objdump.c (objdump_print_address): Make static.  Declare with
6219         prototype.  Change vardiff from int to bfd_signed_vma.  Correct
6220         binary search termination condition.  When looking for same
6221         section symbol in relocatable file, handle final symbol correctly.
6222
6223 Sun Mar 20 11:26:36 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
6224
6225         * Makefile.in: Avoid bug in hpux sed.
6226
6227         * objcopy.c: Changes to keep it from stripping symbols used
6228         in output relocations.
6229         (mark_symbols_used_in_relocations): New function.  Mark symbols
6230         used in output relocations with BSF_KEEP.
6231         (filter_symbols): Do not strip symbols marked with BSF_KEEP.
6232         (copy_object): Reorder actions.  First setup sections, then
6233         build the output symbol table, then copy the section contents.
6234
6235 Fri Mar 18 10:53:55 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6236
6237         * ar.c (write_archive): Allocate space for the null byte.  From
6238         Robert Lipe <robertl@arnet.com>.
6239
6240 Thu Mar 17 16:20:28 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6241
6242         * Makefile.in: Built nm.new and strip.new to avoid problems with
6243         collect when . is in PATH.
6244         (STRIP_PROG): Change from strip to strip.new.
6245         (NM_PROG): Change from nm to nm.new.
6246         (install): Remove the .new when installing.
6247
6248 Wed Mar 16 16:27:05 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6249
6250         * nlmconv.c (powerpc_build_stubs): Set BSF_DYNAMIC flag for each
6251         symbol for which we build a stub.
6252         (powerpc_mangle_relocs): Only reset TOC pointer for a call to a
6253         symbol with BSF_DYNAMIC flag set.
6254
6255 Tue Mar 15 23:04:13 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
6256
6257         * objcopy.c (filter_symbols): Use bfd_is_local_label to determine
6258         if a symbol represents a compiler-generated local label.
6259         (copy_object): Give the BFD backends a chance to copy any private
6260         bfd data from the input BFD to the output BFD.
6261         (setup_section): Give the BFD backends a chance to copy any private
6262         section data from the input section to the output section.
6263
6264 Mon Mar 14 11:15:58 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
6265
6266         * objcopy.c (mangle_section): Delete unused function.
6267         (setup_section): Set osection here instead of calling
6268         mangle section to do it.
6269
6270 Mon Mar 14 12:11:01 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6271
6272         * ar.c (write_archive): Close inarch before unlinking it.
6273
6274 Fri Mar 11 22:20:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6275
6276         * nlmconv.c (main): For PowerPC, call powerpc_build_stubs and
6277         powerpc_resolve_stubs.  Use __GOT0, not __toc_start.  Handle it if
6278         the start and end symbols are not in the text section.
6279         (struct powerpc_stub): New struct definition.
6280         (powerpc_stubs, powerpc_stub_insns): New static variables.
6281         (powerpc_initial_got_size): New static variable.
6282         (powerpc_build_stubs): New function.
6283         (powerpc_resolve_stubs): New function.
6284         (powerpc_mangle_relocs): Clear extraneous data in .got section.
6285         Rearrange reloc handling to handle ELF relocs that are not
6286         partial_inplace.  Resolve PC relative relocs.
6287
6288 Wed Mar  9 13:48:11 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
6289
6290         * ar.c (move_members): Fix it so that the abi positional modifiers
6291         don't delete all archive members following the insert point.
6292
6293 Tue Mar  8 13:14:43 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
6294
6295         * coffgrok.[ch]: New files, understand coff objects.
6296         * coffdump.c: Uses coffgrok to dump out the debug info of a coff
6297         file.
6298         * sysroff.info: Description of a SYSROFF object file.
6299         * sysinfo.y, syslex.l: Parse info file, generate a reader, writer,
6300         header files and a printer.
6301         * srconv.c: Uses coffgrok.c and sysroff.info to convert a coff
6302         file to a SYSROFF file.
6303
6304 Sat Feb 26 13:35:26 1994  Stan Shebs  (shebs@andros.cygnus.com)
6305
6306         * ar.c (do_quick_append): Pad with a genuine character 10,
6307         rather than whatever '\n' might happen to be.
6308
6309 Tue Feb 22 18:25:52 1994  Ian Lance Taylor  (ian@cygnus.com)
6310
6311         * nlmconv.c (main): Ignore debugging symbols when looking for
6312         special symbols by name.
6313
6314 Sun Feb 20 18:47:42 1994  Ian Lance Taylor  (ian@lisa.cygnus.com)
6315
6316         * nlmconv.c: Include libiberty.h.
6317
6318         Support for PowerPC NetWare.
6319         * nlmconv.c (main): For PowerPC NetWare, automatically define the
6320         special symbols __toc_start.
6321         (select_output_format): Handle bfd_arch_powerpc.
6322         (mangle_relocs): Likewise.
6323         (powerpc_mangle_relocs): New function.
6324
6325 Thu Feb 17 09:28:23 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6326
6327         * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
6328         size.c: Use bfd_get_error and bfd_set_error and new error names.
6329
6330 Fri Feb 11 15:54:51 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6331
6332         * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
6333
6334 Mon Feb  7 19:45:52 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6335
6336         * objdump.c (disassemble_data): Handle bfd_arch_powerpc.
6337
6338 Sun Feb  6 22:08:20 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6339
6340         * strings.c objdump.c nlmconv.c objcopy.c nm.c ar.c size.c (main):
6341         Call xmalloc_set_program_name.
6342
6343 Fri Feb  4 10:46:01 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6344
6345         * objcopy.c (filter_bytes): Make MEMHUNK a char *, not PTR, so we
6346         can do arithmetic on it.
6347
6348 Thu Feb  3 14:06:41 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6349
6350         * objdump.c (dump_section_stabs, read_section_stabs,
6351         print_section_stabs): Functions broken out of dump_stabs_1.
6352         Free the stabs and strings when done with them.
6353
6354 Wed Feb  2 13:42:23 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6355
6356         * nlmconv.c (main): Use bfd_get_flavour instead of struct member.
6357         * ar.c (print_contents, extract_file), size.c
6358         (print_berkeley_format, print_sysv_format): Use bfd_get_filename and
6359         bfd_my_archive instead of dereferencing the structs directly.
6360
6361         * ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.
6362         Indent.  Remove DEFUNs.
6363
6364         * nlmconv.c (main), objcopy.c (copy_file): Print matching formats
6365         if ambiguous match.
6366         * nm.c (display_file, display_archive), size.c (display_bfd):
6367         Eliminate gotos.
6368         Print matching formats if there is an ambiguous match.  Use
6369         bfd_nonfatal instead of hardcoded error message if nothing matches.
6370
6371         * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of
6372         abfd->filename.
6373
6374         * nm.c (display_archive): New function, from code in display_file.
6375         (display_rel_file): Renamed from do_one_rel_file.
6376
6377         * size.c: Indent.
6378         (display_archive): New function from code in display_file.
6379         (display_file): Check bfd_close error return.
6380
6381         * strings.c (strings_object_file): Check bfd_check_format
6382         error return.
6383
6384         * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror.
6385
6386         * bucomm.c: Delete references to exit_handler.  It wasn't set
6387         anywhere, and now that we're using the libiberty xmalloc, it
6388         wouldn't always get called before exiting.
6389         (list_matching_formats): Function moved from objdump.c.
6390         * bucomm.h: Declare it.
6391
6392         * objdump.c (disassemble_data): Move some variable decls closer to
6393         their use.  Add some comments.  Replace a nested block with a
6394         return.
6395
6396 Mon Jan 31 18:50:41 1994  Stan Shebs  (shebs@andros.cygnus.com)
6397
6398         * objdump.c (display_target_list, display_info_table): Check that
6399         the bfd of the dummy output file is not null.
6400
6401 Wed Jan 26 13:13:18 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6402
6403         * objcopy.c (filter_bytes): New function.
6404         (copy_section): Call it.
6405         (copy_options, copy_usage, copy_main): Add --byte option to
6406         activate it.  Appropriate the -b option (which was an undocumented
6407         synonym for -F) for it, also.  Add --interleave, -i option for
6408         additional control.
6409         (setup_section, copy_section, mangle_section): Renamed with no `s'
6410         on the end.
6411         * objcopy.1, binutils.texi: Document the new options.
6412
6413         * objdump.c (display_target_tables, display_target_list):
6414         New functions broken out of display_info.
6415         Eliminate some magic constants.  Use more meaningful variable names.
6416         (dump_bfd_header): New function broken out of display_bfd.
6417         (dump_section_header): New function broken out of dump_headers.
6418         (remove_useless_symbols): Don't shadow global variable name with
6419         parameter.
6420         (objdump_print_address): Fix backward test.
6421
6422 Tue Jan 25 19:40:54 1994  Stan Shebs  (shebs@andros.cygnus.com)
6423
6424         * bucomm.c (print_arelt_descr): Change decl of `when' to time_t.
6425         * objdump.h: Removed.
6426
6427 Mon Jan 24 13:29:02 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6428
6429         * objdump.c (display_file): Remove call to list_matching_formats.
6430         It would never be called.
6431         (list_matching_formats): Take an arg giving the list of matching
6432         formats.
6433         (display_bfd): Pass the arg, and get it filled in by calling
6434         bfd_check_format_matches instead of bfd_check_format.
6435         (display_info, display_info_table): target_vector was renamed to
6436         bfd_target_vector.
6437
6438         * binutils.texi (objdump): Note some limitations of -h section
6439         address printing.
6440
6441 Sat Jan 22 16:20:46 1994  Stan Shebs  (shebs@andros.cygnus.com)
6442
6443         * Makefile.in (MALLOC): Set to emptiness by default.
6444         (ALL_CFLAGS): Add and use.
6445         (arparse.h): Make it depend on arparse.y.
6446         * ar.c (libbfd.h): Don't require to be in ../bfd.
6447         * objdump.c (comp): Rename to compare_symbols.
6448
6449 Fri Jan 21 20:22:30 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6450
6451         * objdump.c (list_matching_formats): If the file format is ambiguous,
6452         print the matching names so the user can choose one.
6453         (display_bfd): Call it.
6454         (display_file): Call it.
6455
6456 Fri Jan 21 19:17:25 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6457
6458         * objdump.c (disassemble_data): Support bfd_arch_rs6000.
6459
6460 Mon Jan 17 13:57:25 1994  Stan Shebs  (shebs@andros.cygnus.com)
6461
6462         * objdump.c (stab_name): Allocate dynamically.
6463         (stab_print): Use pointers to strings instead of char arrays.
6464         (dump_stabs): Change alloc and init of arrays appropriately.
6465         (dump_stabs_1): Always decide whether to print stab_name or
6466         the stab's type number, if unnamed.
6467
6468 Fri Jan 14 14:42:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6469
6470         * objcopy.c (strip_main, copy_main): Don't clobber the input file
6471         if copy_file fails.
6472
6473         * nlmconv.c (main): Warn about an attempt to use a shared library
6474         with uninitialized data.
6475
6476         * nlmconv.c (setup_sections): Make sure that we align the
6477         output_offset of each input section appropriately.
6478
6479 Thu Jan 13 17:32:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6480
6481         * objdump.c (dump_relocs): Don't crash if section name is NULL.
6482
6483 Tue Jan 11 19:46:33 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6484
6485         * filemode.c (filemodestring): Commented out; not used.
6486         (mode_string): Use POSIX definitions.
6487         (ftypelet): Likewise.
6488         (rwx): Removed; no longer used.
6489         * bucomm.c: Include bucomm.h.
6490         (bfd_nonfatal, bfd_fatal): Argument is const.
6491         (fatal): Make __STDC__ version.
6492         * bucomm.h (mode_string): Declare.
6493         * Makefile.in (bucomm.o): Depend upon bucomm.h
6494
6495 Sun Jan  9 12:03:20 1994  Ken Raeburn  (raeburn@rtl.cygnus.com)
6496
6497         * bucomm.c (xmalloc, xrealloc): Deleted.
6498         * bucomm.h (xmalloc, xrealloc): Fix prototypes, to correspond to
6499         libiberty version of functions.
6500
6501 Thu Jan  6 06:18:15 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6502
6503         * binutils.texi: Add a chapter summarizing the ways to select
6504         aspects of the target for each program.
6505
6506         * objdump.c (long_options, usage): Add long equivalents for all
6507         remaining short options that lacked them.
6508         * binutils.texi objdump.1: Document them.
6509
6510         * size.c (usage): Tweak usage message.
6511         * size.1: Add missing `=' in examples.
6512
6513         * binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c:
6514         Use "--target=bfdname" as the option to select the BFD target,
6515         like nm and size already do.
6516         Reserve "--format=format" for textual output selection options, but
6517         for now keep old option names as obsolete for backward compatibility.
6518
6519         * strings.c (main, strings_object_file, usage): Add --target option.
6520         * binutils.texi strings.1: Document it.
6521
6522 Sat Jan  1 13:58:24 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
6523
6524         * ar.c (main): Add \n in error message.
6525
6526 Thu Dec 23 12:23:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6527
6528         gcc -Wall lint:
6529         * ar.c (main): Put parens around assignment used as truth value.
6530         * objcopy.c (strip_main): Remove unused variables.  Return 0.
6531         (copy_main): Remove unused variables.  Return 0.
6532         * objdump.c (display_bfd): Declare return value as void.
6533         (stab_print): Use "" instead of 0 to initialize array.
6534         (dump_stabs_1): Print vma using printf_vma.
6535         (display_info): Put parens around assignment used as truth value.
6536         * strings.c (print_strings): Cast printf arguments.
6537
6538         * objcopy.c (copy_main): Use copy_options, not strip_options.
6539
6540         * nlmheader.y (command): Warn about illegal date values.
6541
6542 Wed Dec 15 11:18:03 1993  David J. MacKenzie  (djm@frosty.eng.umd.edu)
6543
6544         * bucomm.c bucomm.h: Run through indent.  De-ansidecl-ify.
6545         (bfd_nonfatal): New function.
6546         (bfd_fatal): Call it.
6547
6548         * objcopy.c (smart_rename): Do a copy if the dest file has
6549         multiple hard links.  Remove source file on successful copy.
6550         Try to preserve mode and owner on successful rename.
6551
6552         * objcopy.c: Run through indent.  Clean up a bit.
6553         Make global variables static.
6554         Make {input,output}_{target,filename}, show_version local
6555         to various functions.
6556         New global variable `status' for exit status.
6557         (strip_main, copy_main): New functions with code from main.
6558         (nonfatal): New macro.  Use it globally instead of bfd_perror and
6559         bfd_fatal.
6560
6561         (copy_object): Call mangle_sections with bfd_map_over_sections.
6562         (mangle_sections): Adjust for new calling convention.
6563
6564 Fri Dec 10 11:28:11 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
6565
6566         * nlmheader.y (command): Accept MAP and FULLMAP without arguments.
6567         * nlmconv.c (main): Change error message for MAP and FULLMAP.
6568
6569 Thu Dec  9 17:47:19 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
6570
6571         * nlmconv.c (main): Warn about imported symbols that are not in
6572         the IMPORT list even if the IMPORT keyword is not used.
6573
6574         * nlmconv.c (debug, unlink_on_exit): New static variables.
6575         (long_options): Add "debug" and "linker".
6576         (main): Handle -d and -l arguments.  Make command line input and
6577         output files optional.  Parse the command file before opening the
6578         BFD's, which requires storing more information in local variables.
6579         If INPUT names multiple files, link them together.  Use OUTPUT for
6580         the output file name if not named on command line.
6581         (show_usage): Changed for new options.
6582         (link_inputs): New function to automatically invoke linker to
6583         handle multiple INPUT files.
6584         (choose_temp_base_try, choose_temp_base, pexecute): New functions,
6585         mostly copied from gcc/gcc.c.
6586         * nlmconv.h (input_files, output_file): Declare.
6587         * nlmheader.y (input_files, output_file): Define.
6588         (command): Support INPUT with a string_list argument.  Support
6589         OUTPUT.
6590         (string_list): Renamed from module_list.
6591         * Makefile.in (nlmconv.o): Define LD_NAME based on
6592         program_transform_name.
6593
6594 Wed Dec  8 10:09:04 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
6595
6596         * nlmheader.y (nlmheader_identify): New function.  Use it to print
6597         the program name just once, instead of with every error message.
6598
6599 Mon Dec  6 16:11:32 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6600
6601         * nlmconv.c (long_options): Changed --header-info to --header-file
6602         to match documentation and usage message.
6603
6604 Sun Dec  5 01:31:01 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
6605
6606         * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
6607         in a relocation.
6608
6609 Thu Dec  2 16:00:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6610
6611         * nlmconv.c (main): Change various types from bfd_size_type to
6612         size_t, since they have to be arguments to fread and fwrite.
6613         Change set from char * to unsigned char *.
6614         (select_output_format): Make mach argument unsigned.  Handle
6615         bfd_arch_alpha.
6616         (setup_sections): Don't copy the .reginfo section of an ECOFF
6617         file.  Call bfd_set_reloc to initialize the relocation fields.
6618         (copy_sections): Don't copy the .reginfo section of an ECOFF file.
6619         Combine all relocs for a section.
6620         (mangle_relocs): Change type of relocs to permit specific
6621         functions to change it.  Call alpha_mangle_relocs for alpha,
6622         default_mangle_relocs for other architectures.
6623         (default_mangle_relocs): New function.  Adjust the address of all
6624         relocs by the output_offset.
6625         (i386_mangle_relocs): Change type of relocs argument.  Cast length
6626         argument to memmove to size_t.
6627         (alpha_mangle_relocs): New function.
6628
6629 Wed Nov 17 17:38:58 1993  Sean Eric Fagan  (sef@cygnus.com)
6630
6631         * nlmconv.c (select_output_format): Use nlm32-sparc for
6632         bfd_arch_sparc.
6633
6634 Wed Nov 17 14:41:35 1993  Jeffrey Osier  (jeffrey@thepub.cygnus.com)
6635
6636         * nlmconv.1:   added man page
6637         * objcopy.1:   fixed format errors
6638
6639 Wed Nov 17 12:03:41 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6640
6641         * Makefile.in: Use CFLAGS as well as LDFLAGS when linking.
6642
6643 Wed Nov 17 04:50:55 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6644
6645         * strings.1: Fix typo.
6646
6647 Mon Nov 15 12:03:20 1993  Ken Raeburn  (raeburn@rtl.cygnus.com)
6648
6649         * Makefile.in (DISTSTUFF): Build "info".
6650         (VERSION): Updated to cygnus-2.3.1; 2.3 has gone out.
6651
6652 Sun Nov 14 00:27:24 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
6653
6654         * objdump.c (dump_stabs): Handle stabs-in-som as implemented
6655         by the new BFD SOM assembler.
6656
6657 Sat Nov 13 07:14:05 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
6658
6659         * ar.1 c++filt.1 nm.1 objcopy.1 objdump.1 ranlib.1 size.1
6660         strings.1 strip.1: Replace \(em in NAME section with \- so
6661         makewhatis can grok it.
6662
6663 Tue Nov  9 15:22:12 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6664
6665         * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
6666         section output_offset.
6667
6668 Fri Nov  5 12:11:52 1993  Jeffrey Osier  (jeffrey@thepub.cygnus.com)
6669
6670         * binutils.texi:  added nlmconv chapter
6671
6672 Wed Nov  3 16:10:50 1993  Jeffrey Wheat  (cassidy@cygnus.com)
6673
6674         * Makefile.in: Change RUNTESTFLAGS to RUNTEST_FLAGS
6675
6676 Wed Nov  3 15:09:23 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
6677
6678         * Makefile.in (distclean): Don't get rid of dvi or info files.
6679
6680 Tue Nov  2 13:29:59 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
6681
6682         * objcopy.c (S_ISLNK): Define as 0 if there's no S_IFLNK.
6683
6684 Fri Oct 29 16:02:34 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6685
6686         * binutils.texi: Move objcopy docs into alphabetical order.
6687
6688         * objdump.c: Use xmalloc instead of malloc.
6689
6690 Fri Oct 29 11:11:14 1993  Stan Shebs  (shebs@rtl.cygnus.com)
6691
6692         * objdump.c (info): Rename to formats_info.
6693         (dump_stabs_1): Better comments and formatting.
6694
6695 Thu Oct 28 19:43:16 1993  Stan Shebs  (shebs@rtl.cygnus.com)
6696
6697         * ar.c (main): Always create the archive when quick appending,
6698         even if no input files have been given.
6699
6700 Wed Oct 27 12:03:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6701
6702         * nlmconv.c (main): Set sharedDebugRecordOffset and
6703         sharedDebugRecordCount fields in extended header.
6704
6705         * nlmconv.c (main): Force moduleName field to upper case.
6706
6707 Mon Oct 25 16:45:42 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6708
6709         * objcopy.c (main): Give a usage message if there are too many
6710         arguments.
6711
6712 Mon Oct 25 10:37:08 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
6713
6714         * Makefile.in (install-info): Rewrite to take advantage of VPATH,
6715         so FSF distributions (with info files in $(srcdir)) install
6716         properly.
6717         (DISTSTUFF): Build nlmheader.c too.
6718
6719 Fri Oct 22 11:43:23 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
6720
6721         * ar.c (program_name): Don't define here.
6722         * objdump.c: Include "bucomm.h".
6723         (xmalloc): Don't declare here.
6724         (program_name): Don't define here.
6725         (program_version): Fixed type in declaration.
6726         * size.c: Include "bucomm.h".
6727         (program_name): Don't declare here.
6728
6729 Fri Oct 22 14:10:41 1993  Mark Eichin  (eichin@cygnus.com)
6730
6731         * objdump.c (fprintf): hide declaration in FPRINTF_ALREADY_DECLARED
6732
6733 Fri Oct  1 12:43:00 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6734
6735         * nlmconv.c (i386_mangle_relocs): Resolve and remove PC relative
6736         relocs against defined symbols in the same section.
6737
6738 Thu Sep 30 16:46:26 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
6739
6740         * Makefile.in (binutils.dvi): use TEXIDIR to find texinfo.tex
6741
6742 Sat Sep 25 18:09:29 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6743
6744         * objcopy.c (simple_copy, smart_rename): New functions.
6745         (main): Use them.
6746
6747 Fri Sep 24 15:38:29 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6748
6749         * Makefile.in (clean, distclean): Recurse into testsuite.
6750
6751 Thu Sep 23 01:05:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6752
6753         * objcopy.c (setup_sections, copy_sections): If stripping, don't
6754         copy SEC_DEBUGGING sections.
6755         * objdump.c (dump_headers): Print SEC_DEBUGGING flag.
6756
6757         * objdump.c (usage): Mention --stabs.
6758
6759         * objcopy.c (copy_object): Copy all applicable file flags.
6760         (copy_file): Don't copy EXEC_P specially here.
6761
6762 Mon Sep 20 19:28:57 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6763
6764         * nlmconv.c (main): Adjust data section size to correspond to bss
6765         alignment adjustment.  Clear BSF_SECTION_SYM if symbol is moved to
6766         a different section.  Use time_t for time variable.
6767         (setup_sections): Only put sections with contents in output NLM.
6768         (i386_mangle_relocs): No symbols are common at this point.  Add
6769         casts to avoid warnings.
6770
6771 Fri Sep 10 11:00:40 1993  Stan Shebs  (shebs@rtl.cygnus.com)
6772
6773         * objdump.c: Made the --stabs option work for stabs-in-coff.
6774         (ELF_STAB_DISPLAY): Removed.
6775         (dump_elf_stabs): Renamed to dump_stabs, changed to run for
6776         any object file format.
6777         (dump_elf_stabs_1): Renamed to dump_stabs_1, added calls to
6778         generic BFD routines for non-ELF case, changed format of message
6779         for no-section-found case.
6780         (display_bfd): Always call dump_stabs if requested.
6781         (dump_data): Call bfd_section_size to get section size.
6782
6783 Fri Sep 10 08:12:23 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6784
6785         * Makefile.in (install): Don't put strings in tooldir/bin.
6786
6787 Mon Sep  6 15:39:04 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6788
6789         * nlmconv.c (total_bss_size): Removed.
6790         (main): Set the bss vma to always follow the data section.  Move
6791         symbols into new sections, and adjust values by output_offset.
6792         (setup_sections): Don't copy all sections, but instead point all
6793         text sections to .text, all data sections to .data, and all bss
6794         sections to .bss.
6795         (copy_sections): Adjust accordingly.
6796
6797 Thu Sep  2 12:34:03 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6798
6799         Only build nlmconv if configured for a NetWare target.
6800         * configure.in: If we have some *-*-netware* target, or are using
6801         all targets, set BUILD_NLMCONV to $(NLMCONV_PROG) in Makefile.
6802         * Makefile.in (PROGS): Use $(BUILD_NLMCONV) rather than
6803         $(NLMCONV_PROG).
6804
6805 Tue Aug 31 14:13:35 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
6806
6807         * objdump.c (ARCH_all): Define ARCH_hppa too.
6808         (dump_headers): Don't test for SEC_BALIGN if it's not defined by
6809         bfd.h.
6810
6811 Tue Aug 31 13:29:12 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6812
6813         * nlmconv.c (main): Force creation of .bss section.  Set up the
6814         sections before looking at the symbols.  Move all common symbols
6815         into .bss section.  Automatically define _edata and _end.  Only
6816         export symbols in the export list, with multiple prefixes if
6817         necessary.  Warn if no version.  Always create extended header.
6818         Set date automatically if not already set.
6819         (setup_sections): Count size of bss sections.
6820         (mangle_relocs, i386_mangle_relocs): Accept section argument, and
6821         take reloc_count as a changeable pointer; changed callers.
6822         (i386_mangle_relocs): Remove PC relative relocs within a section,
6823         as they require no adjustment.
6824         * nlmheader.y: Fixed memory allocation throughout: token STRING is
6825         now allocated on the heap, and freed if not needed.  Null
6826         terminated copyright message.  Accept version with only two
6827         strings.
6828         (symbol_list_opt): New nonterminal, either symbol_list or empty.
6829         (symbol_list): Use left recursion to avoid overflowing parser
6830         stack.
6831         (yylex): Rearranged beginning of line check.  Accept quoted
6832         strings using single quotes.  End generic argument at comment
6833         character or parentheses.
6834         (string_list_append): Fixed.
6835         (string_list_append1): New function.
6836
6837         * bucomm.h: The first argument to xrealloc is PTR, not char *.
6838         * bucomm.c (xrealloc): Use PTR rather than char *.
6839         * Makefile.in (objdump.o): Depend upon config.status to notice
6840         --with-targets changes.
6841         (nlmconv.o): Depend upon bucomm.h.
6842
6843 Tue Aug 17 09:46:01 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6844
6845         * configure.in: Don't pass cpu to config.bfd.
6846
6847 Thu Aug 12 16:43:04 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6848
6849         * Makefile.in ($(NM_PROG)): Depend on demangle.o.
6850         (demangle.o): New target.
6851         (cplus-dem.o): Depend on it, to force compilation order when doing
6852         parallel compiles.
6853
6854         * nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
6855         (struct output_fns print_symbol_info): Ditto.
6856         (long_options, usage, main): Add -C --demangle option.
6857         (print_symname): New function, demangling if requested.
6858         (print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
6859
6860 Wed Aug 11 22:57:23 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6861
6862         * Makefile.in: Put CFLAGS last in compilation rules and omit from
6863         linking rules.  Use ARCHDEFS to compile objdump.c.
6864         Update dependencies.
6865         * configure.in: Construct ARCHDEFS based on the BFD target makefile
6866         fragments.
6867         * objdump.c: Conditionalize calls to the print_insn_ARCH functions
6868         according to ARCHDEFS.
6869
6870 Thu Aug 12 08:06:15 1993  Ian Lance Taylor  (ian@cygnus.com)
6871
6872         * ar.c: Removed obsolete and non-functional GNU960 code.
6873
6874 Wed Aug 11 13:08:26 1993  Ian Lance Taylor  (ian@cygnus.com)
6875
6876         * size.c (berkeley_sum): New function.
6877         (bsssize, datasize, textsize): New global variables.
6878         (bss_section_name, data_section_name, text_section_name): Removed.
6879         (print_berkeley_format): Map berkeley_sum over all the sections,
6880         rather than only reporting sizes of specifically named sections.
6881         * Makefile.in ($(OBJDUMP_PROG)): Removed dependency on size.o.
6882
6883 Tue Aug 10 10:46:01 1993  Ian Lance Taylor  (ian@cygnus.com)
6884
6885         * nlmconv.c, nlmconv.h, nlmheader.y: New files for program to
6886         convert object files into NetWare Loadable Modules.
6887         * Makefile.in (NLMCONV_PROG): New macro, define to be nlmconv.
6888         (PROGS): Add NLMCONV_PROG.
6889         (nlmheader.c, nlmheader.o, nlmconv.o, $(NLMCONV_PROG)): New
6890         targets.
6891
6892 Thu Aug  5 15:48:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
6893
6894         * Makefile.in: define MAKEOVERRIDES to an empty string
6895
6896 Wed Aug  4 17:08:08 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6897
6898         * objcopy.c (copy_file): Make failures to process a file nonfatal.
6899
6900 Mon Aug  2 11:28:23 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6901
6902         * nm.c: Add -B option, like --format=bsd.
6903
6904 Tue Jul 27 16:29:54 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6905
6906         * objcopy.c (copy_file): If the file is neither an object nor an
6907         archive, give an error rather than returning success.
6908
6909 Mon Jul 19 16:13:40 1993  Ken Raeburn  (raeburn@rtl.cygnus.com)
6910
6911         * objdump.c (objdump_print_address): Prefer non-local symbols over
6912         local ones, and especially discriminate against debugging symbols.
6913         Also, for relocateable files, try to find a symbol in the current
6914         section, instead of picking one from some random section with a
6915         convenient value (read, section offset).
6916         (disassemble_data): Cast argument to malloc to size_t first.
6917         (dump_data): Likewise.
6918         (dump_relocs): If a single section name is specified, show relocs
6919         only for that section.  Otherwise, silently omit sections without
6920         relocs.  Format table nicely even if values are printed using 16
6921         digits instead of 8.
6922
6923 Fri Jul 16 15:19:59 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6924
6925         * nm.c: Changes for final version of POSIX.2.
6926         (print_symbol_filename_{bsd,sysv,posix}): New functions.
6927         (formats): Add an element for a pointer to them.
6928         (print_symbols): Call it.
6929         (print_object_filename_posix, print_archive_member_posix): Produce
6930         output according to new POSIX.2 spec.
6931
6932         * strings.c (print_strings): Handle STREAM being NULL.
6933         (strings_a_section): Pass a NULL.
6934         (main): Don't open /dev/null.
6935
6936 Thu Jul 15 12:44:09 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6937
6938         * objdump.c (disassemble_data): Handle the m88k.
6939         (display_bfd): Use bfd_errmsg, rather than just claiming that the
6940         bfd is not an object file.
6941
6942 Mon Jul 12 17:55:34 1993  K. Richard Pixley  (rich@cygnus.com)
6943
6944         * Makefile.in (TAGS): make work again by naming directories
6945           explicitly rather than depending on undefined macros.
6946           (INSTALL_XFORM): correct bad install target.
6947
6948 Fri Jul  2 16:58:34 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6949
6950         * strings.c: Doc fixes.
6951
6952 Sun Jun 27 13:35:24 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6953
6954         * Makefile.in: Note dependencies on bucomm.h.
6955         (cplus-dem.o): Link c++filt with version.o.
6956
6957         * strings.c: Include bucomm.h and add prototypes to other decls.
6958         Remove -h option.
6959
6960         * bucomm.h: Declare xrealloc.
6961
6962         * nm.c, objcopy.c, objdump.c, size.c, strings.c (main, usage): Add
6963         --help option.  Put "GNU" in the version message.
6964         (usage): Take stream and exit status as args.
6965         (main): Pass new args to usage.
6966
6967 Fri Jun 25 23:12:12 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6968
6969         * strings.c, strings.1: New files.
6970         * binutils.texi: Document strings.
6971         * Makefile.in: Add rules for it.
6972
6973 Fri Jun 25 20:44:43 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
6974
6975         * objdump.c: Use size-independent bfd elf section names.
6976
6977 Sun Jun 20 23:09:06 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
6978
6979         * objdump.c (objdump_print_address): Handle wide offsets by
6980         calling sprintf_vma.
6981
6982 Fri Jun 18 14:29:12 1993  Per Bothner  (bothner@deneb.cygnus.com)
6983
6984         * objdump.c (syms2):  Removed unused variable.
6985         * objdump.c (remove_useless_symbols):  New function.
6986         * objdump.c (comp):  Simplify.
6987         * objdump.c (dis-assemble_data):  Make simpler and more
6988         efficient how we filter out useless symbols:  Just filter
6989         BEFORE the sort (using remove_useless_symbols).
6990         * objdump.c (objdump_print_address):  Simplify.
6991         Change output syntax to match gdb.
6992
6993 Thu Jun 17 16:53:56 1993  david d `zoo' zuhn (zoo@cygnus.com)
6994
6995         * Makefile.in: canonicalize install.sh; for use within
6996         this directory (and subdirs)
6997
6998 Mon Jun 14 12:13:22 1993  david d `zoo' zuhn  (zoo at rtl.cygnus.com)
6999
7000         * Makefile.in (install, install-info): remove parentdir support,
7001         use INSTALL_XFORM; define INSTALL_XFORM
7002
7003 Thu Jun 10 17:29:21 1993  Per Bothner  (bothner@cygnus.com)
7004
7005         * objcopy.c (copy_object):  Fix bad size passed to xmalloc().
7006
7007 Mon Jun  7 12:41:12 1993  Per Bothner  (bothner@rtl.cygnus.com)
7008
7009         * Makefile.in (INCLUDES):  Add -I../bfd for sysdep.h and bfd.h.
7010         * configure.in:  No longer need to configure to get sysdep.h.
7011         * objcopy.c (copy_object):  Fix symbol table handling.
7012
7013 Fri Jun  4 17:20:03 1993  Per Bothner  (bothner@cygnus.com)
7014
7015         * objcopy.c (filter_symbols):  Cannot filter the symbols
7016         in place, because that confuses the relocs, so take separate
7017         parameter for output array.
7018         * objcopy.c (sympp):  Make two variables: isympp and osympp.
7019         * objcopy.c (copy_object):  Allocate separate array (osympp)
7020         for filtered symbols.
7021
7022 Fri Jun  4 10:51:44 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
7023
7024         * Makefile.in: change recursion test to presence of a configured
7025         testsuite directory
7026
7027 Thu Jun  3 14:05:57 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
7028
7029         * Makefile.in (underscore.c): Hack the backquoted command so it
7030         doesn't cause Solaris make to bomb.
7031
7032 Thu Jun  3 10:40:19 1993  Jeffrey Osier  (jeffrey@cygnus.com)
7033
7034         * Makefile.in:  added c++filt and objcopy to MANPAGES variable
7035
7036 Thu Jun  3 00:32:52 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
7037
7038         * Makefile.in: rename LOADLIBES to EXTRALIBS
7039
7040 Wed Jun  2 18:30:24 1993  Jeffrey Osier  (jeffrey@cygnus.com)
7041
7042         * c++filt.1, objcopy.1:  new man pages
7043
7044 Fri May 28 15:01:24 1993  Per Bothner  (bothner@rtl.cygnus.com)
7045
7046         * Makefile.in (install):  Also install ar and ranlib in
7047         $(tooldir)/bin;  needed for building libgcc.a.
7048         * objdump.c (objdump_print_address):  Fix the check
7049         "coincidental" label matches by dis-allowing undefined
7050         or com symbols.
7051
7052 Thu May 27 16:58:31 1993  Jeffrey Osier  (jeffrey@cygnus.com)
7053
7054         * biutils.texi:  revised c++filt chapter
7055
7056 Wed May 26 17:24:17 1993  Ian Lance Taylor  (ian@cygnus.com)
7057
7058         * Makefile.in (FLAGS_TO_PASS): Pass down CC and CFLAGS.
7059
7060 Tue May 25 00:26:47 1993  Ken Raeburn  (raeburn@cygnus.com)
7061
7062         * objdump.c (slurp_symtab): Print warning for bad symbol table.
7063         (bfd_elf32_find_section, Elf32_Internal_Shdr): Updated
7064         declarations and uses.
7065
7066         * Makefile.in (DISTSTUFF): Don't build binutils.mm.
7067
7068 Fri May 21 10:51:19 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
7069
7070         * nm.c: Add -f/--format, -P/--portability, -t/--radix options.
7071         Make global variables static.
7072         (main): Make -v like -n, not -V, and make -A like -o, for POSIX.2.
7073         (set_print_radix, set_output_format,
7074         print_{object_filename,archive_filename,archive_member,symbol_info}
7075         {bsd,sysv,posix}): New functions.
7076         (display_file, print_symbols): Call them.
7077
7078         * ar.c: Improve error messages.
7079
7080         * nm.c (main): Handle long options that just set a flag.
7081
7082         * nm.c (main), ar.c (do_show_version), objcopy.c (main), size.c
7083         (main): Exit after printing the version number, per the GNU coding
7084         standards.
7085
7086 Mon May 17 13:20:25 1993  Per Bothner  (bothner@cygnus.com)
7087
7088         * README, Makefile.in:  Minor updates for 2.2.
7089
7090 Fri May 14 11:12:26 1993  Per Bothner  (bothner@cygnus.com)
7091
7092         * Makefile.in (underscore.c):  Automatically generate
7093         (using nm) a file with the variable prepends_underscore.
7094         * Makefile.in (c++filt):  Link underscore.o with cplus-dem.o
7095         so that initial underscores get removed iff appropriate.
7096         * binutils.texi:  Preliminary documentation for c++filt.
7097         * Makefile.in, binutils.texi:  Set to version 2.2.
7098
7099         * NEWS:  Mention copy->objcopy renaming and new c++filt program.
7100
7101 Wed May 12 12:05:36 1993  Ian Lance Taylor  (ian@cygnus.com)
7102
7103         * Makefile.in (cplus-dem.o, $(DEMANGLER_PROG)): Build the
7104         demangler via cplus-dem.o, rather than directly from the .c file.
7105
7106         * objcopy.c: Renamed from copy.c, updated comments accordingly.
7107         * Makefile.in, binutils.texi: Renamed copy to objcopy.
7108         * is-strip.c, maybe-strip.c, not-strip.c: Updated comments for
7109         rename of copy to objcopy.
7110
7111 Mon May 10 17:20:18 1993  Per Bothner  (bothner@cygnus.com)
7112
7113         * binutils.texi (strip, -v option):  Fix typo.
7114
7115 Fri May  7 13:57:50 1993  Ian Lance Taylor  (ian@cygnus.com)
7116
7117         * Makefile.in (RUNTEST): Define.
7118         (FLAGS_TO_PASS): Pass down RUNTEST.
7119
7120 Tue May  4 10:06:50 1993  Ian Lance Taylor  (ian@cygnus.com)
7121
7122         * Makefile.in (DEMANGLER_PROG): Name it c++filt.
7123         (PROG): Also build and install COPY_PROG.
7124
7125 Mon May  3 19:11:48 1993  Per Bothner  (bothner@cygnus.com)
7126
7127         * Makefile.in:  Change definition of $(tooldir) to match FSF.
7128
7129 Wed Apr 28 23:41:32 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
7130
7131         * size.c (usage): Add missing options.
7132         (main): Clean up option parser.
7133
7134         * objdump.c (usage): Add missing options.
7135         (display_file): Print program name before calling
7136         bdf_perror.
7137
7138         * nm.c (usage): Add missing options.
7139         (main): Clean up option parser.
7140         (display_file): Print program name before calling
7141         bdf_perror.
7142
7143         * copy.c (copy_usage, strip_usage): Add missing options.
7144
7145         * ar.c (usage): New function.
7146         (main): Call it.
7147         (open_inarch, do_quick_append): Print program name before calling
7148         bdf_perror.
7149
7150 Thu Apr 22 15:01:35 1993  Ian Lance Taylor  (ian@cygnus.com)
7151
7152         * nm.c (main): Accept and ignore -A and -B for MIPS compatibility.
7153
7154 Mon Apr 19 14:06:59 1993  Rob Savoye  (rob@cygnus.com)
7155
7156         * Makefile.in: Added FLAGS_TO_PASS so tests get run on freshly
7157         built binaries if they exist. (otherwise the path)
7158
7159 Wed Apr  7 22:22:50 1993  Rob Savoye  (rob@cygnus.com)
7160
7161         * Makefile.in: Changed check target to use DejaGnu.
7162
7163 Thu Apr  1 12:37:13 1993  Jim Kingdon  (kingdon@cygnus.com)
7164
7165         * Makefile.in: Remove am29k-pinsn.c, i960-pinsn.c.
7166         objdump.c: a29k and i960 are `disassemble' not `print'.
7167
7168         * objdump.c: Rename print_address to objdump_print_address
7169         and change parameters.
7170         (disassemble_data): Use objdump_print_address.
7171
7172 Wed Mar 31 10:25:29 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
7173
7174         * objdump.c (disassemble_data): print_insn_sparc is now a
7175         `disassemble' not a `print'.
7176         Makefile.in: Remove sparc-pinsn.c (now in libopcodes.a).
7177
7178         * objdump.c (disassemble_data): Use new read_memory_func stuff.
7179
7180 Thu Mar 25 10:38:11 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
7181
7182         * objdump.c (fprintf): Declaration of variadic function had better
7183         be a prototype for ANSI C systems.
7184
7185 Mon Mar 22 23:19:46 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
7186
7187         * Makefile.in: rename test-install to install-check
7188
7189 Fri Mar 19 14:40:08 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
7190
7191         * objdump.c (disassemble_data): Add H8500.
7192
7193 Fri Mar 19 10:56:51 1993  Jim Kingdon  (kingdon@cygnus.com)
7194
7195         * objdump.c (usage): Mention long options.
7196
7197 Thu Mar 18 14:22:17 1993  Per Bothner  (bothner@rtl.cygnus.com)
7198
7199         * nm.c:  Modify behavior of -o flag for archives to match
7200         BSD4.4 and Sunos 4:  Prefix archive name before each line.
7201
7202         * m68k-pinsn.c:  Removed.  Subsumed by ../opcodes/m68k-dis.c.
7203         * i386-pinsn.c:  Removed.  Subsumed by ../opcodes/i386-dis.c.
7204         * Makefile.in:  Adjust accordingly.
7205         * objdump.c:  Support new-style disassemblers (ones that use
7206         the interface of ../include/dis-asm.h).
7207
7208 Thu Feb 25 15:57:00 1993  Per Bothner  (bothner@rtl.cygnus.com)
7209
7210         * Makefile.in:  When making tar file, remove texinfo/*,
7211         except for texinfo/texinfo.tex.
7212         * ardup.c:  Add extern declaration of strdup.
7213         * Makefile.in (testsuite):  Add 'else true' since otherwise
7214         Ultrix /bin/sh complains.
7215
7216 Wed Feb 24 19:44:18 1993  Per Bothner  (bothner@rtl.cygnus.com)
7217
7218         * Makefile.in:  Set VERSION to 2.1.
7219         * README, NEWS: Updates.
7220         * nm.c:  Add -v as a synonym for -V.
7221
7222 Tue Feb 23 19:00:50 1993  Mike Werner  (mtw@poseidon.cygnus.com)
7223
7224         * configure.in: added testsuite to configdirs.
7225         * Makefile.in: added support for building testsuite.
7226
7227 Mon Feb 22 22:52:10 1993  Per Bothner  (bothner@rtl.cygnus.com)
7228
7229         * objdump.c (disassemble_data):  Print function names when
7230         given by bfd_find_nearest_line.  If not - still print
7231         line numbers.
7232
7233 Mon Feb 22 07:54:03 1993  Mike Werner  (mtw@poseidon.cygnus.com)
7234
7235         * binutils/testsuite: made modifications to testcases, etc., to allow
7236         them to work properly  given the reorganization of deja-gnu and the
7237         relocation of the testcases from deja-gnu to a "tool" subdirectory.
7238
7239 Mon Feb 22 10:27:24 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
7240
7241         * objdump.c (dump_data): Free up section contents each time
7242         through the loop.  Reported by minyard@bnr.ca.
7243
7244 Sun Feb 21 10:55:55 1993  Mike Werner  (mtw@poseidon.cygnus.com)
7245
7246         * binutils/testsuite: Initial creation of binutils/testsuite.
7247         Migrated dejagnu testcases and support files for testing nm to
7248         binutils/testsuite from deja-gnu.  These files were moved "as is"
7249         with no modifications.  This migration is part of a major overhaul
7250         of dejagnu.  The modifications to these testcases, etc., which
7251         will allow them to work with the new version of dejagnu will be
7252         made in a future update.
7253
7254 Fri Feb 12 10:05:20 1993  Fred Fish  (fnf@cygnus.com)
7255
7256         * Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
7257         * Makefile.in (LIBIBERTY):  Use LIBIBERTY_BIN_DIR.
7258         * Makefile.in (DEMANGLER_PROG):  New program to build.  Add macro
7259         and rule.
7260         * Makefile.in (PROGS):  Add DEMANGLER_PROG.
7261
7262 Tue Jan 26 11:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
7263
7264         * copy.c, nm.c, objdump.c, size.c: Use new bfd_is_com_section
7265         macro rather than checking for equality to bfd_com_section.
7266
7267 Fri Jan  8 15:50:05 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
7268
7269         * objdump.c (disassemble_data): Fix code to find first useless
7270         symbol.
7271
7272 Thu Jan  7 13:13:31 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
7273
7274         * objdump.c (disassemble_data): Use mips_print_insn for MIPS.
7275         Don't core dump if bfd_find_nearest_line returns false.
7276
7277 Wed Jan  6 17:14:01 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
7278
7279         * objdump.c (disassemble_data): know how to disassemble z8000s
7280         too.
7281
7282 Wed Jan  6 15:16:27 1993  Per Bothner  (bothner@cygnus.com)
7283
7284         * arsup.h (interactive), bucomm.h (program_name):  Prefix
7285         with 'extern', to avoid warnings from some compilers.
7286
7287 Wed Jan  6 15:14:11 1993  Per Bothner  (bothner@rtl.cygnus.com)
7288
7289         * arparse.y: fix unnecessary shift/reduce
7290
7291 Tue Dec 22 15:46:56 1992  Per Bothner  (bothner@rtl.cygnus.com)
7292
7293         * Makefile.in:  Make check depend on all.
7294         * Makefile.in (distclean): Remove sysdep.h.
7295         * size.c:  Use %u format where appropriate.
7296         * objdump.c:  Standardize:  L_SET -> SEEK_SET.
7297         * objdump.c:  Use new macro bfd_asymbol_bfd.
7298         * configure.in:  Allow std-host as the default ${mys_host}.
7299
7300 Thu Dec 17 19:38:19 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
7301
7302         * Makefile.in: added dvi target, define and use TEXI2DVI
7303
7304 Tue Dec 15 18:05:07 1992  Per Bothner  (bothner@cygnus.com)
7305
7306         * Makefile.in (dist):  Fix permissions before release.
7307         * size.c:  Use bfd_size_type (and long) where appropriate.
7308         * ar.c:  Make writing a map the default, to be compatible
7309         with SYSV and Posix.2.  Remove some bogus kludges that
7310         handled __.SYMDEF directly.
7311         * NEWS:  New file.
7312
7313 Mon Nov  9 13:36:53 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
7314
7315         * Makefile.in: flex no longer needs the -S flag
7316
7317 Sat Nov  7 15:06:13 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
7318
7319         * ar.c (extract_file): utime needs a pointer to a utimbuf
7320
7321         * Makefile.in: handle -I includes better, adding $(BASEDIR)/bfd to
7322         the list (since some of the bfd/hosts/*.h files include other
7323         files from that directory)
7324
7325 Fri Nov  6 00:12:51 1992  John Gilmore  (gnu@cygnus.com)
7326
7327         * i960-pinsn.c (MEM_MAX, MEM_SIZ):  Set upper bound properly.
7328
7329 Thu Nov  5 03:37:15 1992  John Gilmore  (gnu@cygnus.com)
7330
7331         Clean up some old BFD ansification macros.
7332
7333         * arsup.h, bucomm.h, objdump.h:  Remove EXFUN from binutils.
7334         It still remains as a local macro in gmalloc.c, which is derived
7335         from some other copy of GNU Malloc somewhere (FIXME).
7336
7337         * ar.c, objdump.c, size.c:  Replace EXFUN with PROTO.  Make static
7338         fns really static.
7339         * arsup.h:  Declare extract_files.
7340
7341 Mon Nov  2 12:42:11 1992  Ian Lance Taylor  (ian@cygnus.com)
7342
7343         * ar.c (extract_file): instead of checking USG: if POSIX_UTIME,
7344         use utime and utimbuf structure, otherwise if USE_UTIME use utime
7345         and array of two longs, otherwise use utimes.
7346
7347 Thu Oct 15 13:57:35 1992  Per Bothner  (bothner@cygnus.com)
7348
7349         * binutils.tex:  Document yesterday's changes to strip and copy.
7350
7351 Wed Oct 14 13:22:14 1992  Per Bothner  (bothner@cygnus.com)
7352
7353         * copy.c:  Re-do command-line parsing to use getopt_long().
7354         Add long option names.  Re-think option letters to be more
7355         consistent.
7356         * copy.c:  New function filter_symbols() for stripping only
7357         debug-symbols and/or local symbols.  Use these to support
7358         the previously-missing options of the old FSF strip.
7359
7360 Tue Oct 13 01:24:20 1992  John Gilmore  (gnu@cygnus.com)
7361
7362         * configure.in (host):  Use ${srcdir}/../bfd/configure.host rather
7363         than repeating a copy of it here.
7364
7365 Wed Oct  7 12:53:52 1992  Ken Raeburn  (raeburn@cygnus.com)
7366
7367         * copy.c (main): Even if is_strip, accept -d argument indicating
7368         alternate output format.  Needed by gdb for Nindy.
7369
7370         * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
7371
7372 Tue Oct  6 16:33:56 1992  Jeffrey Osier  (jeffrey@cygnus.com)
7373
7374         * binutils.texi:  added documentation for "copy"
7375
7376 Tue Oct  6 14:22:56 1992  Per Bothner  (bothner at PersSony)
7377
7378         * Makefile.in (*clean rules): Some cleaning up.
7379         * Makefile.in (dist): Make diststuff in gprof for a dist.
7380
7381         * ar.c (do_show_version):  New function.
7382         * ar.c (main):  Fix so "ar -V" works.
7383
7384 Thu Oct  1 22:44:45 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
7385
7386         * configure.in: now uses the cpu-vendor-os triple instead of
7387         nested cases.
7388
7389 Fri Sep 25 22:41:08 1992  John Gilmore  (gnu@cygnus.com)
7390
7391         * i960-pinsn.c:  Change bzero to memset.
7392         * sparc-pinsn.c:  Change index to strchr.
7393
7394 Mon Sep 21 14:39:56 1992  Ian Lance Taylor  (ian@cygnus.com)
7395
7396         * m68k-pinsn (print_insn_arg, fetch_arg): added support for
7397         operands to memory management instructions, from WRS.
7398
7399 Tue Sep 15 15:26:38 1992  Ian Lance Taylor  (ian@cygnus.com)
7400
7401         * Makefile.in (install): if $(tooldir) exists, install nm and
7402         strip in $(tooldir)/bin.
7403
7404 Thu Sep  3 11:57:40 1992  Per Bothner  (bothner@rtl.cygnus.com)
7405
7406         * Makefile.in:  Let's call it version 2.0.
7407
7408 Wed Sep  2 00:25:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
7409
7410         * Makefile.in:  Bump to version 0.98.
7411         * TODO, README:  Minor updates.
7412
7413         * Makefile.in:  Added mostlyclean, distclean rules,
7414         and cleaned up clean, realclean.
7415
7416 Sun Aug 30 21:18:59 1992  Ian Lance Taylor  (ian@cygnus.com)
7417
7418         * Makefile.in: map program names through program_transform_name
7419         when installing.
7420
7421 Sun Aug 30 18:09:03 1992  Per Bothner  (bothner@rtl.cygnus.com)
7422
7423         * Makefile.in:  Bump to versions 1.97.90.
7424         * cplus-dem.c:  Removed.  Was nowhere used - and if some
7425         programs are changed to to demangling should now use the
7426         versions in libiberty.
7427
7428 Thu Aug 27 12:58:09 1992  Brendan Kehoe  (brendan@cygnus.com)
7429
7430         * configure.in: add we32k
7431
7432 Mon Aug 24 14:53:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
7433
7434         * ar.c (map_over_members): if the element of the archive has a
7435         null name, fill it in.
7436
7437         * nm.c (do_one_rel_file): only warn if a bfd's flags say there
7438         will be symbols and there aren't any.
7439
7440 Wed Aug 19 11:20:25 1992  Ian Lance Taylor  (ian@cygnus.com)
7441
7442         * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
7443
7444 Tue Aug 18 20:45:48 1992  Rob Savoye  (rob@cygnus.com)
7445
7446         * nm.c objdump.c: Added support for a +version (-V)
7447         to print the version number.
7448
7449         * ar.c, copy.c: Added support for a -V option to print
7450         the version number.
7451
7452 Tue Aug 18 13:28:44 1992  Ian Lance Taylor  (ian@cygnus.com)
7453
7454         * config/mh-apollo68v: removed -g from CC definition.
7455
7456         * Makefile.in: always create installation directories.
7457
7458 Mon Aug 17 18:33:41 1992  Per Bothner  (bothner@rtl.cygnus.com)
7459
7460         * m68k-pinsn.c:  Minor fix in style of output (don't use
7461         range to indicate floating point control registers).
7462
7463 Tue Aug 11 23:42:21 1992  Per Bothner  (bothner@cygnus.com)
7464
7465         * ar.c (main):  Don't *always* set the verbose flag!
7466
7467 Wed Aug  5 11:25:27 1992  Per Bothner  (bothner@rtl.cygnus.com)
7468
7469         * copy.c:  When is_strip (because it is invoked as the strip
7470         program), follow traditional argv processing:
7471         'strip file1 file2' now strips file1 and file2, rather
7472         than stripping file1 (as input), leaving output in file2.
7473
7474 Mon Jul 27 16:28:08 1992  Per Bothner  (bothner@rtl.cygnus.com)
7475
7476         * objdump.c (display_info, display_info_table):  Call
7477         bfd_set_format() on dummy bfd before using it (twice).
7478         * ar.c:  Make sure archive is created on command 'r'
7479         even when no elements are inserted.  (Clean up and
7480         simplify some non-working related code.)
7481
7482 Mon Jul 20 02:48:38 1992  D. V. Henkel-Wallace  (gumby@cygnus.com)
7483
7484         * configure.in: hppa support doesn't assume hp OS (from sef).
7485
7486 Sat Jul 18 14:35:22 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
7487
7488         * configure.in: recognize hppa hosts (bsd & hpux), error messages
7489         to stderr, not stdout
7490
7491 Fri Jul 17 18:39:44 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
7492
7493         * ar.1, binutils.texi, i960-pinsn.c, nm.1, objdump.1, ranlib.1,
7494           size.1, sparc-pinsn.c, strip.1: removed rcsid's.
7495
7496 Thu Jul 16 16:55:24 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
7497
7498         * Makefile.dos: removed rcsid.
7499
7500 Thu Jul 16 08:23:07 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
7501
7502         * objdump.c (display_bfd): print state of BFD_IS_RELAXABLE too
7503
7504 Tue Jun 30 20:26:15 1992  D. V. Henkel-Wallace  (gumby@cygnus.com)
7505
7506         * Makefile.in: Add program_suffix (parallel to program_prefix)
7507
7508 Thu Jun 25 04:52:45 1992  John Gilmore  (gnu at cygnus.com)
7509
7510         * nm.c (sorters):  Lint.  Remove excess whitespace.
7511
7512 Wed Jun 24 13:48:07 1992  Per Bothner  (bothner@cygnus.com)
7513
7514         * nm.c (valueof macro):  Add missing parentheses.
7515         (Their lack screwed up numeric_forward().)
7516
7517 Sun Jun 14 10:33:27 1992  John Gilmore  (gnu at cygnus.com)
7518
7519         * objdump.c (dump_elf_stabs):  Also dump .stab.index and
7520         .stab.excl sections.
7521         (dump_elf_stabs_1):  Split out main body of old dump_elf_stabs.
7522         * objdump.1, binutils.texi:  Document new sections dumped.
7523
7524 Fri Jun 12 22:23:35 1992  John Gilmore  (gnu at cygnus.com)
7525
7526         * size.c, objdump.c, bucomm.c:  Lint.
7527
7528 Thu Jun 11 01:19:06 1992  John Gilmore  (gnu at cygnus.com)
7529
7530         * objdump.c (dump_elf_stabs): New feature: --stabs prints out a
7531         .stab section from an ELF file.  Installed under #ifdef
7532         ELF_STAB_DISPLAY so it can be easily disabled, since it requires
7533         bfd-internals header files and such.
7534         * objdump.1, binutils.texi:  Update for --stabs.  Also fix
7535         objdump's doc to use -- rather than + for long options.
7536         (FIXME:  Not yet fixed everywhere in binutils.texinfo.)
7537
7538 Wed Jun 10 07:53:24 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
7539
7540         * objdump.c(display_info), patches from
7541         mohring@informatik.tu-muenchen.de to print the table much more
7542         nicely.
7543
7544 Thu May 28 13:36:16 1992  Per Bothner  (bothner@rtl.cygnus.com)
7545
7546         * objdump.c:  Add another enum->int cast, for the sake of
7547         old compilers (such as PCC).
7548
7549 Wed May 27 13:01:44 1992  Per Bothner  (bothner@rtl.cygnus.com)
7550
7551         * arlex.l:  Don't include <sysdep.h> (unneeded conflicts).
7552         Add declaration of strdup().
7553
7554 Fri May 22 13:40:37 1992  Per Bothner  (bothner@cygnus.com)
7555
7556         * Makefile.in:  Use srcdir instead of VPATH in ldgram/ldlex
7557         rules, since these are used when building a distribution.
7558         * Makefile.in (arlex.c):  Don't re-direct output, since that
7559         leaves a bogus output files if it fails.
7560
7561         * arlex.l:  Make work with lex, for what it's worth.
7562         * Makefile.in:  Better lex support.
7563         * Makefile.in (dist):  Generate flex and bison outputs
7564         for distribution.
7565
7566 Thu May 14 17:17:59 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
7567
7568         * Makefile.in: get BISON definition right.
7569
7570 Fri May  8 07:47:08 1992  K. Richard Pixley  (rich@cygnus.com)
7571
7572         * sanity.sh: default TMPDIR to ".".
7573
7574 Thu May  7 12:34:50 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
7575
7576         * binutils.texi: add doc for ar command language.
7577
7578 Wed May  6 18:05:36 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
7579
7580         * arparse.y: make END call ar_end
7581         * arsup.c (ar_end): added, deletes temp file if archive session
7582         aborted.
7583
7584
7585 Wed May  6 11:08:53 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
7586
7587         * Makefile.in: use bison & flex from ../ if they exist.  Also,
7588           FLEX->LEX.
7589
7590         * sanity.sh: remove temporary directory when finished.
7591
7592 Tue May  5 12:00:58 1992  Per Bothner  (bothner@rtl.cygnus.com)
7593
7594         * Makefile.in:  Bump to version 1.97.
7595         * ar.c:  Declare errno for machines that need it.
7596
7597 Mon May  4 23:29:51 1992  John Gilmore  (gnu@cygnus.com)
7598
7599         * objdump.c (display_info):  Handle error cases without coredump.
7600         Close the dummy temporary file we open in the loop.
7601         * Makefile.in (arsup.o):  Add kludge to build with Sun Make.
7602
7603 Fri May  1 16:20:23 1992  K. Richard Pixley  (rich@cygnus.com)
7604
7605         * Makefile.in: added test-install target.
7606
7607         * sanity.sh: new file.
7608
7609         * Makefile.in: use sanity test on make check.
7610
7611 Tue Apr 21 13:38:37 1992  K. Richard Pixley  (rich@cygnus.com)
7612
7613         * Makefile.in: rework CFLAGS so that they can be passed on the
7614           command line to make.  Remove MINUS_G.  Default CFLAGS to -g.
7615
7616 Wed Apr 15 14:33:07 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
7617
7618         * arsup.c, arsup.h, arparse.y, arlex.l: support for archive
7619         scripting language.
7620
7621 Fri Mar  6 21:54:53 1992  K. Richard Pixley  (rich@cygnus.com)
7622
7623         * Makefile.in: added check target.
7624
7625 Thu Mar  5 21:35:49 1992  K. Richard Pixley  (rich@cygnus.com)
7626
7627         * Makefile.in: added clean-info target.
7628
7629 Tue Mar  3 15:36:37 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
7630
7631         * Makefile.in: remove $(COPY_PROG) from PROGS.  It shouldn't be
7632           installed. added tooldir and program_prefix.
7633
7634 Wed Feb 26 18:04:40 1992  K. Richard Pixley  (rich@cygnus.com)
7635
7636         * Makefile.in, configure.in: removed traces of namesubdir,
7637           -subdirs, $(subdir), $(unsubdir), some rcs triggers.  Forced
7638           copyrights to '92, changed some from Cygnus to FSF.
7639
7640 Sun Feb 16 12:53:02 1992  Per Bothner  (bothner at cygnus.com)
7641
7642         * Makefile.in:  Bump version to 1.96, and remove -beta
7643         suffix from distribution name.
7644         * m68k-pinsn.c:  New macro COERCE_SIGNED_CHAR to extract
7645         the signed value of a character (even if chars are unsigned).
7646         * sparc-pinsn.c:  Add new operand types.
7647
7648 Thu Feb  6 12:14:19 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
7649
7650         * objdump.c (disassemble_data): don't print a section's contents
7651         if it's not loadable (eg bss)
7652
7653 Tue Jan 28 11:11:06 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
7654
7655         * m68k-pinsn.c (print_insn_arg): fixed so that -ve branch
7656         displacements don't get printed as large +ve ones.
7657
7658 Fri Jan 24 14:47:53 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
7659
7660         * copy.c, nm.c, objdump.c, size.c : changed to use the
7661         new reloc scheme.
7662
7663
7664 Mon Dec 30 18:34:41 1991  Per Bothner  (bothner at cygnus.com)
7665
7666         * bucomm.c (print_arelt_descr):  Tweek the output format
7667         so that 'ar tv' output follows Posix 1003.2/D11.
7668         Output is now also identical to Sun's (except __.SYMDEF).
7669
7670 Mon Dec 30 06:09:53 1991  John Gilmore  (gnu at cygnus.com)
7671
7672         * Makefile.in:  Make `make' output more readable.
7673
7674 Wed Dec 18 15:04:45 1991  Per Bothner  (bothner at cygnus.com)
7675
7676         * Makefile.in:  Bump to version 1.94.
7677
7678 Wed Dec 11 16:48:09 1991  Steve Chamberlain  (sac at cygnus.com)
7679
7680         * ar.c: added "b" to fopens for dos
7681         * configdj.bat, makefile.dos new files from DJ
7682
7683 Tue Dec 10 04:07:26 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
7684
7685         * Makefile.in: infodir belongs in datadir.
7686
7687 Sat Dec  7 17:09:37 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
7688
7689         * bucomm.h: created to hold prototypes of bucomm.c
7690         * objdump.h: created to hold prototyes of objdump.c
7691         * am29k-pinsn.c: include objdump.h
7692         * ar.c: include bucomm.h, get ar.h from the right place and
7693         include libbfd.h
7694         * bucomm.c: defunize bfd_fatal
7695         * copy.c: include bucomm.h, lint.
7696         * i960-pinsn.h: include bucomm.h
7697         * m68k-pinsn.h: lint
7698         * nm.c: include bucomm.h, lint
7699         * objdump.c: lint
7700         * sparc-pinsn.c: include objdump.h
7701
7702
7703
7704 Fri Dec  6 23:02:14 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
7705
7706         * Makefile.in: added standards.text support.  install using
7707           INSTALL_PROGRAM and INSTALL_DATA.
7708
7709         * configure.in: configure now does all of it's work from objdir so
7710           make file existence tests against ${srcdir}.
7711
7712 Thu Dec  5 22:46:22 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
7713
7714         * Makefile.in: idestdir and ddestdir go away.  Added copyrights
7715           and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
7716           and mandir now keyed off datadir by default.
7717
7718 Wed Dec  4 22:42:03 1991  Per Bothner  (bothner at cygnus.com)
7719
7720         * Makefile.in:  Bump to version 1.93.
7721         * Makefile.in:  Add make-strip.o:maybe-strip.c dependency
7722         for make versions that provide half-baked VPATH-support (e.g. Sun's).
7723         * size.c:  Improvements suggested by
7724         "david d [zoo] zuhn" <zoo@aps1.spa.umn.edu>:
7725         - Don't emit (Berkeley) headers if no files were found.
7726         - Return a non-zero return code on failure.
7727
7728 Sat Nov 30 21:34:19 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
7729
7730         Changes due to include file renaming:
7731         * am29k-pinsn.c: a29k-opcode.h  -> opcode/a29k.h
7732         * sparc-pinsn.c: sparc-opcode.h -> opcode/sparc.h
7733         * m68k-pinsn.c:  m68k-opcode.h  -> opcode/m68k.h
7734         * nm.c:          stab.gnu.h     -> aout/stab_gnu.h
7735
7736 Tue Nov 19 19:20:43 1991  Per Bothner  (bothner at cygnus.com)
7737
7738         * README:  Mention MINIMIZE flag for bfd's make.
7739
7740 Mon Nov 18 12:05:37 1991  Per Bothner  (bothner at cygnus.com)
7741
7742         * README:  Various improvements.
7743
7744 Sun Nov 17 23:40:59 1991  Per Bothner  (bothner at cygnus.com)
7745
7746         * Makefile.in:  Bump to version 1.92.
7747         * version.c, Makefile.in:  Get version string from Makefile.
7748         * copy.c, is-strip.c, not-strip.c, maybe-strip.c, Makefile.in:
7749         Make the same change that we earlier did for ar/ranlib:
7750         Generate two different binaries for strip and copy and use
7751         a global variable with different values to distinguish
7752         ostrip from copy.  (-1 means to use argv[0] to decide,
7753         so you can get the old behavior, but it is no longer the default).
7754         * copy.c (copy_file):  Set EXEC_P of output bfd if input is so.
7755         * copy.c (main):  If is_strip==-1, compare last 5 chars
7756         of argv[0], not the whole path.
7757         * copy.c (main): Return 0, not 1.
7758         * copy.c (setup_sections):  Fix due to change in bfd_make_section
7759         now failing if asked for a duplicate section.
7760         * strip.c, ostrip.c:  Removed obsolete files.
7761         * ar.c, not-ranlib.c, maybe-ranlib.c:
7762         Change encoding of is_ranlib variable to be consistent
7763         with is_strip for strip.copy (i.e -1 to means use argv[0]).
7764
7765 Thu Nov 14 20:11:02 1991  Per Bothner  (bothner at cygnus.com)
7766
7767         * version.c (program_version): Update to version 1.92.
7768
7769 Tue Nov 12 16:17:53 1991  Per Bothner  (bothner at cygnus.com)
7770
7771         * ar.c (get_pos_bfd):  Previous fix was missing a "break".
7772
7773 Thu Nov  7 08:55:56 1991  Steve Chamberlain  (sac at cygnus.com)
7774
7775         * am29k-pinsn.c: Fixed bug in mtacc, dmac and fmac instruction
7776         encodings. (Thaks to David Wood)
7777
7778 Sun Nov  3 14:50:23 1991  Per Bothner  (bothner at cygnus.com)
7779
7780         * Makefile.in ($(DIST_NAME).tar.Z), TODO:  Various fixes.
7781         * ar.c (get_pos_bfd): Fix to handling of before/after
7782         positioning options.
7783         * bucomm.c (fatal):  MISSING_VFPRINTF is no longer an issue,
7784         since libiberty contains vfprintf etc if otherwise missing.
7785         * m68k-pinsn.c (print_insn_arg):  Support BB/BW/BL
7786         type operands, as used by branch instructions.
7787         * nm.c:  Delegate printing of symbols to BFD,
7788         by using bfd_print_symbol to do the formatting.
7789
7790 Mon Oct 28 11:20:47 1991  Steve Chamberlain  (steve at cygnus.com)
7791
7792         * ar.c (write_archive.c): added unlink before rename since some
7793         systems can't rename onto an existant file.
7794
7795 Mon Oct 21 09:47:23 1991  Steve Chamberlain  (steve at rtl.cygnus.com)
7796
7797         * nm.c: now doesn't crash if a symbol with no section and no
7798         SEC_ABS appears.
7799
7800 Thu Oct 17 15:25:50 1991  Per Bothner  (bothner at cygnus.com)
7801
7802         * Makefile.in, version.c:  Bump to version 1.91.
7803
7804 Wed Oct 16 11:45:36 1991  Per Bothner  (bothner at cygnus.com)
7805
7806         * Makefile.in, ar.c, bucomm.c, copy.c, cplus-dem.c, filemode.c,
7807         i960-pinsn.c, m68k-pinsn.c, nm.c, objdump.c, size.c, sparc-pinsn.c,
7808         * strip.c: Add or update Copyright notice.
7809         * TODO:  Add note on 'nm -a'.
7810         * version.c: Update version number to 1.90.
7811         * Makefile.in: Fix making of documentation for dist.
7812
7813 Tue Oct 15 00:17:17 1991  Per Bothner  (bothner at cygnus.com)
7814
7815         * README: New file.
7816         * Makefile.in: New kludgy rules for making a tarfile.
7817         * Makefile.in: Fix bindir path.
7818
7819 Mon Oct 14 17:34:29 1991  Roland H. Pesch  (pesch at cygnus.com)
7820
7821         * Makefile.in: add targets binutils.mm, binutils.me
7822
7823 Fri Oct 11 22:44:21 1991  John Gilmore  (gnu at cygnus.com)
7824
7825         * Makefile.in:  Avoid Sun Make VPATH bugs by adding dependencies.
7826
7827 Fri Oct 11 12:51:33 1991  Roland H. Pesch  (pesch at cygnus.com)
7828
7829         * Makefile.in: add target "binutils.ms"
7830
7831         * binutils.texinfo: minor restructuring for texi2roff comfort.
7832
7833 Fri Oct 11 04:12:28 1991  John Gilmore  (gnu at cygnus.com)
7834
7835         Restructure configuration scheme for bfd, binutils, ld.
7836
7837         * include/sys/h-*.h:  Move to bfd/hosts/h-*.h.
7838         * configure.in:  Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
7839         Change some config names to match other dirs.
7840         * *.c:  Include bfd.h before sysdep.h, so ansidecl and PROTO()
7841         get defined first.
7842         * Makefile.in:  Use -I. to get sysdep.h.
7843
7844 Wed Oct  9 22:42:56 1991  Per Bothner  (bothner at cygnus.com)
7845
7846         * nm.c (print_symbols):  Handle NULL name field of symbol.
7847         * Makefile.in: Removed spurious comment.
7848
7849 Tue Oct  8 16:55:03 1991  Roland H. Pesch  (pesch at cygnus.com)
7850
7851         * binutils.texinfo: minor typos, phrasing, formatting fixes.
7852
7853 Tue Oct  8 15:13:20 1991  Per Bothner  (bothner at cygnus.com)
7854
7855         * configure.in: Get host file from ../bfd/config, not config.
7856         * config/*: Remove config directory and its files.
7857
7858 Tue Oct  8 13:58:59 1991  Roland H. Pesch  (pesch at cygnus.com)
7859
7860         * Makefile.in: new targets binutils.dvi, binutils.info
7861
7862         * binutils.texinfo: remove most remaining FIXME's, delete
7863         references to __.SYMDEF by name
7864
7865
7866 Tue Oct  8 10:23:44 1991  Steve Chamberlain  (steve at cygnus.com)
7867
7868         * objdump.c (print_address) Print addresses nicely.
7869
7870 Mon Oct  7 11:31:05 1991  Per Bothner  (bothner at cygnus.com)
7871
7872         * ar.c, Makefile.in, new files {is,not,maybe}-ranlib.c:
7873         Make two different binaries for ar and ranlib, instead of
7874         distinguishing them at run time using argv[0].
7875         (Old behavior is still available if you "make ar_with_ranlib",
7876         but it is not the default.)
7877         * ranlib.sh (new):  An alternative one-line
7878         shell implementation of ranlib.
7879
7880 Fri Oct  4 21:49:44 1991  John Gilmore  (gnu at cygnus.com)
7881
7882         * objdump.c:  Cope with renames of a few BFD types & enums.
7883
7884 Fri Oct  4 19:08:09 1991  Roland H. Pesch  (pesch at cygnus.com)
7885
7886         * binutils.texinfo: add new file (rudimentary docn)
7887
7888 Mon Sep 30 12:30:39 1991  Per Bothner  (bothner at cygnus.com)
7889
7890         * config/hmake-news: Add new file (for Sony NEWSOS3).
7891         * bucomm.c (fatal):  Conditionally compile fatal() depending on
7892         MISSING_VFPRINTF, and don't confuse the issue with NO_VARARGS.
7893         * objdump.c (dump_headers):  Trivial output format change.
7894         * objdump.c (display_info): Loop over integers, not enums,
7895         to appease old compilers.
7896
7897 Mon May 20 16:14:07 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
7898
7899         *objdump.c *nm.c *copy.c: Changed some types to work with 64 bit
7900         object files.
7901
7902 Thu May 16 16:06:55 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
7903      from bother
7904         * objdump.c (print_address): Make disasembled output more
7905         consistent with gdb and as: Add 0x when printing hex.
7906         Don't print extra leading zeros.
7907         Attempt to not print "filename.o".
7908         * objdump.c: Add some enum-to-int casts to accomodate old compilers.
7909
7910
7911 Fri May  3 22:21:44 1991  John Gilmore  (gnu at cygint.cygnus.com)
7912
7913         * copy.c:  Change =& constructs to = &, since they confuse older
7914         C compilers.
7915
7916 \f
7917 Local Variables:
7918 mode: change-log
7919 left-margin: 8
7920 fill-column: 74
7921 version-control: never
7922 End: