* coffgrok.c (do_sections_p1): Use the section's lma instead of vma
[platform/upstream/binutils.git] / binutils / ChangeLog
1 Thu Mar 26 16:59:09 1998  Richard Henderson  <rth@cygnus.com>
2
3         * coffgrok.c (do_sections_p1): Use the section's lma instead of vma
4         for the benefit of prom loaders.
5
6 Wed Mar 25 13:05:39 1998  Ian Lance Taylor  <ian@cygnus.com>
7
8         Based on patch from H.J. Lu  <hjl@gnu.org>:
9         * Makefile.am (DISTSTUFF): New variable.
10         (diststuff): New target.
11         (DISTCLEANFILES): New variable.
12         * Makefile.in: Rebuild.
13
14 Tue Mar 24 19:33:08 1998  Ian Lance Taylor  <ian@cygnus.com>
15
16         * rclex.l: Accept { and } as synonyms for BEGIN and END.
17
18 Fri Mar 20 19:18:08 1998  Ian Lance Taylor  <ian@cygnus.com>
19
20         * aclocal.m4, configure: Rebuild with libtool 1.2.
21
22 Tue Feb 24 13:07:50 1998  Doug Evans  <devans@canuck.cygnus.com>
23
24         * objdump.c (disassemble_data): Delete "++place" after call to
25         find_symbol_for_address.  Set disasm_info.symbols to array of
26         symbols at the current address.
27
28 Wed Feb 18 23:39:46 1998  Richard Henderson  <rth@cygnus.com>
29
30         * Makefile.am (install-exec-local): Install properly when ln
31         fails or tooldir == prefix.
32
33 Tue Feb 17 18:40:55 1998  Richard Henderson  <rth@cygnus.com>
34
35         * objcopy.c (compare_section_lma): Rename from _vma.
36         (copy_object): Gap fill based on LMA not VMA.
37         * binutils.texi: Update and clarify.
38         * objcopy.1: Likewise.
39
40 Tue Feb 17 20:34:11 1998  Ian Lance Taylor  <ian@cygnus.com>
41
42         * dlltool.c (make_one_lib_file): Don't add 1 to hint.
43
44 Fri Feb 13 16:37:44 1998  Ian Lance Taylor  <ian@cygnus.com>
45
46         * Makefile.am (AUTOMAKE_OPTIONS): Define.
47         * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
48
49 Thu Feb 12 14:13:46 1998  Ian Lance Taylor  <ian@cygnus.com>
50
51         * deflex.l: Accept '?' in symbol names, for VC++ mangled names.
52         From Mikey <jeffdb@netzone.com>.
53
54         * addr2line.c (usage): Update bug-gnu-utils address.
55         * ar.c (usage): Likewise.
56         * nlmconv.c (show_usage): Likewise.
57         * nm.c (usage): Likewise.
58         * objcopy.c (copy_usage): Likewise.
59         (strip_usage): Likewise.
60         * objdump.c (usage): Likewise.
61         * size.c (usage): Likewise.
62         * strings.c (usage): Likewise.
63         * windres.c (usage): Likewise.
64         * binutils.texi (Bug Reporting): Likewise.
65
66 Sat Feb  7 15:36:24 1998  Ian Lance Taylor  <ian@cygnus.com>
67
68         * configure, aclocal.m4: Rebuild with new libtool.
69
70 Thu Feb  5 12:21:13 1998  Ian Lance Taylor  <ian@cygnus.com>
71
72         * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
73
74 Fri Jan 30 19:16:28 1998  Doug Evans  <devans@canuck.cygnus.com>
75
76         * Makefile.am (CC_FOR_TARGET,nlmcomv.o): Change program_transform_name
77         to transform.
78         * Makefile.in: Regenerate.
79
80 Thu Jan 29 16:24:04 1998  Mumit Khan  <khan@xraylith.wisc.edu>
81
82         * dlltool.c: Define exit status macros for _WIN32 but not
83         __CYGWIN32__.
84         (gen_lib_file): Check for exit status of unlink.
85         * resrc.c: Define popen and pclose if _WIN32 but not
86         __CYGWIN32__.
87
88 Wed Jan 28 17:45:46 1998  Ian Lance Taylor  <ian@cygnus.com>
89
90         * configure.in: Remove vfork check.
91         * nlmconv.c: Never include vfork.h.
92         * aclocal.m4, configure, Makefile.in, config.in: Rebuild.
93
94 Wed Jan 28 17:43:02 1998  J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
95
96         * objcopy.c (copy_archive): Only pass one argument to mkdir if
97         _WIN32 but not __CYGWIN32__.
98         (smart_rename): Add code for _WIN32 (not __CYGWIN32__), to cope
99         with different rename behaviour and lack of chown.
100
101         * configure.in: Check for mingw32 when deciding whether to build
102         dlltool.
103         * dlltool.c: Never include vfork.h.
104         (run): Use pexecute rather than vfork.
105         (gen_lib_file): Check for errors from bfd_set_archive_head and
106         bfd_close.  Close all the BFDs in the archive before deleting the
107         temporary files.
108
109 Thu Jan 22 16:22:55 1998  Fred Fish  <fnf@cygnus.com>
110
111         * objdump.c (disassemble_bytes): Add flag INSN_HAS_RELOC to tell
112         disassembly function there is a reloc on this line.
113
114 Wed Jan 14 15:29:43 1998  Richard Henderson  <rth@cygnus.com>
115
116         * srconv.c (sh, h8300): Delete variables.
117         (addrsize, toolname, rnames): New variables.
118         (writeINT): Use addrsize.
119         (wr_un): Use toolname.
120         (wr_hd): Set up addrsize et al properly for h8300[hs].
121         (walk_tree_symbol): Zero dsy.  Use rnames.
122         (wr_un, wr_hd, wr_ob, wr_du): Use proper bfd access macros.
123         * sysdump.c (sh, h8300): Delete variables.
124         (addrsize): New variable.
125         (getINT): Use it.
126         (getone): Initialize it.
127         (getBITS): Range check on MAX.
128
129 Mon Dec 29 16:58:05 1997  Ian Lance Taylor  <ian@cygnus.com>
130
131         From Matthew Bellantoni <matthew@chrysalis.com>:
132         * ar.c (get_pos_bfd): Add default_posname parameter.  Change all
133         callers.
134         (replace_members): Default to replacing in the same position.
135
136 Mon Dec 22 11:27:22 1997  Ian Lance Taylor  <ian@cygnus.com>
137
138         * rclex.l: Don't permit a comma in a STRING.
139         * rcparse.y (acc_entry): Warn if an inappropriate modifier is used
140         with a non VIRTKEY.
141         (acc_event): For a control character, set VIRTKEY, and force the
142         character to uppercase.
143         (acc_options): Don't require a comma separator.
144
145 Tue Dec  9 13:25:42 1997  Michael Meissner  <meissner@cygnus.com>
146
147         * size.c (size_number): New function to provide size of field.
148         ({l,r}print_number): For octal and hex fields, print field using
149         '0' and '0x' suffixes.  Do not include following tab.
150         (sysv_internal_sizer): Size section name, section size, and vma
151         address fields.
152         (sysv_internal_printer): Use calculated sizes for the columns.
153         (print_sysv_format): Size columns before printing.
154         (print_berkeley_format): Print tabs between numbers now that
155         {l,r}print_number doesn't.  Print fields right justified.
156
157 Mon Dec  8 11:22:04 1997  Nick Clifton  <nickc@cygnus.com>
158
159         * objdump.c (objdump_print_addr_with_sym): Remove call to
160         disasm_symaddr() as this function no longer exists.
161
162 Tue Dec  2 10:23:50 1997  Nick Clifton  <nickc@cygnus.com>
163
164         * objdump.c (objdump_print_addr_with_sym): Call disasm_symaddr()
165         to allow backend to know which symbol has just been displayed.
166
167 Tue Dec  2 13:06:46 1997  Ian Lance Taylor  <ian@cygnus.com>
168
169         * windres.h (ESCAPE_*): Define standard escape sequences.
170         * rclex.l (handle_quotes): Handle standard escape sequences.  Warn
171         about an unrecognized escape character.
172         * windres.c (unicode_print): Print standard escape sequences.
173         * rcparse.y (acc_event): Initialize $$.next.
174         * resbin.c (bin_to_res_menuitems): Don't set MENUITEM_POPUP or
175         MENUITEM_ENDMENU in the menu item flags.
176         (bin_to_res_accelerators): Allocate a structure (the old code
177         never worked).
178         (res_to_bin_accelerator): Correct the test for setting ACC_LAST.
179         (res_to_bin_dialog): Save the extended style rather than saving
180         the style twice.  Remove useless shadowing length variable.  Set
181         the length of control data correctly.
182         * resrc.c (write_rc_dialog): Don't print the class or menu if the
183         string length is zero.
184
185 Mon Nov 24 18:52:43 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
186
187         * stabs.c (parse_stab_argtypes): Don't try to parse the name of a
188         destructor as mangled argument types.
189
190 Mon Nov 10 17:51:41 1997  Gavin Koch  <gavin@cygnus.com>
191
192         * addr2line.c (translate_addresses): Use bfd_scan_vma rather
193         than strtol to scan addresses.
194
195 Sun Nov  9 11:01:31 1997  Jeffrey A Law  (law@cygnus.com)
196
197         * Makefile.am (bin_PROGRAMS): Don't use line continuations here.
198
199 Tue Nov  4 11:56:14 1997  Ian Lance Taylor  <ian@cygnus.com>
200
201         * objcopy.c (copy_section): Don't crash if there is no particular
202         information for a section.
203
204 Mon Nov  3 12:36:19 1997  Ian Lance Taylor  <ian@cygnus.com>
205
206         * objcopy.c (parse_flags): Make flag check case insensitive.
207         Check for `contents' flag.  Give an error for unrecognized flags.
208         (copy_section): If the contents flag was set for a section that
209         had no contents, zero out the new contents.
210         * binutils.texi (objcopy): Document contents section flag.
211
212 Sun Nov  2 14:49:56 1997  Ian Lance Taylor  <ian@cygnus.com>
213
214         * objcopy.c: Move new struct and variable definitions to top of
215         file.  Remove obsolete add_strip_symbol and is_strip_symbol
216         declarations.  Add prototype declarations for add_specific_symbol
217         and is_specified_symbol.
218
219 Mon Oct 20 15:31:43 1997  Klaus K"ampf  <kkaempf@progis.de>
220
221         * configure.com (HAVE_SBRK): Undefine.
222
223 Tue Oct 14 16:14:35 1997  Nick Clifton  <nickc@cygnus.com>
224
225         * objdump.c (objdump_symbol_at_address): New function.  Returns
226         true if a symbol can be found at the address passed in.
227         (disassemble_data): Set the symbol_at_address_func field to point
228         to objdump_symbol_at_address.
229
230 Fri Oct 10 14:13:09 1997  Richard Henderson  <rth@cygnus.com>
231
232         * objcopy.c, objcopy.1, binutils.texi: "localize" is a better name
233         than "privatize".  Update all references.
234
235 Thu Oct  9 15:57:29 1997  Ian Lance Taylor  <ian@cygnus.com>
236
237         * binutils.texi (strip): Remove duplicate --target.  From Marty
238         Leisner <leisner@sdsp.mc.xerox.com>.
239
240         * nm.c (lineno_cache_bfd): New file static variable.
241         (lineno_cache_rel_bfd): New file static variable.
242         (display_archive): Clear lineno_cache_bfd and lineno_cache_rel_bfd
243         when closing a BFD.
244         (display_file): Likewise.
245         (print_symbol): Use lineno_cache_bfd and lineno_cache_rel_bfd
246         instead of cache_bfd and cache_rel_bfd.  Make seccount static, and
247         only set it when setting relocs.
248
249 Wed Oct  8 21:19:11 1997  Richard Henderson  <rth@cygnus.com>
250
251         * objcopy.c (keep_specific_list, privatize_specific_list,
252         weaken_specific_list): New variables.
253         (keep_symbols): Removed.
254         (add_specific_symbol): New function from the carcas of
255         add_strip_symbol.  Takes a list as an argument.
256         (is_specified_symbol): Likewise from is_strip_symbol.
257         (filter_symbols): Honor the new privatize and weaken lists.
258         Optimize bfd_asymbol_name handling.
259         (copy_object, copy_options, copy_usage): Add privatize-symbol &
260         weaken-symbol options.
261
262         * objcopy.1, binutils.texi: Update docs.
263
264 Sun Oct  5 09:05:44 1997  Frank Ch. Eigler  <fche@cygnus.com>
265
266         * objdump.c (disassemble_data): Make "--prefix-addresses"
267         disassembly adjust to mixed-length instructions.
268         (objdump_print_addr_with_sym): Add "0x" prefix for hexadecimal
269         symbol-offsets in disassembly.
270
271 Fri Oct  3 12:04:25 1997  Ian Lance Taylor  <ian@cygnus.com>
272
273         * objcopy.c (set_times): New static function, replacing
274         make_same_dates.
275         (strip_main): If preserve_dates, stat the input file before
276         copying it, and call set_times afterward.
277         (copy_main): Likewise.
278
279         * wrstabs.c (write_stabs_in_sections_debugging_info): Cast p to
280         char * when calling strcpy and strlen.
281
282 Wed Sep 24 11:34:05 1997  Ian Lance Taylor  <ian@cygnus.com>
283
284         * binutils.texi (ar cmdline): Document that q now works like r.
285         From Marty Leisner <leisner@sdsp.mc.xerox.com>.
286
287         * binutils.texi (size): The object file argument is optional.
288         From Marty Leisner <leisner@sdsp.mc.xerox.com>.
289
290         * aclocal.m4: Rebuild with new libtool.
291         * configure: Rebuild.
292
293 Tue Aug 26 17:48:34 1997  Ian Lance Taylor  <ian@cygnus.com>
294
295         * Makefile.am (EXEEXT_FOR_BUILD): New variable.  Use it in all
296         references to the sysinfo program.
297         * configure.in: Rebuild with new bfd/acinclude.m4.
298         * Makefile.in: Rebuild.
299
300 Fri Aug  8 15:32:49 1997  Ian Lance Taylor  <ian@cygnus.com>
301
302         * windres.c: Include <time.h>.
303         (define_resource): Set a timestamp for the resource.
304
305 Wed Aug  6 13:37:58 1997  Ian Lance Taylor  <ian@cygnus.com>
306
307         * configure.in: Define TARGET in header file.
308         * acconfig.h (TARGET): Add #undef.
309         * Makefile.am (version.o, bucomm.o): Remove special targets.
310         * bucomm.c (target): Remove.
311         * nm.c (program_name): Don't declare.
312         (target): Make static.
313         * size.c (target): Make static.
314         * configure, config.in, Makefile.in: Rebuild.
315
316 Tue Aug  5 00:01:41 1997  Ian Lance Taylor  <ian@cygnus.com>
317
318         * Makefile.am (check-DEJAGNU): Export r.
319         (.dep1): Use $(INCLUDES) rather than $(ALL_CFLAGS).
320         * Makefile.in: Rebuild.
321
322         * nlmheader.y: Use VERSIONK rather than VERSION.
323
324         * Makefile.am (STRIP_PROG): Change from strip.new to strip-new.
325         (NM_PROG): Change from nm.new to nm-new.
326         (TOOL_PROGS, install-exec-local): Adjust accordingly.
327         * Makefile.in: Rebuild.
328
329 Mon Aug  4 11:47:31 1997  Ian Lance Taylor  <ian@cygnus.com>
330
331         * configure.in: Remove AC_ARG_PROGRAM; it's invoked by
332         AM_INIT_AUTOMAKE.
333         * configure: Rebuild.
334
335         * Makefile.am (install-exec-local): Create $(tooldir)/bin before
336         trying to install anything into it.
337         * Makefile.in: Rebuild.
338
339         * Makefile.am (TOOL_PROGS): Use an explicit $(EXEEXT).
340         (install-exec-local): When handling $(noinst_PROGRAMS), only use
341         $(EXEEXT) on the installed file.  When handling $(TOOL_PROGS),
342         handle $(EXEEXT) correctly.
343         * configure.in: Add an explicit $(EXEEXT) when substituting for
344         the name of a program to build.
345         * Makefile.in, configure: Rebuild.
346
347         * aclocal.m4, configure, Makefile.in: Rebuild with new automake
348         patches.
349
350         * deflex.l, defparse.y: Use VERSIONK rather than VERSION.
351         * rclex.l, rcparse.y: Likewise.
352         * Makefile.am (windres_SOURCES): Add $(BULIBS).
353         * Makefile.in: Rebuild.
354
355 Fri Aug  1 13:08:39 1997  Ian Lance Taylor  <ian@cygnus.com>
356
357         * acinclude.m4: Include bfd/acinclude.m4, not bfd/acmacros.m4.
358         * aclocal.m4, configure: Rebuild with new libtool.
359
360 Thu Jul 31 11:51:35 1997  Ian Lance Taylor  <ian@cygnus.com>
361
362         * Makefile.am: New file, based on old Makefile.in.
363         * acinclude.m4: New file, from old aclocal.m4.
364         * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL.  Remove
365         shared library handling; now handled by libtool.  Replace
366         AC_CONFIG_HEADER with AM_CONFIG_HEADER.  Call AC_PROG_YACC,
367         AC_PROG_LEX, AC_DECL_YYTEST, AM_MAINTAINER_MODE, AM_CYGWIN32, and
368         AM_EXEEXT.  Replace AC_PROG_INSTALL with AM_PROG_INSTALL.  Remove
369         stamp-h handling in AC_OUTPUT.
370         * acconfig.h: Mention PACKAGE and VERSION.
371         * stamp-h.in: New file.
372         * Makefile.in: Now built with automake.
373         * aclocal.m4: Now built with aclocal.
374         * config.in, configure: Rebuild.
375
376         From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
377         * rcparse.y (dialog): Default menu and class to be named.
378         (styles): If FONT is seen, set DS_SETFONT in dialog style.
379         * resbin.c (res_to_bin_dialog): Correct computation of font
380         information length.
381
382 Wed Jul 30 11:21:06 1997  Ian Lance Taylor  <ian@cygnus.com>
383
384         From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
385         * resbin.c (res_to_bin_menu): Correct computation of menu
386         vs. menuex length.
387         * resrc.c (define_stringtable): Add 1 to resource ID.
388
389 Tue Jul 29 11:06:03 1997  Ian Lance Taylor  <ian@cygnus.com>
390
391         * resbin.c (bin_to_res_string): Correct adjustment of data and
392         length.  From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>.
393
394 Tue Jul 22 18:01:23 1997  Ian Lance Taylor  <ian@cygnus.com>
395
396         * nlmconv.c (link_inputs): Call libiberty pexecute function.
397         (pexecute) [multiple versions]: Remove.
398
399 Tue Jul 22 16:19:34 1997  Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
400
401         * bucomm.c (make_tempname): If we might be using a DOS filesystem,
402         check for a backslash as well as a slash.
403
404 Thu Jun 26 13:53:17 1997  Ian Lance Taylor  <ian@cygnus.com>
405
406         * windres.c (main): Quit if we didn't get any resources.
407         (usage): Fix --yydebug usage message.
408         * rescoff.c (write_coff_file): Don't free the relocation array
409         until after we've closed the BFD.
410         (read_coff_rsrc): Quit rather than try to read standard input.
411         (write_coff_file): Quit rather than try to write to standard
412         output.
413         * rcparse.y: Add a couple of missing semicolons (accepted by bison
414         but not byacc).
415         * binutils.texi: Document windres.
416
417 Wed Jun 25 20:57:06 1997  Ian Lance Taylor  <ian@cygnus.com>
418
419         * resbin.c: New file.
420         * rclex.l, rcparse.y, rescoff.c, resrc.c, windres.c, windres.h:
421         Numerous fixes and improvements.
422         * Makefile.in: Rebuild dependencies.
423         (CFILES): Add resbin.c.
424         (WINDRES_OBJS): Add resbin.o.
425
426 Sun Jun 22 17:29:41 1997  Ian Lance Taylor  <ian@cygnus.com>
427
428         First stab at Windows resource compiler:
429         * windres.h: New file.
430         * windres.c: New file.
431         * resrc.c: New file.
432         * rcparse.y: New file.
433         * rclex.l: New file.
434         * rescoff.c: New file.
435         * configure.in: Define and substitute BUILD_WINDRES.
436         * configure: Rebuild.
437         * Makefile.in: Rebuild dependencies.
438         (WINDRES_PROG): New variable.
439         (PROGS): Add @BUILD_WINDRES@.
440         (HFILES): Add dlltool.h and windres.h.
441         (CFILES): Add windres.c and resrc.c.
442         (GENERATED_CFILES): Add rcparse.c and rclex.c.
443         (WINDRES_OBJS): New variable.
444         $(WINDRES_PROG): New target.
445         (rcparse.c, rcparse.h, rclex.c): New targets.
446
447 Thu Jun 12 12:27:51 1997  Ian Lance Taylor  <ian@cygnus.com>
448
449         * dlltool.c (export_type): Add data field.
450         (def_exports): Add data parameter.  Change all callers.
451         (dump_def_info): Print data field.
452         (gen_def_file): Likewise.
453         (make_one_lib_file): Handle data field by not emitting simple
454         label and not emitting anything in SEC_TEXT.
455         (dtab): Print data field.
456         (process_duplicates): Merge data field.
457         * dlltool.h (def_exports): Update declaration.
458         * defparse.y (expline): Accept opt_DATA.  Pass it to def_exports.
459         (opt_DATA): New non-terminal.
460
461 Wed Jun 11 17:15:47 1997  Ian Lance Taylor  <ian@cygnus.com>
462
463         * dlltool.h: New file.
464         * deflex.l: Include dlltool.h and libiberty.h.  Don't declare
465         strdup.  Use xstrdup rather than strdup.
466         * defparse.y: Include bfd.h, bucomm.h, and dlltool.h.
467         * dlltool.c: Include dlltool.h and time.h.  Make a lot of
468         variables and functions static.  Make a lot of char * variables
469         and parameters const.  Add declarations for static functions.  Do
470         some reindenting.  Hide more PowerPC stuff inside DLLTOOL_PPC.
471
472 Wed Jun 11 12:05:52 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
473
474         * ar.c (bfd_special_undocumented_glue): Add const.
475
476 Mon May 12 22:09:35 1997  Bob Manson  <manson@charmed.cygnus.com>
477
478         * Makefile.in (check): Pass CC_FOR_TARGET and CFLAGS_FOR_TARGET
479         to runtest.
480
481 Mon May 12 13:14:22 1997  Ian Lance Taylor  <ian@cygnus.com>
482
483         * configure.in: Don't clear OPCODES when --enable-commonbfdlib is
484         used on HP/UX.
485         * configure: Rebuild.
486
487 Fri Apr 25 14:22:08 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
488
489         * Makefile.in (maintainer-clean realclean): Change *.info*
490         to binutils.info* to save sysroff.info.
491
492 Tue Apr 15 13:42:22 1997  Ian Lance Taylor  <ian@cygnus.com>
493
494         * Makefile.in (INSTALL): Set to @INSTALL@.
495         (INSTALL_XFORM, INSTALL_XFORM1): Remove.
496         (install): Depend upon installdirs.  Use $(program_transform_name)
497         directly, rather than using $(INSTALL_XFORM) and
498         $(INSTALL_XFORM1).
499         (installdirs): New target.
500         (install-info): Run mkinstalldirs.
501
502 Mon Apr 14 11:52:39 1997  Ian Lance Taylor  <ian@cygnus.com>
503
504         * Makefile.in (INSTALL): Change install.sh to install-sh.
505
506         From Thomas Graichen <graichen@rzpd.de>:
507         * Makefile.in: Always use $(SHELL) when running move-if-change.
508         * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
509         * configure: Rebuild.
510
511 Fri Apr  4 13:28:02 1997  Ian Lance Taylor  <ian@cygnus.com>
512
513         * configure.in: Add AC_FUNC_ALLOCA.
514         * configure, config.in: Rebuild.
515         * bucomm.h: Add alloca handling, copied from gas/as.h.
516         * dlltool.c: Add #pragma alloca for AIX to start of file.
517         * nlmconv.c: Likewise.
518
519         * Makefile.in (distclean): Remove site.exp and site.bak.  Remove
520         everything that clean removes.
521
522 Thu Apr  3 13:18:39 1997  Ian Lance Taylor  <ian@cygnus.com>
523
524         * Makefile.in (VERSION): Set to 2.8.1.
525
526         * Branched binutils 2.8.
527
528 Tue Apr  1 16:21:44 1997  Klaus Kaempf  <kkaempf@progis.de>
529
530         * configure.com: New file.
531         * config.h-vms: Remove file.
532         * makefile.vms: Update for new configure scheme.
533
534 Mon Mar 31 15:30:43 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>
535
536         * objcopy.c (make_same_dates): Use statbuf, not buf, if not
537         HAVE_GOOD_UTIME_H.
538
539 Fri Mar 28 17:57:53 1997  Alan Modra  <alan@spri.levels.unisa.edu.au>
540
541         * Makefile.in ($(OBJDUMP_PROG)): Don't link against BFDLIB twice.
542         * configure.in: Add AC_ARG_ENABLE for commonbfdlib.  If it is set,
543         set OPCODES to empty.
544         * configure: Rebuild.
545
546 Thu Mar 27 16:03:02 1997  Ian Lance Taylor  <ian@cygnus.com>
547
548         Based on patch from Marty Leisner <leisner@sdsp.mc.xerox.com>:
549         * objcopy.c: Include <utime.h> or <sys/time.h>.
550         (strip_options): Add "preserve-dates".
551         (copy_options): Likewise.
552         (copy_usage): Mention -p and --preserve-dates.
553         (strip_usage): Likewise.
554         (make_same_dates): New static function.
555         (strip_main): Handle -p.
556         (copy_main): Likewise.
557         * binutils.texi, strip.1, objcopy.1: Document new option.
558
559         addr2line.c contributed by Ulrich Lauther
560         <Ulrich.Lauther@zfe.siemens.de>:
561         * addr2line.c: New file.
562         * Makefile.in: Rebuild dependencies.
563         (ADDR2LINE_PROG): New variable.
564         (MANPAGES): Add addr2line.
565         (PROGS): Add $(ADDR2LINE_PROG).
566         (CFILES): Add addr2line.c.
567         ($(ADDR2LINE_PROG)): New target.
568         * binutils.texi: Document addr2line.
569         * addr2line.1: New file.
570
571         * version.c (print_version): Update copyright date.
572
573 Mon Mar 24 10:52:45 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
574
575         * objdump.c (disassemble_data): Don't exit if a file cannot be
576         disassembled, instead just return.
577
578 Thu Mar 20 21:16:51 1997  Jeffrey A Law  (law@cygnus.com)
579
580         * size.c (usage): Make definition match its prototype.
581         (display_bfd, lprint_number, rprint_number): Likewise.
582         (print_berkeley_format, sysv_internal_printer): Likewise.
583         (print_sysv_format): Likewise.
584         * nm.c (set_print_radix, set_output_format): Likewise.
585         * objcopy.c (filter_bytes): Likewise.
586
587 Tue Mar 18 16:39:55 1997  H.J. Lu  <hjl@lucon.org>
588
589         * Many files: Add function prototypes.
590         * ar.c (mri_emul, get_pos_bfd): Make static.
591         * arlex.l: Include "libiberty.h".  Don't declare strdup.  Use
592         xstrdup rather than strdup.
593         * arparse.y (yyerror): Make argument const.  Correct typo.
594         * arsup.c (strdup): Don't declare.
595         (ar_save): Use xstrdup rather than strdup.
596         * filemode.c: Include "bucomm.h".
597         * nm.c (usage): Make static.
598         (print_symname): Make format and name const.
599         * objcopy.c (cat): Remove.
600         (copy_archive): Make output_target const.  Use concat, not cat.
601         (copy_file, simple_copy, smart_rename): Make arguments const.
602         * objdump.c (read_section_stabs): Likewise.
603         (print_section_stabs): Likewise.
604         (display_target_tables): Don't declare getenv.
605         * strings.c (strings_object_file): Change file to const.
606         (print_strings): Change filename to const.
607         * Makefile.in: Rebuild dependencies.
608
609 Tue Mar 18 11:37:24 1997  Ian Lance Taylor  <ian@cygnus.com>
610
611         * configure.in: Add BFD_NEED_DECLARATION(getenv).
612         * acconfig.h: Add NEED_DECLARATION_GETENV.
613         * bucomm.h (getenv): Declare if NEED_DECLARATION_GETENV.
614         * configure, config.in: Rebuild.
615         * nlmconv.c (getenv): Don't declare.
616
617         * Makefile.in: Rebuild dependencies.
618
619 Sat Mar 15 15:35:56 1997  Ian Lance Taylor  <ian@cygnus.com>
620
621         Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
622         * objdump.c: Include "demangle.h".
623         (do_demangle): New static variable.
624         (usage): Mention -C/--demangle.
625         (long_options): Add "demangle".
626         (objdump_print_symname): New static function.
627         (objdump_print_addr_with_sym): Use objdump_print_symname.
628         (disassemble_bytes): Likewise.
629         (dump_reloc_set): Likewise.
630         (dump_symbols): Demangle symbol name.
631         (main): Handle -C.
632         * binutils.texi, objdump.1: Document -C/--demangle.
633
634         * objdump.c (usage): Mention --no-show-raw-insn.
635         (long_options): Add "no-show-raw-insn".
636         (disassemble_bytes): Handle --no-show-raw-insn.
637         * binutils.texi, objdump.1: Document --no-show-raw-insn.
638
639 Wed Mar 12 11:42:00 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
640
641         * rddbg.c (free_saved_stabs): Set the strings to NULL after being
642         freed.
643
644 Fri Feb 28 17:18:45 1997  Ian Lance Taylor  <ian@cygnus.com>
645
646         * bucomm.c (set_default_bfd_target): New function.
647         * bucomm.h (set_default_bfd_target): Declare.
648         * ar.c (main): Call set_default_bfd_target.
649         * nlmconv.c (main): Likewise.
650         * nm.c (main): Likewise.
651         * objcopy.c (main): Likewise.
652         * objdump.c (main): Likewise.
653         * size.c (main): Likewise.
654         * strings.c (main): Likewise.
655         * Makefile.in (bucomm.o): New target, to define TARGET.
656
657 Tue Feb 25 21:28:38 1997  Ian Lance Taylor  <ian@cygnus.com>
658
659         * objdump.c (adjust_section_vma): New static variable.
660         (usage): Mention --adjust-section-vma.
661         (OPTION_ADJUST_VMA): Define.
662         (long_options): Add "addjust-vma".
663         (display_bfd): If adjust_section_vma is not 0, add it to all the
664         section addresses.
665         (main): Handle OPTION_ADJUST_VMA.
666         * binutils.texi, objdump.1: Document --adjust-vma.
667
668 Fri Feb 14 18:46:47 1997  Ian Lance Taylor  <ian@cygnus.com>
669
670         * nm.c (print_symbol): Cache the BFD as well as the symbols and
671         relocs, and don't try to use the symbols or relocs with a
672         different BFD.
673
674 Thu Feb 13 21:34:43 1997  Klaus Kaempf  (kkaempf@progis.de)
675
676         * config.h-vms: sbrk() is provided on openVMS/Alpha.
677         * makefile.vms: allow compiling with current gcc snapshot.
678
679 Thu Feb 13 20:14:40 1997  Ian Lance Taylor  <ian@cygnus.com>
680
681         * arsup.c, coffgrok.c, dlltool.c, nlmconv.c: Use xmalloc rather
682         than malloc.
683
684 Wed Feb 12 16:12:02 1997  Ian Lance Taylor  <ian@cygnus.com>
685
686         * objdump.c (disassemble_data): Correct VMA argument to
687         find_symbol_for_address.  Improve handling of code with no symbol
688         followed by code with a symbol.
689
690 Wed Feb 12 12:16:47 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
691
692         * objdump.c (disassemble_bytes): Make output of raw instructions
693         work better for non-standard values of bytes_per_chunk and
694         bytes_per_line.
695
696 Thu Feb  6 14:14:59 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>
697
698         * objdump.c (disassemble_bytes): Added code to allow some control
699         over the way raw instructions are displayed.
700
701 Thu Feb  6 12:36:03 1997  Ian Lance Taylor  <ian@cygnus.com>
702
703         * stabs.c (struct bincl_file): Add next_stack field.
704         (push_bincl): Put the new file on both bincl_list and
705         bincl_stack.  Clear the file_types field.
706         (pop_bincl): Use the next_stack field when popping the stack.
707         Don't put the file on bincl_list.
708         (find_excl): Include the file name when warning about an unfound
709         N_EXCL.
710
711         * debug.c (debug_type_samep): Don't crash if we are passed NULL.
712
713 Thu Feb  6 11:54:24 1997  Alan Modra  <alan@spri.levels.unisa.edu.au>
714
715         * objcopy.1: Add missing space after .B.
716
717 Fri Jan 31 10:33:07 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
718
719         * objdump.c (disassemble_data): Initialize `aux.require_sec'.
720
721 Wed Jan 29 13:21:21 1997  Ian Lance Taylor  <ian@cygnus.com>
722
723         * objdump.c (objdump_print_value): Add skip_zeroes parameter.
724         Change all callers.
725         (objdump_print_addr_with_sym): Likewise.  Call objdump_print_value
726         to print address.
727         (objdump_print_addr): New static function.
728         (objdump_print_address): Just call objdump_print_addr.
729         (disassemble_bytes): Print real address, not function offset.
730         Skip a certain number of leading zeroes.
731
732         * objdump.c (disassemble_zeroes): New static variable.
733         (usage): Mention --disassemble-zeroes.
734         (long_options): Add "disassemble-zeroes".
735         (disassemble_bytes): Check disassemble_zeroes.
736
737 Tue Jan 28 16:47:26 1997  Ian Lance Taylor  <ian@cygnus.com>
738
739         * objdump.c (disassemble_bytes): Don't skip zeroes if the
740         disassembler has told us that we are in a branch delay slot.
741
742 Mon Jan 20 14:24:04 1997  Ian Lance Taylor  <ian@cygnus.com>
743
744         * size.c (berkeley_sum): Rewrite.  Skip sections which are not
745         SEC_ALLOC.  Count SEC_READONLY sections as text.
746
747 Tue Jan 14 15:14:14 1997  Ian Lance Taylor  <ian@cygnus.com>
748
749         * Makefile.in (maintainer-clean realclean): Remove *.info*, not
750         just *.info.  From H.J. Lu <hjl@lucon.org>.
751
752 Tue Dec 31 15:42:54 1996  Ian Lance Taylor  <ian@cygnus.com>
753
754         * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
755
756 Fri Dec 27 11:19:26 1996  Ian Lance Taylor  <ian@cygnus.com>
757
758         * configure.in: Work around bug in AC_FUNC_VFORK in autoconf 2.12.
759         * configure: Rebuild.
760
761 Thu Dec 19 13:11:20 1996  Ian Lance Taylor  <ian@cygnus.com>
762
763         Based on patch from Andrew J Klossner <andrew@pogo.wv.tek.com>:
764         * objcopy.c (OPTION_WEAKEN): Define.
765         (copy_options): Add "weaken".
766         (copy_usage): Mention --weaken.
767         (weaken): New static variable.
768         (filter_symbols): Handle weaken.
769         (copy_object): Call filter_symbols if weaken.
770         (copy_main): Handle OPTION_WEAKEN.
771         * binutils.texi, objcopy.1: Document --weaken.
772
773 Wed Dec 18 22:49:13 1996  Stan Shebs  <shebs@andros.cygnus.com>
774
775         * mpw-make.sed: Use NewFolderRecursive for installation.
776
777 Sat Dec  7 10:17:25 1996  Jeffrey A Law  (law@cygnus.com)
778
779         * Makefile.in (install): Add "else true" clause to cater to
780         broken "make" on some systems.
781
782 Fri Dec  6 17:21:41 1996  Ian Lance Taylor  <ian@cygnus.com>
783
784         * ieee.c (parse_ieee_bb): Always initialize namcopy to avoid gcc
785         warning about uninitialized variable.
786         (ieee_read_cxx_class): Likewise, for pf.
787         (ieee_enum_type): Likewise, for i.
788
789 Tue Nov 26 17:01:25 1996  Ian Lance Taylor  <ian@cygnus.com>
790
791         * wrstabs.c (stab_array_type): Add casts when printing
792         bfd_signed_vma values.
793
794         * configure: Rebuild with autoconf 2.12.
795
796 Mon Nov 25 16:53:18 1996  Ian Lance Taylor  <ian@cygnus.com>
797
798         * objdump.c (disassemble_data): Don't crash if there is no
799         symbol.
800
801 Fri Nov 22 17:29:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
802
803         * ar.c (open_inarch): Don't call bfd_openr with a null name.
804
805 Fri Nov  1 12:08:13 1996  Ian Lance Taylor  <ian@cygnus.com>
806
807         * binutils.texi: Add section on reporting bugs.
808
809 Thu Oct 31 18:20:53 1996  Ian Lance Taylor  <ian@cygnus.com>
810
811         * stabs.c (struct stab_handle): Add bincl_list field.
812         (parse_stab): Pass value to push_bincl.  Call find_excl for
813         N_EXCL.
814         (struct bincl_file): Add hash, file and file_types fields.
815         (push_bincl): Add hash parameter.  Save it in the new hash field.
816         Save the file number in the new file field.
817         (pop_bincl): Put the bincl_file on bincl_list, rather than freeing
818         it.  Save the file types in the new file_types field.
819         (find_excl): New static function.
820
821         * ieee.c (ieee_lineno): Don't compare line number addresses to
822         info->highaddr (undo part of October 28 patch).
823
824 Tue Oct 29 16:40:22 1996  Ian Lance Taylor  <ian@cygnus.com>
825
826         * objdump.c (objdump_print_value): Don't print the empty string
827         for zero.
828
829 Mon Oct 28 16:58:14 1996  Ian Lance Taylor  <ian@cygnus.com>
830
831         * stabs.c (struct stab_handle): Add function_end field.
832         (start_stab): Initialize function_end.
833         (finish_stab): Pass info->function_end to debug_end_function.
834         (parse_stab): If info->function_end is set, use it as the address
835         which ends a function.
836
837         * ieee.c (ieee_array_type): Remember the correct size.
838
839         * ieee.c (ieee_finish_compilation_unit): Permit coalescing ranges
840         that are up to 0x1000 bytes apart, not just 64.
841         (ieee_add_bb11_blocks): Don't bother to emit a BB11 that is less
842         than 0x100 bytes.
843         (ieee_lineno): Only emit line numbers that are less than
844         info->highaddr.
845
846 Fri Oct 25 12:12:17 1996  Ian Lance Taylor  <ian@cygnus.com>
847
848         * ieee.c (struct ieee_defined_enum): Add defined field.
849         (ieee_enum_type): If the enum tag has been seen before but not
850         defined, reuse the same type index, and define it.
851         (ieee_tag_type): If this enum has not been defined, add an
852         undefined entry to the list of enums.
853
854         * objdump.c (disassemble_bytes): Let the disassembler override the
855         number of bytes printed on a line.
856
857 Thu Oct 24 16:42:10 1996  Ian Lance Taylor  <ian@cygnus.com>
858
859         * objdump.c (prefix_addresses): New static variable.
860         (long_options): Add "prefix-addresses".
861         (compare_symbols): Sort BSF_FUNCTION symbols before other
862         symbols.
863         (find_symbol_for_address): New static function, broken out of
864         objdump_print_address.
865         (objdump_print_addr_with_sym): New static function, broken out of
866         objdump_print_address.
867         (objdump_print_address): Call new functions.
868         (disassemble_bytes): New static function, broken out of
869         disassemble_data.  Change disassembly format, unless
870         prefix_addresses is set.
871         (disassemble_data): Call disassemble_bytes.  Unless
872         prefix_addresses is set, disassemble in chunks headed by a
873         symbol.
874         * binutils.texi, objdump.1: Document --prefix-addresses.
875
876         * rddbg.c (read_section_stabs_debugging_info): Preserve the
877         backslash when concatenating multiple stabs strings.
878
879 Thu Oct 10 11:36:31 1996  Doug Evans  <dje@canuck.cygnus.com>
880
881         * dlltool.c (scan_open_obj_file): Fix loop exit test.
882         Add missing parameter to def_exports.
883
884 Tue Oct  8 12:06:17 1996  Ian Lance Taylor  <ian@cygnus.com>
885
886         * Makefile.in (LEX_OPTIONS): Set to empty string.  -I -Cem is the
887         default for flex, and is not recognized by lex.
888
889 Thu Oct  3 17:41:23 1996  Ian Lance Taylor  <ian@cygnus.com>
890
891         * binutils.texi (Target Selection): Document that you can now
892         specify targets using configuration triplets.
893
894         * ar.c (usage): Declare.  Make sure all callers pass an argument.
895
896 Thu Oct  3 15:39:42 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
897
898         * Makefile.in (clean): Remove config.log.
899
900 Wed Oct  2 15:49:16 1996  Klaus Kaempf  <kkaempf@progis.de>
901
902         * makefile.vms: Bump version date.
903
904 Tue Oct  1 15:00:59 1996  Ian Lance Taylor  <ian@cygnus.com>
905
906         * version.c (print_version): New function.
907         * bucomm.h (print_version): Declare.
908         * ar.c (program_version): Don't declare.
909         (do_show_version): Remove.
910         (usage): Add help parameter.  Print bug report address.
911         (main): Set is_ranlib at start.  Check for --help and --version.
912         Call print_version, not do_show_version.
913         * nlmconv.c (program_version): Don't declare.
914         (main): Call print_version.
915         (show_usage): Print bug report address.
916         * nm.c (program_version, print_version): Don't declare.
917         (usage): Print bug report address.
918         (main): Call print_version.
919         * objcopy.c (program_version): Don't declare.
920         (copy_usage): Print bug report address.
921         (strip_usage): Likewise.
922         (strip_main): Call print_version.
923         (copy_main): Likewise.
924         * objdump.c (program_version): Don't declare.
925         (usage): Print bug report address.
926         (main): Call print_version.
927         * size.c (program_version): Don't declare.
928         (usage): Print bug report address.
929         (main): Call print_version.
930         * strings.c (program_version): Don't declare.
931         (main): Call print_version.
932         (usage): Print bug report address.
933         * Makefile.in: Update dependencies.
934
935 Thu Sep 19 14:53:15 1996  Ian Lance Taylor  <ian@cygnus.com>
936
937         * ieee.c: Revert Monday's reflocalp patch, and apply this patch
938         instead:
939         (write_ieee_debugging_info): Write a dummy type at the end of the
940         global type block.
941
942 Mon Sep 16 15:30:54 1996  Ian Lance Taylor  <ian@cygnus.com>
943
944         * ieee.c (struct ieee_write_type): Add reflocalp field.
945         (ieee_pointer_type): Set reflocalp after pushing type.
946         (ieee_function_type): If reflocalp is set, make this type local.
947         (ieee_range_type, ieee_array_type, ieee_set_type): Likewise.
948         (ieee_const_type, ieee_volatile_type): Likewise.
949         (ieee_struct_field, ieee_class_baseclass): Likewise.
950
951         * ieee.c (struct ieee_info): Add global_types field.
952         (parse_ieee_bb): When starting a BB1, initialize the types field
953         to the global_types field.
954         (parse_ieee_be): When ending a BB2, copy the types field to the
955         global_types field.
956
957 Fri Sep 13 17:32:21 1996  Ian Lance Taylor  <ian@cygnus.com>
958
959         * objcopy.c (change_leading_char): New static variable.
960         (OPTION_CHANGE_LEADING_CHAR): Define.
961         (copy_options): Add "change-leading-char".
962         (copy_usage): Mention --change-leading-char.
963         (filter_symbols): Add obfd parameter.  Change all callers.
964         Implement change_leading_char.
965         (copy_object): Call filter_symbols if change_leading_char.
966         (copy_main): Handle OPTION_CHANGE_LEADING_CHAR.
967         * binutils.texi, objcopy.1: Document --change-leading-char.
968
969 Tue Sep  3 14:05:29 1996  Ian Lance Taylor  <ian@cygnus.com>
970
971         * ieee.c (ieee_enum_type): Don't check index into a NULL names
972         array.
973         * nm.c (sort_symbols_by_size): Always initialize next.
974         * rdcoff.c (parse_coff_type): Warn about an incomprehensible
975         type rather than crashing.
976         * rddbg.c (read_symbol_stabs_debugging_info): Initialize f.
977         * stabs.c (parse_stab_members): Set context in all cases.
978
979 Thu Aug 29 16:56:52 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
980
981         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
982         * configure: Regenerate.
983
984 Thu Aug 29 11:29:20 1996  Ian Lance Taylor  <ian@cygnus.com>
985
986         * objdump.c (L_tmpnam): Never define.
987         (display_target_list): Use choose_temp_base instead of tmpnam.
988         (display_info_table): Likewise.
989
990 Tue Aug 27 18:15:01 1996  Ian Lance Taylor  <ian@cygnus.com>
991
992         * stabs.c (parse_stab): An N_FUN symbol with an empty string
993         indicates the end of a function.
994
995 Thu Aug 22 17:08:00 1996  Ian Lance Taylor  <ian@cygnus.com>
996
997         * wrstabs.c (struct string_hash_entry): Add next field.
998         (struct stab_write_handle): Change strings to a pointer to
999         string_hash_entry.  Add last_strings field.  Remove strings_alloc
1000         field.
1001         (string_hash_newfunc): Initialize next field.
1002         (stab_write_symbol): Copy string into hash table rather than into
1003         buffer.  Keep a list of hash table entries.
1004         (write_stabs_in_sections_debugging_info): Initialize last_string.
1005         Copy strings from list of hash table entries in memory.
1006         (stab_modify_type): If the entry on the stack is a definition,
1007         make a new definition rather than failing an assert.
1008         (stab_array_type): The size is only zero if high is strictly less
1009         than low.
1010
1011         * ieee.c (struct ieee_info): Add saw_filename field.
1012         (parse_ieee): Initialize saw_filename.
1013         (parse_ieee_bb): Set saw_filename for a BB1 or BB2.  In a BB1,
1014         discard the current variables and types.  In a BB10, if no
1015         filename has been seen, call debug_set_filename.
1016         (parse_ieee_ty): In case 'g', the type is optional.
1017
1018         * prdbg.c (pr_fix_visibility): Don't abort on
1019         DEBUG_VISIBILITY_IGNORE.
1020
1021         * debug.c (debug_name_type): Correct error message.
1022
1023         * configure.in: Substitute HLDENV.
1024         * configure: Rebuild.
1025         * Makefile.in (HLDENV): New variable.  Use it whenever linking a
1026         program.
1027
1028 Thu Aug 15 19:30:41 1996  Stan Shebs  <shebs@andros.cygnus.com>
1029
1030         * mpw-make.sed: Add symbolic doublequotes around the version
1031         number.
1032
1033 Thu Aug  8 12:27:52 1996  Klaus Kaempf  <kkaempf@progis.de>
1034
1035         * makefile.vms: Add better support for DEC C compilation.
1036         Add new macros as in Makefile.in.
1037
1038 Wed Aug  7 14:27:33 1996  Philippe De Muyter  <phdm@info.ucl.ac.be>
1039
1040         * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
1041         * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
1042         (NEED_DECLARATION_SBRK): New macro.
1043         * configure, config.in: Rebuild.
1044         * bucomm.h (strstr): Declare if NEED_DECLARATION_STRSTR.
1045         (sbrk): Declare if HAVE_SBRK and NEED_DECLARATION_SBRK.
1046
1047         * prdbg.c (pr_end_struct_type): Avoid using a string constant in
1048         assert, for the benefit of broken assert macros.
1049
1050 Fri Jul 26 14:06:50 1996  Ian Lance Taylor  <ian@cygnus.com>
1051
1052         * objdump.c (disassemble_data): Set disasm_info.flavour from
1053         abfd.
1054
1055 Tue Jul 23 13:59:54 1996  Ian Lance Taylor  <ian@cygnus.com>
1056
1057         * dlltool.c (secdata): In non DLLTOOL_PPC case, change alignment
1058         of .text section to 2.
1059
1060 Mon Jul 22 08:46:15 1996  Stu Grossman  (grossman@lisa.cygnus.com)
1061
1062         * objdump.c (dump_section_stabs):  Fix test for stabs sections
1063         ending with numbers.  This fixes a problem with .stab being
1064         confused with .stab.index.
1065
1066 Wed Jul 10 13:32:28 1996  Ian Lance Taylor  <ian@cygnus.com>
1067
1068         * stabs.c (stab_demangle_fund_type): Return a void * for a
1069         template, rather than simply aborting.
1070
1071 Mon Jul  8 15:28:05 1996  Ian Lance Taylor  <ian@cygnus.com>
1072
1073         * ar.c (open_inarch): Add file parameter.  Change all callers.  If
1074         this is a newly created archive, set the target based on the
1075         file.
1076         * arsup.h (open_inarch): Update declaration.
1077
1078 Thu Jul  4 12:00:55 1996  Ian Lance Taylor  <ian@cygnus.com>
1079
1080         * Makefile.in (VERSION): Set to cygnus-2.7.1.
1081
1082         * Released binutils 2.7.
1083
1084         * rdcoff.c (parse_coff): Get address to pass to debug_end_function
1085         from function size, not value of .ef symbol.  From Ning
1086         Mosberger-Tang <ning@AZStarNet.com>.
1087
1088 Sat Jun 29 21:18:09 1996  Ian Lance Taylor  <ian@cygnus.com>
1089
1090         * objcopy.c (strip_main): Add -o option, and handle it.
1091         (strip_usage): Mention -o.
1092         * binutils.texi, strip.1: Mention -o.
1093
1094 Mon Jun 24 17:19:02 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
1095
1096         * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1097         INSTALL_PROGRAM, INSTALL_DATA): Use autoconf set values.
1098         (docdir): Removed.
1099         * configure.in (AC_PREREQ): Autoconf 2.5 or higher.     
1100
1101 Mon Jun 24 11:59:13 1996  Ian Lance Taylor  <ian@cygnus.com>
1102
1103         * objdump.c (endian): New static variable.
1104         (usage): Mention -EB/-EL/--endian.
1105         (long_options): Add "endian".
1106         (disassemble_data): If endianness was specified, replace
1107         abfd->xvec with a copy of itself with the given endianness.
1108         (main): Handle -EB/-EL/--endian.
1109         * binutils.texi, objdump.1: Mention -EB/-EL/--endian.
1110
1111         * objdump.c: Make most variables and functions static.
1112
1113         * configure.in: On alpha*-*-osf*, link against libbfd.a if not
1114         using shared libraries.
1115         * configure: Rebuild with autoconf 2.10.
1116
1117 Sun Jun 23 14:47:36 1996  Kim Knuttila  <krk@cygnus.com>
1118
1119         * dlltool.c (secdata): Changed .rdata to .reldata so .reloc will work.
1120         (make_one_lib_file): Removed cruft. (#if 1)
1121
1122 Wed Jun 19 14:46:38 1996  Ian Lance Taylor  <ian@cygnus.com>
1123
1124         * objdump.c (stabs): Change from struct internal_nlist * to
1125         bfd_byte *.
1126         (print_section_stabs): Fetch stabs information directly, rather
1127         than assuming that struct internal_nlist is the right size.
1128
1129         * binutils.texi: Document change to binary format: file position
1130         based on load address, not section VMA.
1131
1132         * bucomm.h: Define SEEK_SET, SEEK_CUR, and SEEK_END if they are
1133         not already defined.
1134
1135 Tue Jun 18 18:25:00 1996  Ian Lance Taylor  <ian@cygnus.com>
1136
1137         * Makefile.in (DISTSTUFF): Add deflex.c.
1138
1139 Tue Jun 18 15:03:44 1996  Klaus Kaempf  <kkaempf@progis.de>
1140
1141         * config.h-vms, makefile.vms: New files.
1142
1143 Mon Jun 17 09:47:31 1996  Ian Lance Taylor  <ian@cygnus.com>
1144
1145         * dlltool.c (make_one_lib_file): Use BFD_RELOC_RVA rather than
1146         BFD_RELOC_32 in IDATA7.
1147
1148 Wed Jun 12 11:52:06 1996  Ian Lance Taylor  <ian@cygnus.com>
1149
1150         * nm.c (struct get_relocs_info): Define.
1151         (line_numbers): New static variable.
1152         (long_options): Add "line-numbers".
1153         (usage): Mention -l and --line-numbers.
1154         (main): Handle -l.
1155         (print_symbol): Print line numbers if requested.
1156         (get_relocs): New static function.
1157         * binutils.texi, nm.1: Document -l/--line-numbers.
1158
1159 Tue Jun 11 20:12:15 1996  Ian Lance Taylor  <ian@cygnus.com>
1160
1161         * objdump.c (dump_reloc_set): Add sec parameter.  Change all
1162         callers.  If with_line_numbers is set, display line numbers of
1163         relocation entries.
1164         * binutils.texi, objdump.1: Document -l with -r.
1165
1166 Mon Jun 10 23:42:59 1996  Ian Lance Taylor  <ian@cygnus.com>
1167
1168         * ar.c (open_inarch): Report BFD error message if an archive can
1169         not be recognized.  List matching formats if the file is
1170         ambiguously recognized.
1171         (ranlib_touch): Likewise.
1172
1173 Thu Jun  6 13:56:14 1996  Ian Lance Taylor  <ian@cygnus.com>
1174
1175         * README: Add notes on how to build if you don't have ar.
1176
1177         * Makefile.in: Remove old incorrect setting of CC.
1178
1179 Tue Jun  4 10:52:49 1996  Tom Tromey  <tromey@csk3.cygnus.com>
1180
1181         * Makefile.in (install): Don't check to see if tooldir exists.
1182         Make $(tooldir) and $(tooldir)/bin.
1183
1184 Mon Jun  3 17:40:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
1185
1186         * strings.c (main): Make main an int function, not void.
1187
1188 Fri May 31 13:59:24 1996  Ian Lance Taylor  <ian@cygnus.com>
1189
1190         * nm.c (filter_symbols): Check for BSF_WEAK as well as
1191         BSF_GLOBAL.
1192         * objcopy.c (filter_symbols): Likewise.
1193
1194 Wed May  8 16:57:20 1996  Ian Lance Taylor  <ian@cygnus.com>
1195
1196         * objcopy.c (copy_object): Make clear that it is only a warning
1197         when the output file can not represent the architecture.
1198
1199 Fri May  3 11:30:17 1996  Ian Lance Taylor  <ian@cygnus.com>
1200
1201         * objdump.c (disassemble_data): Don't refer to bytes past the end
1202         of data.
1203
1204 Wed Apr 24 14:10:21 1996  Ian Lance Taylor  <ian@cygnus.com>
1205
1206         * rddbg.c (read_symbol_stabs_debugging_info): Move call to
1207         free_saved_stabs outside the loop over the symbols.
1208
1209 Tue Apr 23 12:56:11 1996  Ian Lance Taylor  <ian@cygnus.com>
1210
1211         * objdump.c (compare_symbols): Sort symbols whose names start with
1212         `.' after other symbols.  If no other decision can be made, sort
1213         symbols by name.
1214
1215 Thu Apr 18 16:02:11 1996  Ian Lance Taylor  <ian@cygnus.com>
1216
1217         * dep-in.sed: Substitute $(BFDDIR) for @BFDDIR@.
1218         * Makefile.in: Rebuild dependencies.
1219         (dep.sed): Substitute $(BFDDIR) for @BFDDIR@.
1220
1221 Tue Apr 16 13:50:22 1996  Ian Lance Taylor  <ian@cygnus.com>
1222
1223         * rdcoff.c: New file.
1224         * rddbg.c (read_debugging_info): Read COFF symbols if COFF flavour
1225         and no stabs were found.
1226         * budbg.h (parse_coff): Declare.
1227         * Makefile.in: Rebuild dependencies.
1228         (CFILES): Add rdcoff.c.
1229         (DEBUG_OBJS): Add rdcoff.o.
1230
1231 Mon Apr 15 15:55:01 1996  Doug Evans  <dje@canuck.cygnus.com>
1232
1233         * nlmconv.c (choose_temp_base{,_try}): Delete, in libiberty now.
1234         (link_inputs): Update call to choose_temp_base.
1235
1236 Mon Apr  8 14:40:05 1996  Ian Lance Taylor  <ian@cygnus.com>
1237
1238         * configure.in: Permit --enable-shared to specify a list of
1239         directories.
1240         * configure: Rebuild.
1241
1242 Fri Mar 29 16:11:33 1996  Ian Lance Taylor  <ian@cygnus.com>
1243
1244         * objdump.c (dump_section_header): Print the SEC_LINK_ONCE flag
1245         and the SEC_LINK_DUPLICATES field.
1246
1247 Fri Mar 29 11:35:55 1996  J.T. Conklin  (jtc@lisa.cygnus.com)
1248
1249         * nlmconv.1: Changed to be recognized by catman -w on Solaris.
1250
1251 Thu Mar 28 14:17:02 1996  Ian Lance Taylor  <ian@cygnus.com>
1252
1253         * wrstabs.c (stab_enum_type): Set buf before using it.
1254
1255 Fri Mar 22 15:49:08 1996  Ian Lance Taylor  <ian@cygnus.com>
1256
1257         * stabs.c (struct stab_handle): Add field abfd.
1258         (start_stab): Add abfd parameter.
1259         (parse_stab_string): Skip the symbol leading char when searching
1260         for the value of a global symbol.
1261         * budbg.h (start_stab): Update declaration.
1262         * rddbg.c (read_section_stabs_debugging_info): Pass abfd to
1263         start_stab.
1264         (read_symbol_stabs_debugging_info): Likewise.
1265
1266 Thu Mar 21 12:40:48 1996  Ian Lance Taylor  <ian@cygnus.com>
1267
1268         * wrstabs.c (stab_function_type): Output an empty typedef for an
1269         unused argument, rather than making up a meaningless name.
1270         (stab_variable): Use N_RSYM for a DEBUG_REGISTER variable.
1271
1272         * ieee.c (struct ieee_info): Add global_vars field.
1273         (parse_ieee_be): When ending the global typedef block, copy the
1274         variables into info->global_vars.
1275         (parse_ieee_atn): Don't require an NN record for a pmisc ATN.
1276         (ieee_read_reference): Search the global variables after the local
1277         variables.
1278
1279 Wed Mar 20 18:08:19 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1280
1281         * objdump.c (disassemble_data): Make sure sym_name is always set.
1282         (dump_section_header): Always put a space after the section name.
1283         (dump_bfd_header): Terminate output with newline.
1284
1285 Wed Mar 20 16:35:20 1996  Ian Lance Taylor  <ian@cygnus.com>
1286
1287         * wrstabs.c: New file.
1288         * budbg.h (write_stabs_in_sections_debugging_info): Declare.
1289         * objcopy.c (write_debugging_info): For COFF or ELF, output stabs
1290         in sections.
1291         * Makefile.in: Rebuild dependencies.
1292         (CFILES): Add wrstabs.c.
1293         (WRITE_DEBUG_OBJS): New variable.
1294         ($(OBJCOPY_PROG)): Use $(WRITE_DEBUG_OBJS), not $(DEBUG_OBJS).
1295         ($(STRIP_PROG)): Likewise.
1296
1297         * stabs.c (parse_stab_members): Make type stub detection more like
1298         gdb.
1299
1300         * ieee.c (struct ieee_handle): Add fields complex_float_index and
1301         complex_double_index.
1302         (ieee_complex_type): Cache type index in complex_float_index and
1303         complex_double_index, depending upon size.  Set size on type stack
1304         to size * 2.
1305
1306         * ieee.c (ieee_empty_type): Use builtin_unknown, not 0.
1307         (ieee_void_type): Use builtin_void, not 1.
1308
1309         * ieee.c (parse_ieee_ty): Handle 'V' type code.
1310         (parse_ieee_atn): Don't require two numbers for type 10.
1311
1312         * ieee.c (parse_ieee_be): Add one to offset at end of function or
1313         block.
1314
1315         * ieee.c (struct ieee_block): Add field skip.
1316         (parse_ieee_bb): Don't call debug_record_function for __XRYCPP
1317         function, and set skip field.
1318         (parse_ieee_be): Don't call debug_end_function if skip is set.
1319
1320         * debug.c (struct debug_handle): Add fields current_write_lineno
1321         and current_write_lineno_index.
1322         (debug_write): Initialize current_write_lineno and
1323         current_write_lineno_index for each unit.  Call
1324         debug_write_linenos rather than writing out the line numbers
1325         directly.
1326         (debug_write_function): Call debug_write_linenos.
1327         (debug_write_block): Likewise.
1328         (debug_write_linenos): New static function.
1329
1330         * debug.c (debug_write_type): For DEBUG_KIND_FUNCTION, push return
1331         type before arguments.
1332
1333 Mon Mar 18 18:05:33 1996  Ian Lance Taylor  <ian@cygnus.com>
1334
1335         * configure.in: Add AC_FUNC_VFORK.
1336         * configure, config.in: Rebuild.
1337         * dlltool.c, nlmconv.c: Include <vfork.h> if HAVE_VFORK_H is
1338         defined.
1339
1340         * stabs.c (parse_stab_range_type): A complex type is defined as a
1341         subrange of itself with the high bound zero.
1342         * ieee.c (ieee_complex_type): Don't crash on sizes of 12 or 16.
1343
1344 Tue Mar 12 12:09:43 1996  Ian Lance Taylor  <ian@cygnus.com>
1345
1346         * ieee.c (ieee_write_undefined_tag): Switch to global_types even
1347         if it is not empty.
1348         (ieee_tag_type): For an enum, look through info->enums.
1349
1350         * configure: Rebuild with autoconf 2.8.
1351
1352         * debug.c (debug_type_samep): Don't loop endlessly in
1353         DEBUG_KIND_ENUM case.  From Eric Baur <ecb@nexen.com>.
1354
1355 Mon Mar 11 12:35:03 1996  Ian Lance Taylor  <ian@cygnus.com>
1356
1357         * rddbg.c (read_section_stabs_debugging_info): Call save_stab for
1358         each stab entry, call stab_context on an error, and call
1359         free_saved_stabs before rturning.
1360         (read_symbol_stabs_debugging_info): Likewise.
1361         (SAVE_STABS_COUNT): Define.
1362         (struct saved_stab): Define.
1363         (saved_stabs, saved_stabs_index): New static variables.
1364         (save_stab, stab_context, free_saved_stabs): New static functios.
1365
1366         * objdump.c (stab_name): Remove.
1367         (struct stab_print): Remove.
1368         (stab_print): Remove.
1369         (dump_stabs): Don't initialize stab_name.
1370         (print_section_stabs): Call bfd_get_stab_name rather than using
1371         the stab_name array.
1372
1373 Tue Feb 27 19:52:01 1996  Ian Lance Taylor  <ian@cygnus.com>
1374
1375         * prdbg.c (pr_int_constant): Initialize info correctly.
1376         (pr_float_constant): Likewise.
1377
1378 Mon Feb 26 18:11:37 1996  Stan Shebs  <shebs@andros.cygnus.com>
1379
1380         * mpw-make.sed: Update to handle shared library support.
1381
1382 Sat Feb 24 11:21:49 1996  Alan Modra  <alan@spri.levels.unisa.edu.au>:
1383
1384         * Makefile.in ($(OBJDUMP_PROG)): Search $(BFDLIB) before
1385         $(OPCODES).
1386
1387 Thu Feb 15 12:44:45 1996  Ian Lance Taylor  <ian@cygnus.com>
1388
1389         * configure.in: Don't tamper with LDFLAGS.  Call AC_PROG_CC before
1390         configure.host.
1391         * configure: Rebuild.
1392
1393         * configure.in: Substitute RPATH_ENVVAR.
1394         * configure: Rebuild.
1395         * Makefile.in (RPATH_ENVVAR): New variable.
1396         (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
1397
1398         * objcopy.c (smart_rename): Rather than doing chmod then chown, do
1399         chmod without setuid, then chown, then chmod with setuid.
1400
1401 Wed Feb 14 16:46:42 1996  Martin Anantharaman  <martin@mail.imech.uni-duisburg.de>
1402
1403         * arsup.c (map_over_list): Reindent.  Don't assume that the
1404         function does not delete the BFD.
1405         (ar_addlib_doer): Don't set prev->next if prev is NULL.
1406
1407 Wed Feb 14 15:12:17 1996  Ian Lance Taylor  <ian@cygnus.com>
1408
1409         * ieee.c (ieee_regno_to_genreg): Convert register numbers for m68k
1410         and i960.
1411         (ieee_genreg_to_regno): Likewise.
1412
1413 Mon Feb 12 14:19:59 1996  Ian Lance Taylor  <ian@cygnus.com>
1414
1415         * ieee.c: Extensive changes to write code to put types in the
1416         global type block when possible, to output ranges for all memory
1417         occupied by the module, and to improve efficiency.
1418
1419         * debug.c (struct debug_handle): Remove class_mark field.  Add
1420         id_list and compare_list fields.
1421         (struct debug_class_id): Define.
1422         (struct debug_type_compare_list): Define.
1423         (debug_write): Initialize info->id_list
1424         (debug_write_name): Remove reference to info->class_mark.
1425         (debug_write_type): Get id for all structs and classes.  Simplify
1426         test for whether struct has already been written.
1427         (debug_write_class_type): Get id for all classes.  Simplify test
1428         for whether class has already been written.
1429         (debug_write_block): Don't write out blocks other than the top
1430         level block if they have no local variables.
1431         (debug_set_class_id): New static function.
1432         (debug_type_samep): New static function.
1433         (debug_class_type_samep): New static function.
1434         * prdbg.c (pr_start_struct_type): Always print id.
1435         (pr_start_class_type): Likewise.
1436         (pr_tag_type): Likewise.
1437
1438         * stabs.c (struct stab_handle): Add syms and symcount fields.
1439         (start_stab): Add syms and symcount parameters.  Change all
1440         callers.
1441         (parse_stab_string): Look up global variables in the symbol table
1442         to get the right value.
1443         * budbg.h (start_stab): Update declaration.
1444         * rddbg.c (read_section_stabs_debugging_info): Add syms and
1445         symcount parameters.  Change all callers.
1446
1447         * stabs.c (parse_stab_array_type): If the index type is 0, use
1448         int.
1449
1450 Wed Feb  7 14:17:45 1996  Ian Lance Taylor  <ian@cygnus.com>
1451
1452         * ieee.c (ieee_start_compilation_unit): Clear modified and
1453         modified_alloc fields of info.
1454
1455         * configure.in: Check for --enable-shared.  Substitute new
1456         variables BFDLIB and OPCODES.
1457         * configure: Rebuild.
1458         * Makefile.in (BFDLIB): Set to @BFDLIB@.
1459         (OPCODES): Set to @OPCODES@.
1460
1461 Mon Feb  5 16:18:42 1996  Ian Lance Taylor  <ian@cygnus.com>
1462
1463         Support for building bfd and opcodes as shared libraries, based on
1464         patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
1465         * configure.in (HLDFLAGS): New substitution.
1466         * configure: Rebuild.
1467         * Makefile.in (HLDFLAGS): New variable.  Make all links use
1468         $(HLDFLAGS) before $(CFLAGS) and $(LDFLAGS).
1469         (BFDLIB_DEP): New variable.  Replace all occurrences of $(BFD) as
1470         a dependency with $(BFDLIB_DEP).  Remove $(BFD) as a dependency if
1471         there is also a dependency on $(ADDL_DEPS).
1472         (BFDLIB): Rename from BFD; change all uses; set to -L../bfd -lbfd.
1473         (OPCODES_DEP): New variable.  Replace all occurrends of $(OPCODES)
1474         as a dependency with $(OPCODES_DEP).
1475         (OPCODES): Set to -L../opcodes -lopcodes.
1476         (ADDL_DEPS): New variable.  Replace all occurrences of
1477         $(ADDL_LIBS) as a dependency with $(ADDL_DEPS).
1478         (check): Set LD_LIBRARY_PATH in the environment.
1479         (config.status): Depend upon BFD configure.host and config.bfd.
1480
1481 Fri Feb  2 17:02:59 1996  Doug Evans  <dje@charmed.cygnus.com>
1482
1483         * objdump.c: #include stdarg.h or varargs.h.
1484         (objdump_print_value): Change FILE* arg to struct disassemble_info*.
1485         All callers updated.  Use fprintf_func.
1486         (objdump_print_address): Consistently use fprintf_func.
1487         (objdump_sprintf): New function.
1488         (disassemble_data): Print insn into a buffer, print raw insn ourselves,
1489         then print insn mnemonic.
1490
1491 Fri Feb  2 16:48:55 1996  Ian Lance Taylor  <ian@cygnus.com>
1492
1493         * configure: Regenerate.
1494
1495 Thu Feb  1 09:38:18 1996  Steve Chamberlain  <sac@slash.cygnus.com>
1496
1497         * configure.in (i[3-6]86-*-win32): Becomes i[3-6]86-*-cygwin32.
1498         (powerpc*-*-cygwin32): New.
1499         * configure: Regenerated.
1500
1501 Wed Jan 31 13:22:03 1996  Richard Henderson  <rth@tamu.edu>
1502
1503         * Makefile.in (distclean): Remove $(DEMANGLER_PROG).1.
1504
1505 Mon Jan 29 17:36:29 1996  Ian Lance Taylor  <ian@cygnus.com>
1506
1507         Based on patches from H J Lu <hjl@zoom.com>:
1508         * objcopy.c (remove_leading_char): New static variable.
1509         (OPTION_REMOVE_LEADING_CHAR): Define.
1510         (copy_usage): Mention --remove-leading-char.
1511         (filter_symbols): If remove_leading_char, and the first character
1512         of a global symbol matches the symbol leading char of the BFD,
1513         remove the first character.
1514         (copy_object): Filter the symbols if remove_leading_char is set.
1515         (copy_main): Handle --remove-leading-char.
1516         * binutils.texi, objcopy.1: Document --remove-leading-char.
1517
1518 Sat Jan 27 15:40:13 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
1519
1520         * objdump.c (fprintf): Add prototype to avoid compiler warning on
1521         SunOS.
1522
1523 Fri Jan 26 11:53:42 1996  Ian Lance Taylor  <ian@cygnus.com>
1524
1525         * binutils.texi (nm): Improve documentation on symbol types.
1526         (objdump): Reference the stabs manual from the discussion of the
1527         --stabs option.
1528
1529 Thu Jan 25 11:21:46 1996  Raymond Jou  <rjou@mexican.cygnus.com>
1530
1531         * mpw-make.sed: Add a "stamps" target.
1532
1533 Thu Jan 25 13:51:44 1996  Ian Lance Taylor  <ian@cygnus.com>
1534
1535         * objdump.c (dump_headers, dump_section_header): Change objdump -h
1536         output to be simpler and to include section file offsets.
1537
1538 Wed Jan 24 12:06:05 1996  Ian Lance Taylor  <ian@cygnus.com>
1539
1540         * stabs.c (parse_stab_members): Don't adjust voffset.
1541
1542         * ieee.c (ieee_read_cxx_class): Don't multiply voffset by 4.
1543         (struct ieee_write_type): Add name field.
1544         (struct ieee_type_class): Remove name field.  Change all uses to
1545         use new name field in type instead.
1546         (struct ieee_name_type): Likewise.
1547         (ieee_start_struct_type): Initialize name field of type.
1548         (ieee_start_class_type): Don't initialize classdef entry of tag.
1549         (ieee_class_method_var): Don't adjust voffset.
1550         (ieee_end_class_type): Likewise.
1551         (ieee_tag_type): Initialize new name field of type.
1552         (ieee_typdef): Set name after copying in type information.
1553
1554         * debug.c (VOFFSET_STATIC_METHOD): Define as -1, not 1.
1555
1556         * ieee.c (struct ieee_modified_type): Define.
1557         (struct ieee_handle): Add modified and modified_alloc fields.
1558         (ieee_get_modified_info): New static function.
1559         (ieee_pointer_type): Cache type index.
1560         (ieee_const_type): Likewise.
1561         (ieee_volatile_type): Likewise.
1562
1563         * ieee.c (ieee_define_named_type): When creating a tag for an
1564         anonymous struct, copy the name into memory.
1565         (ieee_tag_type): Likewise.
1566         * debug.c (debug_write_type): Only check and set id field for an
1567         unnamed object.
1568         (debug_write_class_type): Likewise.
1569
1570         * ieee.c: Various changes to write out types for functions and
1571         references, and to not write out unnecessary function types.
1572
1573         * ieee.c (struct ieee_var): Remove variable field.  Add kind
1574         field, and define some enum constants for it.
1575         (parse_ieee_ty): Set kind field of variable for 'x' and 'X' types.
1576         (parse_ieee_atn): Make an indirect slot for an external variable,
1577         although we otherwise don't record it.  Set kind field rather than
1578         variable field of pvar.
1579         (ieee_read_cxx_class): Try to get the type of a static member.
1580         (ieee_read_reference): Check kind field rather than variable
1581         field.
1582
1583 Tue Jan 23 15:54:18 1996  Ian Lance Taylor  <ian@cygnus.com>
1584
1585         * ieee.c: Various changes to handle reading C++ reference type
1586         information.
1587
1588         * debug.h (enum debug_var_kind): Add DEBUG_VAR_ILLEGAL.
1589         (enum debug_parm_kind): Add DEBUG_PARM_ILLEGAL.
1590         * debug.c (debug_get_parameter_types): Handle DEBUG_KIND_FUNCTION.
1591
1592         * ieee.c: Various changes to write out definitions of C++ classes.
1593
1594         * debug.c (debug_append_filename): Remove.
1595         * debug.h (debug_append_filename): Don't declare.
1596
1597         * stabs.c (struct stab_handle): Remove last_type field.  Add
1598         so_string and so_value fields.
1599         (finish_stab): Call stab_emit_pending_vars before calling
1600         debug_end_function.  Don't warn about pending variables.
1601         (parse_stab): Accumulate N_SO strings until a non N_SO symbol is
1602         seen, rather than calling debug_append_filename.  Call
1603         stab_emit_pending_vars before calling debug_end_function.  Don't
1604         set info->last_type.
1605
1606 Tue Jan 23 09:53:54 1996  Doug Evans  <dje@charmed.cygnus.com>
1607
1608         * objdump.c (disassemble_data): Handle unknown endianness.
1609         Pass fprintf to INIT_DISASSEMBLE_INFO.
1610
1611 Mon Jan 22 16:46:43 1996  Doug Evans  <dje@charmed.cygnus.com>
1612
1613         Add new option --show-raw-insn.
1614         * objdump.c (show_raw_insn): New global.
1615         (usage): Update.
1616         (long_options): Update.
1617         (disassemble_data): Set disasm_info.flags if --show-raw-insn.
1618
1619         * objdump.c (disassemble_data): Set new arch,mach,endian fields in
1620         disasm_info.
1621
1622 Mon Jan 22 19:29:36 1996  Ian Lance Taylor  <ian@cygnus.com>
1623
1624         * ieee.c: Extensive changes to pass a single info argument around
1625         in the reading routines, rather than several arguments.  Add code
1626         to read C++ debugging records.
1627
1628         * debug.h (debug_get_type_size): Declare.
1629         (debug_get_field_name): Declare.
1630         (debug_get_field_bitpos): Declare.
1631         (debug_get_field_bitsize): Declare.
1632         (debug_get_field_visibility): Declare.
1633         (debug_get_field_physname): Declare.
1634         * debug.c (debug_get_real_type): Handle DEBUG_KIND_TAGGED.
1635         (debug_get_type_size): New function.
1636         (debug_get_field_name): New function.
1637         (debug_get_field_bitpos): New function.
1638         (debug_get_field_bitsize): New function.
1639         (debug_get_field_visibility): New function.
1640         (debug_get_field_physname): New function.
1641         (debug_write_type): Make sure we pass the real kind, not INDIRECT,
1642         to tag_type.  Pass the name recursively for INDIRECT.
1643
1644 Fri Jan 19 12:31:57 1996  Ian Lance Taylor  <ian@cygnus.com>
1645
1646         * debug.h (struct debug_write_fns): Remove ellipsis_type.  Add int
1647         and boolean parameters to function_type.  Add boolean parameter to
1648         method_type.
1649         (debug_make_ellipsis_type): Don't declare.
1650         (debug_make_function_type): Add debug_type * and boolean
1651         parameters.  Change all callers.
1652         (debug_make_method_type): Add boolean parameter.  Change all
1653         callers.
1654         (debug_get_parameter_types): Add boolean * parameter.  Change all
1655         callers.
1656         (debug_get_target_type): Declare.
1657         * debug.c (struct debug_function_type): Add fields arg_types and
1658         varargs.
1659         (struct debug_method_type): Add field varargs.
1660         (debug_ellipsis_type, ELLIPSIS_P): Remove.
1661         (debug_make_ellipsis_type): Remove.
1662         (debug_make_function_type): Add arg_types and varargs parameters.
1663         (debug_make_method_type): Add varargs parameter.
1664         (debug_get_parameter_types): Add pvarargs parameter.
1665         (debug_get_target_type): New function.
1666         (debug_write_type): In case DEBUG_KIND_FUNCTION, push argument
1667         types and pass count to function_type.  In DEBUG_KIND_METHOD, use
1668         a signed int for the count, don't call ellipsis_type, and pass
1669         varargs to method_type.
1670         * stabs.c (struct stab_demangle_info): Add varargs field.
1671         (stab_demangle_argtypes): Add pvarargs parameter.  Change all
1672         callers.
1673         (stab_demangle_args): Likewise.
1674         (stab_demangle_type): In case 'F', pick up argument types.
1675         * prdbg.c (pr_ellipsis_type): Remove.
1676         (pr_function_type): Add argcount and varargs parameters.
1677         (pr_method_type): Add varargs parameter.
1678         * ieee.c (ieee_ellipsis_type): Remove.
1679         (ieee_function_type): Add argcount and varargs parameters.
1680         (ieee_method_type): Add varargs parameter.  Remove most of
1681         function body, and just call ieee_function_type.
1682
1683         * stabs.c: Include "demangle.h".  Added several new static
1684         functions not listed below to demangle argument types; they are
1685         all called via stab_demangle_argtypes.
1686         (finish_stab): If the kind of an undefined tag is
1687         DEBUG_KIND_ILLEGAL, use DEBUG_KIND_STRUCT instead.  Warn if there
1688         are any pending variable.
1689         (parse_stab): Don't close the function when the block depth goes
1690         to zero.  Pass value to debug_end_function.
1691         (parse_stab_string): In case 'T', pass the name to
1692         parse_stab_type.
1693         (parse_stab_type): In case 'x', use stab_find_tagged_type.  In
1694         case '#', handle functions with variable numbers of arguments.
1695         (parse_stab_struct_type): Add tagname parameter.  Change all
1696         callers.
1697         (parse_stab_members): Add tagname and typenums parameters.  Change
1698         all callers.  If the type of a method is a stub, call
1699         parse_stab_argtypes to demangle the argument types and get the
1700         physical name of the function.
1701         (parse_stab_argtypes): New static function.
1702         (stab_record_variable): For a DEBUG_GLOBAL or DEBUG_STATIC
1703         variable, call debug_record_variable immediately.
1704         (stab_find_tagged_type): New static function.
1705
1706         * debug.h (enum debug_type_kind): Add DEBUG_KIND_ILLEGAL.
1707         (struct debug_write_fns): Add field ellipsis_type.  Add id
1708         parameter to start_struct_type, start_class_type, and tag_type.
1709         (debug_make_ellipsis_type): Declare.
1710         (debug_find_named_type): Declare.
1711         (debug_get_type_kind): Declare.
1712         (debug_get_return_type): Declare.
1713         (debug_get_parameter_types): Declare.
1714         (debug_get_fields): Declare.
1715         (debug_get_field_type): Declare.
1716         * debug.c (struct debug_handle): Add fields class_id and base_id.
1717         (struct debug_class_type): Add field id.
1718         (struct debug_method_variant): Rename argtypes to physname.
1719         Change all uses.
1720         (debug_ellipsis_type): New static variable.
1721         (ELLIPSIS_P): New macro.
1722         (debug_make_ellipsis_type): New function.
1723         (debug_make_method_variant): Rename argtypes to physname.
1724         (debug_make_static_method_variant): Likewise.
1725         (debug_name_type): Always put types in the global namespace.
1726         (debug_find_named_type): New function.
1727         (debug_find_tagged_type): Treat DEBUG_KIND_ILLEGAL specially,
1728         rather than DEBUG_KIND_VOID.
1729         (debug_get_real_type): New static function.
1730         (debug_get_type_kind): New function.
1731         (debug_get_return_type): New function.
1732         (debug_get_parameter_types): New function.
1733         (debug_get_fields): New function.
1734         (debug_get_field_type): New function.
1735         (debug_write): Initialize base_id.
1736         (debug_write_type): Pass new id argument to tag_type.  Handle
1737         DEBUG_KIND_ILLEGAL.  Use id for DEBUG_KIND_STRUCT and
1738         DEBUG_KIND_UNION.  Handle ellipsis for method arguments.
1739         (debug_write_class_type): Don't dereference kclass if it is NULL.
1740         Use id.
1741         * prdbg.c (pr_fns): Add pr_ellipsis_type.
1742         (pr_ellipsis_type): New static function.
1743         (pr_pointer_type): If this is a pointer to an array, parenthesize
1744         it correctly.
1745         (pr_start_struct_type): Add id parameter.
1746         (pr_start_class_type): Likewise.
1747         (pr_tag_type): Likewise.
1748         (pr_fix_visibility): Add the visibility to the top of the stack,
1749         not the second element on the stack.
1750         (pr_struct_field): Pop the stack before calling pr_fix_visibility.
1751         (pr_class_static_member): Likewise.
1752         (pr_class_start_method): Don't push a type, just set the method
1753         name in the type on the top of the stack.
1754         (pr_class_end_method): Don't pop the stack.
1755         (pr_class_method_variant): Rename argtypes parameter to physname.
1756         Append const and volatile rather than prepending them.  Add a
1757         space after the physname.
1758         (pr_class_static_method_variant): Likewise.
1759         * ieee.c (ieee_fns): Add ieee_ellipsis_type.
1760         (ieee_define_named_type): Use DEBUG_KIND_ILLEGAL rather than
1761         DEBUG_KIND_VOID.
1762         (write_ieee_debugging_info): Likewise.
1763         (ieee_typdef): Likewise.
1764         (ieee_ellipsis_type): New static function.
1765         (ieee_start_struct_type): Add id parameter.
1766         (ieee_start_class_type): Likewise.
1767         (ieee_tag_type): Likewise.
1768         (ieee_class_method_variant): Rename name to physname.
1769         (ieee_class_static_method_variant): Likewise.
1770
1771         * Makefile.in (DEBUG_OBJS): Remove prdbg.o.
1772         ($(OBJDUMP_PROG)): Depend upon, and link against, prdbg.o.
1773
1774 Thu Jan 18 17:35:06 1996  Kim Knuttila  <krk@cygnus.com>
1775
1776         * dlltool.c (make_tail): Changed the order of the sections to avoid
1777         an alignment problem.
1778
1779 Wed Jan 17 14:23:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
1780
1781         * srconv.c (wr_du): Set du.stackfrmt to 0.
1782         (wr_un, wr_sc): Emit all sections, even those with 0 size.
1783
1784 Tue Jan 16 16:15:49 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
1785
1786         * srconv.c (wr_hd): Space size within segment was being
1787         stored in segment identifier field.
1788
1789 Tue Jan 16 12:07:25 1996  Stan Shebs  <shebs@andros.cygnus.com>
1790
1791         * mpw-config.in (BUILD_NLMCONV, BUILD_SRCONV, SYSINFO_PROG,
1792         BUILD_DLLTOOL): Put definitions for these into makefile when
1793         configuring, instead of always clearing in mpw-make.sed.
1794         * mpw-make.sed: Edit out any host_alias or target_alias settings,
1795         fix pathname to BFD internal include files, remove dependency
1796         calculation rules.
1797
1798 Thu Jan 11 17:31:38 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
1799
1800         * objdump.c (dump_section_header): Add new section flags
1801         SEC_{EXCLUDE,SORT_ENTRIES}.
1802
1803 Thu Jan 11 11:45:34 1996  Ian Lance Taylor  <ian@cygnus.com>
1804
1805         * objcopy.c (filter_symbols): NULL terminate the output symbols.
1806         (copy_object): Allocate space for a possible extra NULL pointer.
1807
1808         * debug.c (debug_make_undefined_tagged_type): Make sure we are
1809         given a kind of type we can handle.
1810         (debug_write_type): Handle undefined enums and structs.
1811         (debug_write_class_type): Handle undefined classes.
1812         * prdbg.c (pr_enum_type): Handle an undefined enum.
1813         * ieee.c (ieee_enum_type): Likewise.
1814
1815 Wed Jan 10 15:33:18 1996  Ian Lance Taylor  <ian@cygnus.com>
1816
1817         * Makefile.in: Updated dependencies.
1818         (ALLOCA, MALLOC): Remove variables.
1819         (ADDL_LIBS): Remove $(MALLOC) from definition.
1820         * alloca.c, gmalloc.c: Remove.
1821
1822 Mon Jan  8 18:02:29 1996  Ian Lance Taylor  <ian@cygnus.com>
1823
1824         * ieee.c: Add global function write_ieee_debugging_info and a
1825         bunch of static functions and structs used to write out IEEE
1826         debugging information.
1827         * budbg.h (write_ieee_debugging_info): Declare.
1828
1829         * ieee.c (struct ieee_type): Add pslot field.
1830         (enum builtin_types): Define.
1831         (ieee_builtin_type): For a pointer, return a pointer to the named
1832         type.  Use enum values rather than numbers.
1833         (ieee_alloc_type): New static function.
1834         (ieee_read_type_index): Use ieee_alloc_type.
1835         (parse_ieee_bb): Likewise.
1836         (parse_ieee_ty): Likewise.  Use ieee_builtin_type for array range,
1837         rather than making a new integer type.  Store the new type in the
1838         slot, if there is one.
1839         (parse_ieee_atn): Treat ATN10 as defining a register variable.
1840         (ieee_regno_to_genreg): Rename from ieee_regno_to_gen.  Change all
1841         callers.
1842         (ieee_genreg_to_regno): New static function.
1843
1844         * stabs.c (parse_stab_type): Add new typename parameter.  Change
1845         all callers.
1846         (parse_stab_range_type): Add new typename parameter.  Change all
1847         callers.
1848
1849         * debug.h (struct debug_write_fns): Add tag parameter to
1850         enum_type, start_struct_type, and start_class_type.
1851         * debug.c (debug_write_type): Pass any tag name to
1852         start_struct_type, debug_write_class_type, and enum_type.  If
1853         DEBUG_KIND_TAGGED, pass the name in the recursive call.
1854         (debug_write_class_type): Accept a new tag parameter, and pass it
1855         to start_class_type.
1856         * prdbg.c (pop_type): Don't remove '+' character.
1857         (pr_enum_type): Accept and use tag parameter.
1858         (pr_start_struct_type): Likewise.
1859         (pr_start_class_type): Likewise.
1860         (pr_class_baseclass): Adjust algorithm used to find where to put
1861         the baseclass name.
1862         (pr_tag): Don't bother to insert the tag name.
1863
1864         * objcopy.c: Include budbg.h.
1865         (convert_debugging): New static variable.
1866         (OPTION_DEBUGGING): Define.
1867         (copy_options): Add "debugging".
1868         (copy_usage): Mention --debugging.
1869         (is_strip_section): Skip debugging sections if convert_debugging.
1870         (setup_section, copy_section): Likewise.
1871         (filter_symbols): Skip debugging symbols if convert_debugging.
1872         (copy_object): If convert_debugging, read and write debugging
1873         information.
1874         (write_debugging_info): New static function.
1875         (copy_main): Handle --debugging.
1876         * Makefile.in (DEBUG_OBJS): New variable.
1877         ($(OBJCOPY_PROG)): Depend upon and link against $(DEBUG_OBJS).
1878         ($(STRIP_PROG)): Likewise.
1879         (OBJDUMP_OBJS): Remove variable.
1880         ($(OBJDUMP_PROG)): Use objdump.o $(DEBUG_OBJS) rather than
1881         $(OBJDUMP_OBJS).
1882         * binutils.texi, objcopy.1: Document --debugging.
1883
1884 Thu Jan  4 16:31:21 1996  Ian Lance Taylor  <ian@cygnus.com>
1885
1886         * ieee.c: New file with code to read IEEE debugging information.
1887         * budbg.h (parse_ieee): Declare.
1888         * rddbg.c (read_debugging_info): Handle IEEE flavour files.
1889         (read_ieee_debugging_info): New static function.
1890         * Makefile.in: Rebuild dependencies.
1891         (CFILES): Add ieee.c.
1892         (OBJDUMP_OBJS): Add ieee.o.
1893
1894         * bucomm.h (xrealloc): Change type of first parameter from char *
1895         to PTR.
1896
1897 Tue Jan  2 17:44:07 1996  Ian Lance Taylor  <ian@cygnus.com>
1898
1899         * Makefile.in: Add targets to automatically rebuild dependencies.
1900         Remove targets which just listed dependencies of .o files.
1901         (DEP): New variable.
1902         (HFILES, GENERATED_HFILES): New variables.
1903         (CFILES, GENERATED_CFILES): New variables.
1904         (underscore.c): Don't do anything, just depend upon stamp-under.
1905         (stamp-under): New target; do what underscore.c used to do.
1906         (nlmconv.o): Depend upon sym.h and ecoff.h.
1907         (.dep, .dep1, dep.sed, dep, dep-in): New targets.
1908         (stage1, stage2, stage3, against, comparison): Remove.
1909         (de-stage1, de-stage2, de-stage3): Remove.
1910         (clean, distclean): Remove stamp-under and dep.sed.
1911         * dep-in.sed: New file.
1912
1913         Implement generic debugging support.  Implement a stabs reader and
1914         a generic printer.
1915         * budbg.h, debug.c, debug.h, prdbg.c, rddbg.c, stabs.c: New files.
1916         * objdump.c: Include "debug.h" and "budbg.h".
1917         (dump_debugging): New global variable.
1918         (usage): Mention --debugging.
1919         (long_options): Add "debugging".
1920         (display_bfd): Handle --debugging.
1921         * Makefile.in (OBJDUMP_OBJS): New variable.
1922         ($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
1923         * binutils.texi, objdump.1: Document --debugging.
1924
1925 Sat Dec 30 09:59:51 1995  Jeffrey A Law  (law@cygnus.com)
1926
1927         * nm.c ( long_options): Add "--defined-only" option.
1928         (usage): Update for new "--defined-only" option.
1929         (filter_symbols): Handle "--defined-only".
1930
1931 Fri Dec 29 16:04:56 1995  Ian Lance Taylor  <ian@cygnus.com>
1932
1933         * arparse.y: Include "bucomm.h", not <sysdep.h>.
1934         * nlmheader.y: Don't include "sysdep.h".
1935
1936 Tue Dec 26 18:23:18 1995  Ian Lance Taylor  <ian@cygnus.com>
1937
1938         * nm.c (print_symdef_entry): Check return value of
1939         bfd_get_elt_at_index.
1940
1941 Sat Dec 23 11:03:16 1995  Michael Meissner  <meissner@tiktok.cgynsu.com>
1942
1943         * configure.in (DLLTOOL_DEFS): Build dlltool for PowerPC if target
1944         is powerpc*-*-win* in addition to powerpc*-*-*pe*.
1945
1946 Fri Dec 15 16:30:57 1995  Ian Lance Taylor  <ian@cygnus.com>
1947
1948         * objdump.c (endian_string): New static function.
1949         (display_target_list): Use it.
1950         * nlmconv.c (main): Use new bfd_big_endian macro.
1951
1952 Fri Dec 15 07:51:34 1995  steve chamberlain  <sac@slash.cygnus.com>
1953
1954         * dlltool.c (fill_ordinals): Start from 1 if no other instructions
1955         given.
1956
1957 Tue Dec 12 12:05:21 1995  Ian Lance Taylor  <ian@cygnus.com>
1958
1959         * Makefile.in (clean): Remove $(DEMANGLER_PROG).1.  From Ronald
1960         F. Guilmette <rfg@monkeys.com>.
1961
1962 Mon Dec 11 14:33:05 1995  Stan Shebs  <shebs@andros.cygnus.com>
1963
1964         * mac-binutils.r: Fix copyright and version strings.
1965
1966         * Makefile.in (version): Remove, no longer used.
1967
1968 Fri Dec  1 14:41:56 1995  Stan Shebs  <shebs@andros.cygnus.com>
1969
1970         * mpw-make.sed (install, install-only): Edit in Mac-specific
1971         install procedure.
1972
1973 Thu Nov 30 20:26:02 1995  Kim Knuttila  <krk@cygnus.com>
1974
1975         * dlltool.c (ppc_jtab): The binary glue for PowerPC dll linkage,
1976         including the return instruction.
1977         sinfo: added a preferred alignment field.
1978         (secdata): section data for the PowerPC version.
1979         (make_one_lib_file): More symbols, More sections (pdata, rdata)
1980         (make_tail): Use idata$6 instead of idata$7 for ppc. Also added a 
1981         NULL idata$3 descriptor (temporary).
1982
1983 Tue Nov 28 17:23:44 1995  Doug Evans  <dje@canuck.cygnus.com>
1984
1985         * dlltool.c (fill_ordinals): Don't reference d_export_vec if
1986         there are no exported functions.
1987
1988 Mon Nov 27 13:05:59 1995  Ian Lance Taylor  <ian@cygnus.com>
1989
1990         * configure: Regenerate with autoconf 2.7.
1991
1992 Wed Nov 22 13:17:15 1995  Ian Lance Taylor  <ian@cygnus.com>
1993
1994         * dlltool.c (fill_ordinals): Start assigning ordinals at 1.
1995
1996         * Makefile.in (EXPECT): Use $$r, not $${rootme}.
1997         (check): Set r, not rootme.
1998
1999 Tue Nov 21 18:04:09 1995  Ian Lance Taylor  <ian@cygnus.com>
2000
2001         * configure.in: Use BFD_NEED_DECLARATION.
2002         * acconfig.h: Put NEED_DECLARATION_FPRINTF in @TOP@ section.
2003         * configure, config.in: Rebuild with autoconf 2.6.
2004
2005 Fri Nov 17 10:34:37 1995  Ian Lance Taylor  <ian@cygnus.com>
2006
2007         * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
2008         $(host_canonical) and $(target_canonical).
2009
2010 Thu Nov 16 03:39:20 1995  Ken Raeburn  <raeburn@cygnus.com>
2011
2012         Version 2.6 released.
2013         * Makefile.in (VERSION): Update to 2.6.
2014
2015 Wed Nov 15 12:14:17 1995  Ian Lance Taylor  <ian@cygnus.com>
2016
2017         * Makefile.in (CC_FOR_TARGET): Define.
2018         (check): Pass CC and CFLAGS to runtest.
2019
2020         * nm.c (display_rel_file): Don't require a DYNAMIC object when
2021         dumping the dynamic symbol table.
2022
2023         * objdump.c (compare_symbols): Sort global symbols before local
2024         symbols before debugging symbols.
2025         (objdump_print_address): Don't futz around looking for a global
2026         symbol with the same value.
2027
2028 Tue Nov 14 17:19:11 1995  Ian Lance Taylor  <ian@cygnus.com>
2029
2030         * dlltool.c: Use FOPEN_* macros rather than "r" or "w".
2031
2032         * dlltool.c (fill_ordinals): Correct memset call.
2033
2034 Sun Nov 12 12:56:05 1995  Stan Shebs  <shebs@andros.cygnus.com>
2035
2036         * mpw-make.sed (DEMANGLER_PROG): Edit out attempts to do anything
2037         with the man page.
2038
2039 Fri Nov 10 11:41:22 1995  Ian Lance Taylor  <ian@cygnus.com>
2040
2041         * objcopy.c (setup_section): Copy the section lma independently of
2042         the vma.
2043
2044 Wed Nov  8 11:33:00 1995  Ian Lance Taylor  <ian@cygnus.com>
2045
2046         * arsup.c (ar_open): Cast malloc return value.
2047
2048 Tue Nov  7 09:01:26 1995  Kim Knuttila  <krk@cygnus.com>
2049
2050         * configure.in, configure (DLLTOOL_DEFS): Added ppc target.
2051         * dlltool.c (MPPC): Added basic PPC definitions.
2052
2053 Tue Nov  7 14:02:57 1995  Ian Lance Taylor  <ian@cygnus.com>
2054
2055         * configure.in: Don't treat rs6000-*-lynx* specially.
2056         * configure: Rebuild.
2057         * config/rslynx: Remove.
2058         * Makefile.in: Remove @target_makefile_fragment@.
2059
2060 Mon Nov  6 15:00:50 1995  Ian Lance Taylor  <ian@cygnus.com>
2061
2062         * bucomm.h: Include <sys/types.h>.
2063         * ar.c: Don't include <sys/types.h> or <stdio.h>.
2064         * bucomm.c, dlltool.c, nlmconv.c, objcopy.c, objdump.c: Likewise.
2065
2066 Fri Nov  3 12:38:09 1995  Ian Lance Taylor  <ian@cygnus.com>
2067
2068         * objdump.c: Include <sys/types.h>.
2069
2070         Permit user to override DEMANGLER_PROG from command line.  From
2071         Manfred Hollstein <manfred@lts.sel.alcatel.de>.
2072         * Makefile.in ($(DEMANGLER_PROG)): Depend upon
2073         $(DEMANGLER_PROG).1.
2074         (install): Don't depend upon $(DEMANGLER_PROG).1.  Only install
2075         $(DEMANGLER_PROG).1 if $(DEMANGLER_PROG) is not empty.
2076
2077 Wed Nov  1 15:04:57 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>
2078
2079         * Makefile.in (syslex.o): add -I$(srcdir) if compiling in a
2080         separate directory.
2081
2082 Mon Oct 30 14:24:18 1995  Ian Lance Taylor  <ian@cygnus.com>
2083
2084         * objdump.c (objdump_print_value): New static function.
2085         (objdump_print_address): Use it.  If we need the right section for
2086         the symbol, and we can't find it, print an offset from the section
2087         rather than using a symbol from some other section.
2088
2089 Thu Oct 26 10:23:14 1995  steve chamberlain  <sac@slash.cygnus.com>
2090
2091         * dlltool.c (no_idata4, no_idata5): New.
2092         (arm_jtab): Use correct encoding of jump instruction.
2093         (usage, main, make_head, make_tail): Act on no_idata4, no_idata5.
2094
2095 Wed Oct 25 12:10:07 1995  Stan Shebs  <shebs@andros.cygnus.com>
2096
2097         * mpw-make.sed: Edit paths to generated y.tab.[ch] files.
2098
2099 Fri Oct 20 18:40:34 1995  Ian Lance Taylor  <ian@cygnus.com>
2100
2101         * binutils.texi: Change --with-targets to --enable-targets.
2102
2103 Thu Oct 19 17:47:41 1995  Fred Fish  <fnf@cygnus.com>
2104
2105         * Makefile.in:  Remove extraneous tab on otherwise empty line,
2106         which confuses many non-GNU versions of "make".
2107
2108 Wed Oct 18 16:31:58 1995  steve chamberlain  <sac@slash.cygnus.com>
2109
2110         * dlltool.c (i386_jtab, arm_jtab): New
2111         (gen_lib_file): Rewritten to use bfd.
2112
2113 Fri Oct 13 16:10:07 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
2114
2115         * Makefile.in (install): Don't give error message if dlltool
2116         wasn't built.
2117
2118 Fri Oct 13 11:04:37 1995  steve chamberlain  <sac@slash.cygnus.com>
2119
2120         * deflex.l: Allow quoting of IDs.
2121         * defparse.y (%union): string deleted.
2122         (command): DESCRIPTION takes ID.
2123         * dlltool.c (gen_def_file): Quote outgoing name if
2124         necessary.  Preserve NONAME.
2125         (gen_lib_file): Run ranlib.
2126         (workout_prefix): Deleted.
2127         (main, usage, long_options): Add --as, --ranlib, --ar options.
2128
2129 Wed Oct 11 13:36:13 1995  steve chamberlain  <sac@slash.cygnus.com>
2130
2131         * dlltool.c (mtable): HOW_ALIGN_LONG, new.
2132         (d_ord): Deleted.
2133         (d_low_ord, d_high_ord, d_named_funcs): New.
2134         (gen_exp_file): Create noname entries correctly.
2135         (gen_lib_file): Dump exports alphabetically.
2136         (process_duplicates):  Count nonamed functions.
2137         (fill_ordinals): Keep track of highest ord too.
2138         (mangle_defs): Create alphabetically ordered list of names.
2139
2140 Tue Oct 10 09:39:09 1995  steve chamberlain  <sac@slash.cygnus.com>
2141
2142         * Makefile.in (TOOL_PROGS): Include DLLTOOL_PROG.
2143
2144 Mon Oct  9 13:06:31 1995  steve chamberlain  <sac@slash.cygnus.com>
2145
2146         * dlltool.c (add_underscore): New.
2147         (xlate): Use new name.
2148         (main, usage): Update.
2149
2150 Fri Oct  6 14:08:51 1995  Ken Raeburn  <raeburn@cygnus.com>
2151
2152         * sysinfo.y: Eliminate unused terminals "[" and "]" and unused
2153         nonterminal "name".  One s/r conflict remains.
2154
2155         Mon Sep 25 22:49:32 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2156
2157         * nm.c (print_symname): Don't try to demangle an empty
2158         name.
2159         * objdump.c (slurp_symtab): Reset symcount if there are
2160         no symbols.
2161         (slurp_dynamic_symtab): Likewise, for dynsymcount.
2162         (disassemble_data): Fix memory leak: free sorted_syms when done.
2163         (display_bfd): Likewise, for syms and dynsyms.
2164         (dump_relocs): Don't print header before possibly generating an
2165         error message.
2166         (dump_dynamic_relocs): Likewise.
2167
2168         * ar.1, nm.1, objdump.1, size.1, strings.1, strip.1: Fix typos and
2169         formatting bugs.
2170
2171 Fri Oct  6 12:00:25 1995  Ian Lance Taylor  <ian@cygnus.com>
2172
2173         * ar.c (do_quick_append): Comment out.
2174         (replace_members): Add quick argument.
2175         (main): Don't call do_quick_append.
2176         (open_inarch): Don't call quick_append to create an empty archive.
2177         Instead call bfd_openw/bfd_set_format/bfd_close.
2178
2179 Thu Oct  5 20:53:08 1995  Ken Raeburn  <raeburn@cygnus.com>
2180
2181         * bucomm.c: Always include time.h.
2182
2183 Thu Oct  5 17:25:21 1995  Ian Lance Taylor  <ian@cygnus.com>
2184
2185         * objdump.c (compare_symbols): Sort gnu_compiled and gcc2_compiled
2186         symbols after other symbols with the same value.  Likewise for
2187         symbols which look like file names.
2188         (objdump_print_address): Always chose the first reasonable symbol
2189         with a given value.
2190
2191 Tue Oct  3 22:38:55 1995  Ian Lance Taylor  <ian@cygnus.com>
2192
2193         * arsup.c (ar_save): Use rename, not unlink/link/unlink.
2194
2195 Mon Oct  2 12:10:25 1995  Ian Lance Taylor  <ian@cygnus.com>
2196
2197         * strings.c (main): Exit with zero status if no files are given
2198         and standard input is read.
2199
2200 Thu Sep 28 20:03:07 1995  Stan Shebs  <shebs@andros.cygnus.com>
2201
2202         * mpw-config.in: Calculate underscore and put into makefile
2203         fragment, generate config.h.
2204         * mpw-make.sed: New file, sed commands to edit Unix makefile
2205         into MPW syntax.
2206         * mpw-make.in: Remove.
2207         * mac-binutils.r: New file, Mac resources.
2208
2209 Thu Sep 28 15:49:00 1995  steve chamberlain  <sac@slash.cygnus.com>
2210
2211         * dlltool.c: (gen_exp_file): Always emit a .reloc section if
2212         relocatable.
2213         (imp_name_lab): New.
2214         (gen_def_file): New.
2215         (gen_lib_file): Use imp_name_lab.
2216         (main): Initialize imp_name_lab.
2217
2218 Mon Sep 25 12:05:34 1995  Ian Lance Taylor  <ian@cygnus.com>
2219
2220         * configure.in: Call AC_HEADER_SYS_WAIT.
2221         * configure: Rebuild.
2222         * config.in: Rebuild.
2223         * dlltool.c: Include "libiberty.h" and "bucomm.h".  Don't include
2224         <stdio.h>, <stdlib.h>, or <string.h>.  Don't include <wait.h>.
2225         Include <sys/types.h>.  Use HAVE_SYS_WAIT_H to control whether to
2226         include <sys/wait.h> or define the wait macros by hand.  Don't
2227         declare xmalloc.
2228         (gen_lib_file): Don't assume that sprintf returns the number of
2229         characters; use strlen instead.
2230
2231 Fri Sep 22 17:16:41 1995  Ian Lance Taylor  <ian@cygnus.com>
2232
2233         * objdump.c (disassemble_data): Don't use the old BFD based
2234         disassembler interface.  Make info a const pointer.
2235
2236 Wed Sep 13 18:33:44 1995  Ian Lance Taylor  <ian@cygnus.com>
2237
2238         * objdump.c (start_address): New variable.
2239         (stop_address): New variable.
2240         (usage): Mention --start-address and --stop-address.
2241         (OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define.
2242         (long_options): Add "start-address" and "stop-address".
2243         (disassemble_data): Handle start_address and stop_address.
2244         (dump_data, dump_reloc_set): Likewise.
2245         (main): Don't set seenflag for -l.  Handle OPTION_START_ADDRESS
2246         and OPTION_STOP_ADDRESS.
2247         * objcopy.c (parse_vma): Move to bucomm.c.
2248         * bucomm.c (parse_vma): New function, moved in from objcopy.c.
2249         * bucomm.h (parse_vma): Declare.
2250         * binutils.texi, objdump.1: Document new objdump options.
2251
2252 Tue Sep 12 12:37:39 1995  Ian Lance Taylor  <ian@cygnus.com>
2253
2254         * Makefile.in (maintainer-clean): New target.
2255
2256         * ar.c (replace_members): Don't call write_archive if nothing
2257         changed.
2258
2259         * objdump.c (disassemble_data): Add casts to avoid gcc warnings.
2260
2261 Thu Sep  7 12:12:17 1995  Ian Lance Taylor  <ian@cygnus.com>
2262
2263         * config.in: Rename from config.h.in.
2264         * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2265         Check for config.h:config.in when creating stamp-h.
2266         * configure: Rebuild.
2267         * Makefile.in (stamp-h): Depend upon config.in rather than
2268         config.h.in.  Set CONFIG_HEADERS to config.h:config.in when
2269         calling config.status.
2270
2271         * Makefile.in (distclean): Remove config.h, stamp-h, and
2272         config.log.
2273
2274         * nm.c (value_format): Initialize based on BFD64 and
2275         BFD_HOST_64BIT_LONG.
2276         (print_radix): New static variable.
2277         (set_print_radix): Set print_radix.  Adjust changes to
2278         value_format.
2279         (print_value): New static function, to print 64 bit octal and
2280         decimal values correctly.
2281         (print_symbol_info_bsd): Check BFD64, not BFD_HOST_64_BIT.  Use
2282         print_value.
2283         (print_symbol_info_sysv): Use print_value.
2284         (print_symbol_info_posix): Likewise.
2285
2286 Wed Sep  6 15:02:55 1995  Ian Lance Taylor  <ian@cygnus.com>
2287
2288         * Makefile.in (*.o): Remove incorrect dependencies on
2289         $(BFDDIR)/hosts/std-host.h.
2290
2291         * Makefile.in (INSTALL_DATA): Add -m 644.
2292         (INSTALL_XFORM1): Likewise.
2293         (CC_FOR_BUILD): Set to @CC_FOR_BUILD@ rather than $(CC).
2294         (mostlyclean): Remove config.log.
2295         (distclean): Remove config.cache.
2296
2297         * configure.in: Call BFD_CC_FOR_BUILD and BFD_BINARY_FOPEN.
2298         * configure: Rebuild.
2299
2300 Tue Sep  5 20:22:42 1995  Ian Lance Taylor  <ian@cygnus.com>
2301
2302         * configure.in: Rewrite to use autoconf.
2303         * aclocal.m4: New file.
2304         * configure: New file, built by autoconf.
2305         * acconfig.h: New file.
2306         * config.h.in: New file, built by autoheader.
2307         * Makefile.in: Various changes for new configure script.  Also:
2308         (PROGS): Remove $(SYSINFO_PROG).
2309         (ALL_CFLAGS): Remove $(TDEFINES).
2310         (version.o): Use $(ALL_CFLAGS).
2311         (cplus-dem.o, dlltool.o, nlmconv.o): Likewise.
2312         (sysdump.o): Depend upon bucomm.h and config.h.
2313         (srconv.o, arsup.o, strings.o): Depend upon config.h.
2314         (filemode.o): Don't depend upon ../bfd/sysdep.h.
2315         (bucomm.o): Depend upon config.h, not ../bfd/sysdep.h.
2316         (size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise.
2317         (nlmheader.o, nlmconv.o): Likewise.
2318         (distclean): Don't remove sysdep.h.
2319         * bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h".
2320         Include "fopen-same.h" or "fopen-bin.h", based on
2321         USE_BINARY_FOPEN.  Include <errno.h>, and declare errno if it is
2322         not a macro.  Include <unistd.h>, <string.h>, <strings.h>,
2323         <stdlib.h>, and <fcntl.h> if they are present.  Declare strchr,
2324         strrchr, and strstr if no string header file exists.  Include
2325         <sys/file.h> if it exists and <fcntl.h> does not.  Define
2326         O_RDONLY and O_RDWR if necessary.
2327         * ar.c:  Don't include "sysdep.h".  Do include <sys/types.h> and
2328         <sys/stat.h>.  Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME.  Use
2329         HAVE_UTIMES rather than !USE_UTIME.  Don't include <errno.h>, and
2330         don't declare errno.
2331         * arsup.c: Don't include <sysdep.h>.
2332         * bucomm.c: Don't include "sysdep.h".  Include <stdio.h>,
2333         <sys/types.h>, and <sys/stat.h>.  Include <time.h> if it defines
2334         time_t.  Define time_t if necessary.
2335         * coffdump.c: Don't include "sysdep.h".
2336         * coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise.
2337         * srconv.c, strings.c: Likewise.
2338         * nm.c: Don't include "sysdep.h".  Don't try to define HAVE_SBRK.
2339         * objcopy.c: Don't include "sysdep.h".  Include <sys/types.h> and
2340         <sys/stat.h>.
2341         (simple_copy): Use creat rather than assuming that O_CREAT is
2342         defined.
2343         * objdump.c: Don't include "sysdep.h".  Use
2344         NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED.
2345         * sysdump.c: Include "bfd.h" and "bucomm.h".  Don't include
2346         "sysdep.h" or <stdlib.h>.
2347         (dump_symbol_info): Rename from symbol_info.  Change all callers.
2348         
2349 Mon Sep  4 14:30:00 1995  Ian Lance Taylor  <ian@cygnus.com>
2350
2351         * configure.in (host_makefile_frag): Don't set.  Substitute for
2352         @CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
2353         * Makefile.in (AR_FLAGS): Set to rc rather than qv.
2354         (CC): Define as @CC@.
2355         (CFLAGS): Set to @CFLAGS@.
2356         (LDFLAGS): Define as @LDFLAGS@.
2357         (ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
2358
2359         * configure.in: Don't bother to call config.bfd for each target.
2360         Just call it for the default target, and use the shell variable to
2361         decide whether underscores are used.
2362
2363 Thu Aug 31 19:21:48 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
2364
2365         * configure.in: match i[3-6]86-*-win32, not just i386-*-win32.
2366
2367 Thu Aug 31 16:30:22 1995  steve chamberlain  <sac@slash.cygnus.com>
2368
2369         * dlltool.c (add_indirect): New.
2370         (asm_prefix): New
2371         (gen_exp_file): Timestamp should be 0. Insert prefix when
2372         needed. New code for indirection.
2373         (gen_lib_file): Timestamp should be 0. Insert prefix
2374         when needed.
2375         (usage): Document --add-indirect.
2376         (main): Cope with new option.
2377
2378         * objdump.c (dump_private_headers): New.
2379         (usage): Document new option.
2380         (long_option): Add private-headers.
2381         (dump_bfd_private_header): New.
2382         (main): Cope with new option.
2383
2384 Thu Aug 31 04:09:16 1995  Doug Evans  <dje@canuck.cygnus.com>
2385
2386         * dlltool.c (run): Add missing 3rd arg to waitpid.
2387
2388 Wed Aug 30 11:02:11 1995  steve chamberlain  <sac@slash.cygnus.com>
2389
2390         * Makefile.in (TOOL_PROGS): Include dlltool if needed.
2391
2392 Tue Aug 29 13:25:21 1995  steve chamberlain  <sac@slash.cygnus.com>
2393
2394         * dlltool.c (rva): Deleted.
2395         (rvaafter, rva_before): Use new assembler pseudo.
2396         (flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing.
2397         (gen_exp_file): Don't generate .edata if no need.
2398         (gen_lib_file): Don't make timestamp.
2399         Put _iname in idata$7.
2400         (workout_prefix): Fix memory initialization bug.
2401         (usage): Tidy up, delete many single char options.
2402         (main): rva option is gone.
2403
2404 Mon Aug 21 18:41:28 1995  steve chamberlain  <sac@slash.cygnus.com>
2405
2406         * dlltool.c (options): image-base is a synonym for rva.
2407         (gen_lib_file): Put dll name into ibase$7.
2408
2409 Sun Aug 20 09:59:00 1995  steve chamberlain  <sac@slash.cygnus.com>
2410
2411         Modified to generate archives and objects rather than .s files.
2412         * dlltool.c (run) New function.
2413         (gen_exp_file, gen_lib_file): Use run.
2414         (workout_prefix): New.
2415         (usage): Document new options.
2416         (main): Parse new options.
2417
2418 Wed Aug 16 16:26:52 1995  steve chamberlain  <sac@slash.cygnus.com>
2419
2420         * dlltool.c (gen_exp_file): Fix RVA handling.
2421         (rva_s, rva_n): Delete.
2422
2423 Fri Aug 11 18:27:18 1995  Ian Lance Taylor  <ian@cygnus.com>
2424
2425         * nm.c (main): Ignore -e.
2426
2427 Thu Aug 10 17:35:00 1995  Ken Raeburn  <raeburn@cygnus.com>
2428
2429         * Makefile.in (config.texi): New target.  Write out a setting for
2430         texinfo variable VERSION.
2431         (binutils.dvi, binutils.info): Depend on it.
2432         * binutils.texi: Include it, and reference @value{VERSION} instead
2433         of explicitly specifying 2.2(!).
2434
2435 Thu Aug 10 16:07:53 1995  Ian Lance Taylor  <ian@cygnus.com>
2436
2437         * coffgrok.c (do_type): Handle array dimensions the same way gdb
2438         does.
2439
2440 Tue Aug  8 17:10:42 1995  steve chamberlain  <sac@slash.cygnus.com>
2441
2442         * dlltool.c (mtable): New fields.
2443         (ASM_RVA_BEFORE, ASM_RVA_AFTER): New.
2444         (flush_page): Use new macros.
2445
2446 Sat Aug  5 00:16:37 1995  Jeff Law  (law@snake.cs.utah.edu)
2447
2448         * objcopy.c (mark_symbols_used_in_relocations): Handle sections
2449         with no relocations.
2450         * coffgrok.c (do_sections_p1): Likewise.
2451
2452 Mon Jul 31 12:51:06 1995  Ian Lance Taylor  <ian@cygnus.com>
2453
2454         * strings.c (print_strings): For compatibility with existing
2455         strings programs, print strings which are not terminated with a
2456         null byte or a newline.
2457         * binutils.texi, strings.1: Update documentation accordingly.
2458
2459         * ar.c (replace_members): For compatibility with existing ar
2460         programs, permit users to add the same file multiple times.
2461
2462 Tue Jul 25 11:21:53 1995  Ian Lance Taylor  <ian@cygnus.com>
2463
2464         * strings.c (DATA_FLAGS): Remove SEC_DATA.
2465         (main): If no file names are given, scan standard input.
2466         * binutils.texi, strings.1: strings now scans non-data sections by
2467         default.
2468
2469 Mon Jul 24 13:52:28 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
2470
2471         * srconv.c (wr_hd): Set afl field to 4 for bfd_arch_sh.
2472         (writeINT): When size == -2, use 2 bytes for the h8300 and 4 bytes 
2473         for the sh.
2474
2475         * sysdump.c (fillup): Return size - 1, the last byte is a checksum
2476         and shouldn't be counted.
2477         * sysroff.info (hd): Changed segment identifier from a byte to a 1
2478         bit field.  The sysroff 2.0-01 specification seems to be in error
2479         here.  Reduce width of following "spare" field from 4 to 3 bits.
2480         (rl): Changed order and width of first 4 bitfields to correspond
2481         to sysroff specification.
2482         (dln_head, dln_inside, dln_tail): Removed.
2483
2484 Tue Jul 18 23:00:03 1995  Fred Fish  <fnf@cygnus.com>
2485
2486         * nm.c (sort_symbols_by_size):  Enclose expression being casted
2487         in parens so result is casted, not just first operand.  Can't
2488         do pointer arithmetic on void* pointers.
2489
2490 Fri Jul 14 13:42:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
2491
2492         * sysdump.c (dh): Changed format of output to be 16 hex digits
2493         followed by 16 ascii characters, similar to Emacs' hexl-mode,
2494         to make it easier to read.
2495         (xcalloc): fix typo.
2496
2497 Thu Jul 13 15:27:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
2498
2499         * srconv.c (wr_tr): Write out handcrafted tr block.
2500         (walk_tree_symbol): Use evallen and evalue instead of
2501         vallen & value because of corresponding changes in
2502         sysroff.info.
2503
2504         * sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New
2505         functions.
2506
2507         * sysroff.info (tr): the tr block is a special case --- a block
2508         without contents --- which can't be handled by generated code.
2509         (den, dpp): only first byte is present for DENend, DPPend.
2510         (dsy): describe a conditional portion of block, rename some fields.
2511         (dps): describe a conditional portion of block.
2512         (dfl): removed.
2513
2514         * sysinfo.y (yyerror): write error message to standard error.
2515
2516 Thu Jul 13 10:43:59 1995  Ian Lance Taylor  <ian@cygnus.com>
2517
2518         * Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
2519         (mostlyclean): Remove y.output.
2520         (clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo.
2521
2522         * nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t.
2523         * objcopy.c (copy_object): Likewise.
2524
2525         * nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.
2526         (struct size_sym): Define.
2527         (show_stats): New static variable.
2528         (long_options): Add undocumented option "stats".
2529         (main): Print memory stats if requested.
2530         (sort_bfd, sort_dynamic, sort_x, sort_y): New static variables.
2531         (numeric_forward): Use minisymbols rather than asymbols.
2532         (non_numeric_forward): Likewise.
2533         (size_forward1): Rename from size_forward.  Use minisymbols.
2534         (size_forward2): New static function.
2535         (sort_symbols_by_size): Take new arguments dynamic, size, and
2536         symsizep.  Use minisymbols.  Don't store the size back in the
2537         symbol; store in a newly allocate struct size_sym array.
2538         (display_rel_file): Read minisymbols rather than asymbols.  Set
2539         sort_* variables.  Call print_size_symbols if sorting by size.
2540         (filter_symbols): Take new arguments dynamic and size.  Use
2541         minisymbols.
2542         (print_symbols): Likewise.  Call print_symbol for actual printing.
2543         (print_size_symbols): New static function.
2544         (print_symbol): New static function.
2545
2546 Wed Jul 12 10:43:05 1995  Ian Lance Taylor  <ian@cygnus.com>
2547
2548         * objdump.c (dump_section_stabs): Only print each stabs section
2549         once.
2550         (compare_relocs): Make it clear to gcc that this always returns a
2551         value.
2552
2553 Wed Jul 12 10:40:23 1995  H.J. Lu  <hjl@nynexst.com>
2554
2555         * objcopy.c (simple_copy): Preserve errno on failure.
2556         (smart_rename): Print error mesage if simple_copy fails.
2557
2558 Tue Jul 11 13:10:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
2559
2560         * sysdump.c: re-indented file.  
2561         (module): read blocks sequentially instead of trying to parse
2562         them, as that would require changing the parser recognize the
2563         difference between a DPSstart and DPSend block.
2564         (getone): Add break's between switch blocks as appropriate.
2565         (object_body_list): parse blocks according to sysroff spec.
2566
2567 Mon Jul 10 12:37:25 1995  J.T. Conklin  <jtc@poseidon.cygnus.com>
2568
2569         * sysroff.info: re-indented file, prior formatting was confusing
2570         because it was indentation did not reflect nesting of conditional
2571         records.  Change "space size within segment" record in hd record
2572         from bit to byte.
2573
2574         * sysinfo.y (cond_it_field): Use xcalloc instead of calloc.
2575
2576         * srconv.c (wr_cs): Reformatted cs header array, tag each byte
2577         with a comment describing the field.
2578         (wr_unit_info): Use SEEK_SET macro instead of constant 0.
2579         (main): Use FOPEN_WB macro instead of literal "wb".
2580         * sysroff.info: Remove fdl (dfl) field from cs block.  Compare
2581         ptr->type with ED_TYPE_CONST instead of constant 2 in ed block.
2582
2583 Tue Jul  4 14:48:42 1995  Ian Lance Taylor  <ian@cygnus.com>
2584
2585         * nm.c (size_forward): Check yf against yn, not xn.
2586
2587         * objcopy.c (copy_archive): Record all output BFD's, and close
2588         them before unlinking them and removing the temporary directory,
2589         to avoid NFS problems.
2590
2591         * ar.c (replace_members): In verbose messages, use 'r' when
2592         replacing a member, and 'a' when adding one.
2593
2594         * ar.c (ar_truncate): New static variable.
2595         (normalize): Change return type to const char *.  Add abfd
2596         argument.  Change all callers.  If ar_truncate, chop the filename
2597         to abfd->ar_max_namelen.
2598         (main): For the 'f' modifier, set ar_truncate to true.  Don't
2599         change quick_append to replace if ar_truncate is true.
2600         (do_quick_append): If ar_truncate, set BFD_TRADITIONAL_FORMAT.
2601         (write_archive): Likewise.
2602         * binutils.texi, ar.1: Document 'f' modifier.
2603
2604         * objcopy.c (enum strip_action): Define strip_unneeded.
2605         (OPTION_STRIP_UNNEEDED): Define.
2606         (strip_options): Add "strip-unneeded".
2607         (copy_options): Likewise.
2608         (copy_usage): Mention --strip-unneeded.
2609         (strip_usage): Likewise.
2610         (is_strip_section): Strip debugging sections if strip_unneeded.
2611         (filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
2612         (copy_object): If strip_all, discard symbols without checking
2613         discard_locals.
2614         (copy_object): Call filter_symbols if strip_unneeded.
2615         (setup_section): Strip debugging sections if strip_unneeded.
2616         (copy_section): Likewise.
2617         (strip_main): Handle OPTION_STRIP_UNNEEDED.
2618         (copy_main): Likewise.
2619         * binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
2620
2621 Mon Jul  3 14:16:47 1995  Steve Chamberlain  <sac@slash.cygnus.com>
2622
2623         * configure.in (i386-*-win32): New configuration.
2624         * dlltool.c (killat, xlate, usage, long_options, main): 
2625         Understand and cope with -k option.
2626
2627 Sat Jul  1 12:25:15 1995  Fred Fish  <fnf@cygnus.com>
2628
2629         * ar.c: (extract_file):  Change "#if POSIX_UTIME" to
2630         "#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME
2631         and avoid lossage when POSIX_UTIME is not defined at all.
2632
2633 Wed Jun 28 17:51:24 1995  Steve Chamberlain  <sac@slash.cygnus.com>
2634
2635         * ar.c: (print_contents.c, extract_file, do_quick_append):
2636         Malloc buffers rather than allocate on stack (so it works
2637         on NT).
2638         * deflex.l: Names can have an @ in them.
2639         * dlltool.c: Loads of stuff. Can now generate .imp files which
2640         work with NT .dlls.
2641
2642 Thu Jun 22 19:10:50 1995  Stan Shebs  <shebs@andros.cygnus.com>
2643
2644         * mpw-make.in (demangle.c.o): Remove.
2645         (arparse.h): Depend on arparse.c instead of arparse.y.
2646
2647 Wed Jun 21 17:32:45 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
2648
2649         * Makefile.in (DISTSTUFF): Don't include info here.
2650         (diststuff): Include it here.
2651         (realclean): Remove *.info.
2652
2653         * objdump.c (compare_relocs): If relocation entries have the same
2654         address, keep them in file order.
2655
2656 Mon Jun 19 09:06:49 1995  Steve Chamberlain  <sac@slash.cygnus.com>
2657
2658         * dlltool.c: Change names of generated files. .*.s-> -*.s
2659
2660         * objdump.c (dump_section_stabs):  Check for names
2661         which are supersets of selected names.
2662
2663 Wed Jun 14 19:43:52 1995  Doug Evans  <dje@canuck.cygnus.com>
2664
2665         * dlltool.c (mtable, ARM jump): Must redirect via pc offsetable ptr.
2666
2667 Wed Jun 14 13:27:22 1995  Steve Chamberlain  <sac@slash.cygnus.com>
2668
2669         * deflex.l, defparse.y, dlltool.c: New files.
2670         * Makefile.in, configure.in: Support for them.
2671
2672 Mon Jun 12 11:27:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
2673
2674         * sysdump.c: Include sysdep.h
2675         (main): Open input with FOPEN_RB.
2676
2677 Fri Jun  9 17:26:11 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
2678
2679         * objdump.c (wide_output): New flag variable.
2680         (usage): Print new -w, --wide options.
2681         (long_options): Add --wide support.
2682         (dump_section_header): If --wide, don't print a newline between
2683         the section's first line and the flags.
2684         (objdump_print_address): Use unsigned comparisons for the binary
2685         search, not signed.
2686         (disassemble_data): If --wide, don't put a \n between the
2687         disassembly output and relocation information.
2688         (main): Support -w option being the same as --wide.
2689
2690 Thu Jun  1 17:09:27 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
2691
2692         Sat May  6 08:52:24 1995  H.J. Lu (hjl@nynexst.com)
2693
2694         * objcopy.c (smart_rename): make it smarter, clean up
2695           if rename () fails.
2696
2697 Tue May 30 14:24:15 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
2698
2699         * Makefile.in: Delete lines with lots of #### because four or more
2700         indicate a point for makefile fragment substitution.
2701
2702 Tue May  9 17:17:05 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
2703
2704         * configure.in: Don't build nlmconv on PowerPC eabi any more, it
2705         is not needed.
2706
2707 Thu Apr 27 20:21:24 1995  Doug Evans  <dje@canuck.cygnus.com>
2708
2709         * Makefile.in (EXPECT): Define.
2710         (RUNTEST): Use one in source tree if present.
2711         (check): Set `rootme' for $(EXPECT).
2712
2713 Wed Apr 26 18:26:21 1995  Steve Chamberlain  <sac@slash.cygnus.com>
2714
2715         * srconv.c (main): Add support for -n option which disables
2716         prescan of common symbols.
2717         (wr_ob): If reading past the end of a section, fill with zeros.
2718
2719 Tue Apr 25 19:14:37 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
2720
2721         * objdump.c (dump_section_header): Display load address after
2722         virtual memory (run-time) address.
2723
2724 Wed Apr 19 09:44:06 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
2725
2726         * Makefile.in (cplus-dem.o): Pass -DVERSION='"$(VERSION)"' to the
2727         compile.
2728         (DEMANGLER_PROG): No longer uses version.o.
2729
2730 Mon Apr 10 13:29:49 1995  Stan Shebs  <shebs@andros.cygnus.com>
2731
2732         Merge in support for Mac MPW as a host.
2733         (Old change descriptions retained for informational value.)
2734
2735         * mpw-config.in (TDEFINES): Define as empty in makefile frag.
2736
2737         * mpw-config.in: Create mk.tmp, define ARCHDEFS in it.
2738
2739         * mpw-config.in: New file, MPW configure fragment for binutils.
2740         * mpw-make.in (install-only): New target.
2741         (install): Also depend on install-only.
2742
2743         * mpw-make.in (cplusfilt): Renamed from c++filt.
2744         (INCLUDES): Add more paths.
2745
2746         * mpw-make.in: New file, MPW makefile fragment for binutils.
2747         (Normally automatically generated from Makefile.in.)
2748
2749 Mon Mar 27 11:52:57 1995  Ian Lance Taylor  <ian@cygnus.com>
2750
2751         * ar.c (write_archive): Call make_tempname to get output file
2752         name, rather than using a fixed name based on the input file.
2753
2754         * objcopy.c (make_tempname): Copy from here...
2755         * bucomm.c (make_tempname): ...to here, and make global.
2756         * bucomm.h (make_tempname): Declare.
2757
2758 Fri Mar 24 11:47:42 1995  Ian Lance Taylor  <ian@cygnus.com>
2759
2760         * strings.c: Include "bfd.h" before other headers.  Include
2761         "sysdep.h".
2762         * bucomm.c (print_arelt_descr): Cast st_uid and st_gid to long,
2763         and print them with %ld.
2764
2765 Fri Mar 10 13:09:42 1995  Ian Lance Taylor  <ian@cygnus.com>
2766
2767         * objcopy.c (strip_options): Add --keep-symbol.
2768         (copy_options): Likewise.
2769         (copy_usage): Mention --keep-symbol and -K.
2770         (strip_usage): Likewise.
2771         (keep_symbols): New static variable.
2772         (is_strip_symbol): Adjust the return value according to
2773         keep_symbols.
2774         (strip_main): Handle -K.  For -N, check that -K was not given.
2775         (copy_main): Likewise.
2776         * binutils.texi, objcopy.1, strip.1: Document -K.
2777
2778 Mon Mar  6 13:33:47 1995  Stan Shebs  <shebs@andros.cygnus.com>
2779
2780         * objcopy.c (copy_archive): Check result of mkdir.
2781         (copy_main): Cast an xmalloc result.
2782
2783         * objdump.c (usage): Break long format string into shorter ones.
2784
2785 Mon Mar  6 13:46:12 1995  Ian Lance Taylor  <ian@cygnus.com>
2786
2787         * bucomm.c (list_supported_targets): New function.
2788         * bucomm.h (list_supported_targets): Declare.
2789         * ar.c (usage): Call list_supported_targets.
2790         * nm.c (usage): Likewise.
2791         * objcopy.c (copy_usage, strip_usage): Likewise.
2792         * objdump.c (usage): Likewise.
2793         * size.c (usage): Likewise.
2794         * strings.c (usage): Likewise.
2795
2796 Tue Feb 28 15:13:58 1995  Ian Lance Taylor  <ian@cygnus.com>
2797
2798         * bucomm.c (print_arelt_descr): Cast st_size to long before
2799         passing it to fprintf.
2800
2801 Fri Feb 17 13:36:45 1995  Ian Lance Taylor  <ian@cygnus.com>
2802
2803         * objcopy.c (struct section_list): Add fields remove, set_flags,
2804         and flags.  Change adjust from boolean to enum.
2805         (remove_sections): Remove static variable.
2806         (sections_removed): New static variable.
2807         (copy_options): Add --set-section-flags.
2808         (copy_usage): Mention --set-section-flags.
2809         (parse_flags): New static function.
2810         (find_section_list): New static function.
2811         (is_strip_symbol): Change return type from int to boolean.
2812         (is_strip_section): New static function.
2813         (filter_symbols): Call is_strip_section.
2814         (copy_object): When adding sections, check for specified flags or
2815         VMA.  Call filter_symbols if any sections are being removed.
2816         (setup_section): Use find_section_list function rather than
2817         looking through remove_sections and adjust_sections.  Handle
2818         --set-section-flags.
2819         (copy_section): Use find_section_list rather than looking through
2820         remove_sections.
2821         (strip_main): Use find_section_list instead of adding items to
2822         sections_removed.
2823         (copy_main): Use find_section_list instead of adding items to
2824         sections_removed and adjust_sections.  Handle --set-section-flags.
2825         * binutils.texi, objcopy.1: Document --set-section-flags.
2826
2827 Tue Feb 14 18:03:03 1995  Ian Lance Taylor  <ian@cygnus.com>
2828
2829         * objdump.c (with_source_code): New global variable.
2830         (usage): Mention -S/--source.
2831         (long_options): Add --source.
2832         (prev_functionname, prev_line): New static variables.
2833         (struct print_file_list): Define.
2834         (print_files): New static variable.
2835         (skip_to_line, show_line): New static functions.
2836         (disassemble_data): Call show_line to handle -l and -S.
2837         (main): Handle -S.
2838         * binutils.texi, objdump.1: Document -S/--source.
2839
2840 Thu Feb  9 16:11:53 1995  Ian Lance Taylor  <ian@cygnus.com>
2841
2842         * objcopy.c (copy_usage): Rename parameter to avoid shadowing.
2843         (strip_usage): Likewise.
2844
2845         * objcopy.c (struct section_add): Define.
2846         (add_sections): New static variable.
2847         (copy_options): Accept --add-section.
2848         (copy_usage): Mention --add-section.
2849         (copy_object): Add sections from the add_sections list.
2850         (copy_main): Handle --add-section.
2851         * binutils.texi, objcopy.1: Document --add-section.
2852
2853 Wed Feb  1 15:04:57 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
2854
2855         * objdump.c (disassemble_data): Pass section offset, not absolute
2856         address, to bfd_find_nearest_line.
2857
2858         * nlmconv.c (powerpc_mangle_relocs): Don't use const with
2859         reloc_howto_type.
2860
2861 Thu Jan 26 18:50:06 1995  Ian Lance Taylor  <ian@cygnus.com>
2862
2863         * objdump.c (compare_symbols): Use bfd_asymbol_value (VAR) rather
2864         than VAR->value.
2865         (objdump_print_address): Likewise.
2866         (disassemble_data): Don't change the symbol values.  It can
2867         confuse bfd_canonicalize_reloc.
2868
2869 Thu Jan 26 12:03:56 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
2870
2871         * configure.in: Add support for powerpc-*-ebai.
2872
2873 Wed Jan 18 10:02:12 1995  Steve Chamberlain  <sac@splat>
2874
2875         * coffdump.c: Include sysdep.h.
2876         (dump_coff_type): Handle coff_secdef_type.
2877         * coffgrok.c : Include sysdep.h.
2878         * srconv.c: Include libiberty.h
2879         (absolute_p, dty_start, dty_end, dump_tree_structure): Remove.
2880
2881 Wed Jan 18 12:24:14 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
2882
2883         * coffdump.c (dump_coff_scope): Cast pointer to unsigned long for
2884         printf.
2885         * coffgrok.c: Include bucomm.h.  Don't declare xmalloc.
2886         (push_scope): Declare type of parameter link.
2887         * size.c: Include libiberty.h.
2888         * srconv.c: Include bucomm.h.
2889         (find_base): Declare at top of file.
2890         (wr_hd): Add default case to architecture switch.
2891         (wr_dps_start): Declare type of parameter nest.
2892         (wr_du): Comment out variables used only in commented out blocks.
2893         (wr_dus): Remove unused variable i.
2894         (wr_sc): Remove unused variables myinfo, low, and high.
2895         * strings.c: Include libiberty.h.
2896         * sysdump.c: Include <ctype.h>.
2897
2898 Tue Dec 20 19:13:44 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
2899
2900         * ar.c (main): Ignore 'f' modifier used on HP/UX 9.
2901
2902 Thu Dec 15 17:34:12 1994  Stan Shebs  <shebs@andros.cygnus.com>
2903
2904         * ar.c, nm.c, objcopy.c, objdump.c: Include progress.h.
2905         * ar.c, nm.c, objcopy.c, objdump.c (main): Add START_PROGRESS
2906         and END_PROGRESS.
2907         * ar.c (map_over_members, open_inarch): Call PROGRESS.
2908         * nm.c (main, display_archive, filter_symbols, print_symbols):
2909         Call PROGRESS.
2910
2911         * objcopy.c (copy_usage): Break up long usage string.
2912
2913 Wed Dec 14 15:51:56 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
2914
2915         * objcopy.c (copy_object): Don't bother setting status after
2916         nonfatal() "call", because it won't return.
2917
2918 Fri Dec  9 00:22:54 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2919
2920         * nlmconv.c (powerpc_mangle_relocs): Don't switch a reloc to use
2921         the section symbol if the symbol is undefined.
2922
2923 Thu Dec  8 14:45:50 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
2924
2925         * objcopy.c (add_strip_symbol): Cast return value of xmalloc.
2926
2927 Wed Nov 30 11:05:43 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
2928
2929         * ar.c (replace_members): Pass current->filename to normalize when
2930         checking for duplicates, because the filename of a newly added
2931         file will not have been normalized yet.
2932
2933 Thu Nov 17 15:00:13 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
2934
2935         * ar.c (main): Don't call do_quick_append if any of the archive
2936         names are longer than 14 characters.
2937
2938         * objcopy.c (main): Fix is_strip test.  From
2939         pirker@eiunix.tuwien.ac.at (Martin Pirker).
2940
2941 Thu Nov 17 15:37:19 1994  Mark W. Eichin  <eichin@cygnus.com>
2942
2943         * objcopy.c (add_strip_symbol): New function, adds a name to an
2944         explicit list of symbols to strip.
2945         (is_strip_symbol): New function, reports whether the name argument
2946         is in the explicit list.
2947         (filter_symbols): Check against is_strip_symbol above all.
2948         (strip_main): Recognize -N option. If used, don't default to
2949         strip_all.
2950         (copy_main): Recognize -N option.
2951         (strip_usage): Document -N and --strip-symbol options.
2952         (copy_usage): Ditto.
2953         * objcopy.1, strip.1, binutils.texi: Document -N and
2954         --strip-symbol options.
2955
2956 Tue Nov  8 13:12:54 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
2957
2958         * objdump.c (display_target_list, display_info_table): Pass an
2959         array to tmparg, rather than NULL, since some systems can't handle
2960         NULL.
2961
2962         * objcopy.c (copy_archive): Keep a list of the names of the
2963         temporary files we created.  Close each input BFD after we open
2964         its successor.
2965
2966 Mon Nov  7 15:48:39 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
2967
2968         * Makefile.in (VERSION): Bump to 2.5.3.
2969
2970 Thu Nov  3 19:04:34 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
2971
2972         * Makefile.in (install-info): Install info files from whatever
2973         directory they were found in.
2974
2975         Patch from DJ Delorie:
2976         * configure.bat: do c++filt -> cxxfilt right
2977
2978         * sysinfo.y: Include system header files early, so any potential
2979         declaration of abort() occurs before its use.
2980
2981         * strings.c (strings_file): Try opening the file in binary mode
2982         first.
2983
2984 Wed Nov  2 15:44:13 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
2985
2986         * ar.c (main): Treat ar qs like ar rs.
2987
2988 Tue Oct 25 16:19:25 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
2989
2990         * objcopy.c (gap_fill): Explicitly initialize, for clarity.
2991         (pad_to_set, pad_to): New static variables.
2992         (copy_options): Accept --pad-to.
2993         (copy_usage): Mention --pad-to.
2994         (copy_object): Support --pad-to.
2995         (compare_section_vma): Sort non loadable sections to the front.
2996         Sort sections with the same VMA by size.
2997         (copy_main): Handle --pad-to.
2998         * binutils.texi, objcopy.1: Document --pad-to.
2999
3000 Thu Oct 20 13:51:31 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3001
3002         * objcopy.c (gap_fill_set, gap_fill): New static variables.
3003         (copy_options): Accept --gap-fill.
3004         (copy_usage): Mention --gap-fill.
3005         (copy_object): Support --gap-fill.
3006         (get_sections, compare_section_vma): New static functions.
3007         (copy_main): Handle --gap-fill.
3008         * binutils.texi, objcopy.1: Document --gap-fill.
3009
3010 Wed Oct 19 14:09:16 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
3011
3012         * Makefile.in (check): Add a dummy else clause to the if
3013         statement.
3014
3015         * objcopy.c (copy_object): Revert yesterday's change.
3016         * binutils.texi, objcopy.1: Remove special mention of --set-start
3017         and `binary' output format.
3018
3019 Tue Oct 18 11:12:01 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
3020
3021         * objcopy.c (copy_object): If the output file format is `binary',
3022         and the start address was not set using --set-start, default the
3023         start address to zero.  This hack is because the `binary' output
3024         file format uses the start address to set the virtual address of
3025         the first byte in the file.
3026         * binutils.texi, objcopy.1: Add some notes on generating S-records
3027         and binary files.
3028
3029         * nm.c (print_symdef_entry): Call print_symname to print the
3030         symbol name, so that --demangle works.
3031
3032         * Makefile.in (mostlyclean): Remove tmpdir.
3033
3034         * objcopy.c (struct section_list): Add fields used, adjust, val.
3035         (adjust_start, set_start_set, set_start): New static variables.
3036         (adjust_section_vma, adjust_sections): New static variables.
3037         (copy_options): Add --adjust-start, --adjust-vma,
3038         --adjust-section-vma, --adjust-warnings, --no-adjust-warnings,
3039         --set-start.
3040         (parse_vma): New static function.
3041         (copy_usage): Mention new options.
3042         (copy_object): Handle --set-start and --adjust-start.
3043         (setup_section): Correct type of last argument to PTR.  Set used
3044         field if section is removed.  Handle --adjust-vma and
3045         --adjust-section-vma.
3046         (copy_section): Correct type of last argument to PTR.
3047         (mark_symbols_used_in_relocations): Likewise.
3048         (strip_main): Clear used field when handling -R.
3049         (copy_main): Handle new options.
3050         * binutils.texi (objcopy): Document new options.
3051         * objcopy.1: Document new options.
3052
3053 Fri Oct 14 14:38:13 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
3054
3055         * configure.in (configdirs): Remove definition--testsuite is no
3056         longer configured.
3057         * Makefile.in (testsuite): Remove target.
3058         (site.exp): New target.
3059         (check): Rewrite.
3060         (clean, distclean): Don't recur into testsuite directory.
3061
3062 Thu Oct 13 19:24:09 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
3063
3064         * Makefile.in (VERSION): Updated to 2.5.
3065         * Version 2.5 released.
3066
3067 Tue Oct 11 15:26:42 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
3068
3069         * Makefile.in (sysdump.o): Depends upon sysroff.c.
3070
3071 Mon Oct 10 13:50:30 1994  J.T. Conklin  (jtc@rtl.cygnus.com)
3072
3073         * nlmconv.c (link_inputs): Pass -Ur flag to ld so that the
3074           ctor/dtor tables needed by C++ programs are built.
3075
3076 Sun Oct  9 18:04:00 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
3077
3078         * Makefile.in (srconv.o): Add dependence on sysroff.c.
3079
3080 Tue Oct  4 12:19:51 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
3081
3082         * configure.in: Use ${config_shell} when running config.bfd.
3083
3084         * Makefile.in (sysroff.h): Split target away from sysroff.c.
3085         (srconv.o, sysdump.o): New targets.
3086         (srconv, sysdump): Don't depend upon sysroff.c.
3087
3088 Wed Sep 28 13:04:34 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3089
3090         * Makefile.in (arparse.c): Don't ignore errors from mv.
3091         (sysinfo.c): Likewise.  Also, depend upon arparse.c, to prevent a
3092         parallel make from trying to build both arparse.c and sysinfo.c
3093         simultaneously.
3094         (nlmheader.c): Similar change.
3095         (arparse.h): Separate target from arparse.c, so that a parallel
3096         make does not try to build both at once.  Depend upon arparse.c.
3097         (sysinfo.h): Similar change.
3098
3099         * objdump.c (disassemble_data): Pass the reloc buffer to free, not
3100         the pointer used to loop over the relocs.
3101
3102 Sat Sep 24 16:16:57 1994  Stan Shebs  (shebs@andros.cygnus.com)
3103
3104         * objdump.c (disassemble_data): Cast result of xmalloc.
3105
3106 Wed Sep 21 19:30:35 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3107
3108         * objdump.c (sorted_syms, sorted_symcount): New global variables.
3109         (objdump_print_address): Use sorted_syms and sorted_symcount
3110         instead of syms and symcount.
3111         (disassemble_data): Don't bother to get the relocs before looping
3112         over the sections.  Before filtering and sorting the symbol table,
3113         copy it into sorted_syms.
3114
3115 Fri Sep 16 11:27:39 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3116
3117         * objdump.c (struct objdump_disasm_info): Add field require_sec.
3118         (objdump_print_address): If aux->require_sec, require that the
3119         symbol be in aux->sec even if HAS_RELOC is not set.  If we can't
3120         find a smaller symbol in the right section, look for a larger one.
3121         (disassemble_data): Set aux.require_sec around the
3122         objdump_print_address call for the instruction address.
3123
3124 Thu Sep 15 21:43:17 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3125
3126         * ar.c: Call xexit rather than exit.
3127         (output_filename, output_file, output_bfd): New static variables.
3128         (remove_output): New static function.
3129         (main): Call xatexit (remove_output).  Call xexit rather than
3130         returning.
3131         (extract_file): Set output_filename and output_file while output
3132         file is open.
3133         (write_archive): Likewise, but use output_bfd, not output_file.
3134         * arsup.c: Include libiberty.h.  Call xexit rather than exit.
3135         * bucomm.c: Likewise.
3136
3137         * objdump.c (disassemble_all): New global variable.
3138         (usage): Document --disassemble-all.
3139         (long_options): Add disassemble-all as a synonym for -D.
3140         (compare_symbols): Make pointers const.
3141         (compare_relocs): New static function.
3142         (disassemble_data): Rename disassemble to disassemble_fn to avoid
3143         shadowing.  If dump_reloc_info, print relocs along with
3144         disassembly.  Skip sections which are not SEC_CODE unless
3145         disassemble_all or only is set.
3146         (display_bfd): Don't call dump_relocs if disassemble is set.
3147         (main): Accept and handle -D.
3148         * binutils.texi: Document -D/--disassemble-all.
3149         * objdump.1: Likewise.
3150
3151 Wed Sep 14 12:19:07 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3152
3153         * objdump.c (disassemble_data): Initialize prevline to 0.  Make
3154         prev_function non const.  Copy functionname into an malloc buffer
3155         when setting prev_function, instead of assuming that the string
3156         will last forever.
3157
3158         * nm.c: Include libiberty.h.
3159         (sort_by_size): New static variable.
3160         (long_options): Add --size-sort.
3161         (usage): Mention --size-sort.
3162         (numeric_forward): Make static.  Change from void * to PTR.
3163         (numeric_reverse): Likewise.
3164         (non_numeric_forward, non_numeric_reverse): Likewise.
3165         (sorters): Change declaration from void * to PTR.
3166         (size_forward, sort_symbol_by_size): New static functions.
3167         (display_rel_file): Handle sort_by_size.
3168         (filter_symbols): If sort_by_size, discard absolute and undefined
3169         symbols.
3170         * binutils.texi (nm): Document --size-sort.
3171         * nm.1: Document --size-sort.
3172
3173 Tue Sep 13 21:06:06 1994  Jeff Law  (law@snake.cs.utah.edu)
3174
3175         * objcopy.c (copy_main): Initialize input_filename and
3176         output_filename to NULL.
3177
3178 Tue Sep 13 14:17:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3179
3180         * Makefile.in (version.o): Depend upon Makefile, so that version.o
3181         gets rebuilt when make variable VERSION is changed.
3182
3183         * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.
3184
3185 Wed Aug 24 12:40:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3186
3187         * configure.in: Change i[34]86 to i[345]86.
3188
3189 Tue Aug 23 11:00:40 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3190
3191         * ar.c (ranlib_touch): Don't update the archive map if there isn't
3192         one.
3193
3194 Mon Aug 22 16:02:18 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3195
3196         * ar.c: Include libiberty.h.
3197         (inarch): Remove variable.
3198         (map_over_members): Make static.  Add arch argument, and use it
3199         instead of inarch.  Change all callers.
3200         (main): Treat --version as -v.  Accept -t argument.  Accept any
3201         number of archive arguments.  Catch and use open_inarch return
3202         value, rather than using inarch.
3203         (open_inarch): Return newly opened BFD, rather than using inarch.
3204         (do_quick_append): Make archive_filename const.
3205         (write_archive): Add iarch argument, and use it instead of inarch.
3206         Change all callers.
3207         (delete_members, move_members, replace_members): Likewise.
3208         (ranlib_only): Don't exit on success.  Catch and use open_inarch
3209         return value.
3210         (ranlib_touch): New function.
3211         * arsup.h (map_over_members): Don't declare.
3212         (ar_end, ar_extract): Declare.
3213         (open_inarch): Change return value in declaration to bfd *.
3214         * arsup.c (map_over_list): Make static. Always pass two arguments
3215         to function.  Add arch argument, and use it instead of inarch.
3216         Change all callers.
3217         (ar_directory_doer): Make static.  Add ignored second argument.
3218         Change all callers.
3219         (ar_directory): Use open_inarch return value rather than inarch.
3220         (ar_addlib_doer): Make static.
3221         (ar_addlib): Use open_inarch return value rather than inarch.
3222         (ar_extract): Remove unused local variable abfd.
3223
3224 Thu Aug 11 14:55:57 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3225
3226         Add support for removing named sections to objcopy and strip.
3227         * objcopy.c (struct section_list): Define.
3228         (remove_sections): New static variable.
3229         (strip_options, copy_options): Add remove-section.
3230         (copy_usage, strip_usage): Mention -R and --remove-section.
3231         (setup_section): If section is in remove_sections list, ignore it.
3232         (copy_section): Likewise.
3233         (strip_main, copy_main): Handle -R.
3234         * binutils.texi, objcopy.1, strip.1: Document new options.
3235
3236 Wed Aug 10 10:19:55 1994  Stan Shebs  (shebs@andros.cygnus.com)
3237
3238         * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
3239         so as not to conflict with the symvalue typedef in bfd.h.
3240
3241 Mon Aug  1 13:19:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3242
3243         * nlmheader.y: Per current NetWare docs, accept a revision number
3244         of 0 and treat a revision number greater than 26 as 0.
3245
3246 Mon Jul 25 12:58:36 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3247
3248         * objdump.c (objdump_print_address): Correct handling of end of
3249         symbols when looking for next symbol with a different value.
3250
3251 Fri Jul 22 16:48:34 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
3252
3253         * nm.c (numeric_forward): Treat undefined symbols as "less than"
3254         defined symbols with zero values.  If numeric values are equal, or
3255         both symbols are undefined, sort alphabetically.  Don't assume
3256         that the difference of two bfd_vma values will truncate to "int"
3257         and still have the same sign.
3258         (numeric_reverse): Call numeric_forward and negate the result.
3259         (print_symbol_info_bsd): For undefined symbols, print leading
3260         spaces equivalent to the width of a printed bfd_vma, rather than
3261         assuming that 8 will look right.
3262
3263 Fri Jul 22 10:36:50 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
3264
3265         * coffgrok.c (doit):  Zero all fields of new structure. 
3266         * srconv.c (sysroff_swap_*_out): Remove redundant trailing arg. 
3267         * sysinfo.y: Generate sysroff_swap_*_out without requiring extra
3268         arg.
3269
3270 Fri Jul 22 10:09:53 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
3271
3272         * nlmheader.y: Make "stack" and "stacksize" synonyms in the lexer
3273           rather than the parser.
3274
3275 Thu Jul 21 10:25:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3276
3277         * config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:
3278         Remove; obsolete.
3279
3280 Sat Jul 16 22:34:39 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3281
3282         * objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbols
3283         even if the bfd is not marked DYNAMIC.  ELF executables are not
3284         marked DYNAMIC, but do have dynamic symbols.
3285
3286 Fri Jul 15 01:41:35 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
3287
3288         * coffgrok.c (do_where): Make data with no type 'int'.
3289         (do_define):  Keep info on source file of a symbol.
3290         * coffgrok.h (coff_symbol): New field.
3291         * srconv.c (PROGRAM_VERSION): Now 1.3
3292         (wr_rl): Use external ref number for symbol.
3293         (wr_dus): Only keep one source file per debug unit.
3294         (wr_dln): Always emit line numbers for first source file,
3295         (wr_globals):  Emit globals in the du of their owning source file.
3296
3297 Mon Jul 11 15:59:03 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
3298
3299         * nlmheader.y: Null terminate var_hdr->threadName.
3300
3301 Fri Jul  8 17:33:22 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
3302
3303         * Makefile.in (syslex.o, sysinfo.o): Permit C source files to be
3304         in $(srcdir), as they will be for FSF releases.
3305
3306 Wed Jul  6 01:13:14 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3307
3308         * nlmconv.c (setup_sections): Preserve existing section flags when
3309         copying in flags from a new section.
3310
3311 Tue Jul  5 15:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3312
3313         * objcopy.c: Include libiberty.h.
3314         (copy_file): If output_target is NULL, set it to the target of the
3315         input file.
3316
3317 Wed Jun 29 17:17:14 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
3318
3319         * nlmconv.c (link_inputs): Fixed memory allocation bug.
3320
3321 Thu Jun 23 12:52:46 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
3322
3323         * configure.in: Change --with-targets to --enable-targets.
3324
3325 Tue Jun 21 12:53:21 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3326
3327         * Makefile.in (sysinfo): Does not depend upon $(ADDL_LIBS).
3328
3329         * nlmconv.c (powerpc_build_stubs): Don't generate the PowerPC
3330         NetWare custom header; no longer needed.
3331         (powerpc_mangle_relocs): Convert relocs against the uninitialized
3332         data section into relocs against the data section.
3333
3334         * configure.in: Set nlmconv_defs to -DNLMCONV_cputype for all the
3335         netware targets.  Write it into Makefile as NLMCONV_DEFS.
3336         * Makefile.in (nlmconv.o): Pass $(NLMCONV_DEFS) to $(CC).
3337         * nlmconv.c: Only compile code for specific CPU types if
3338         NLMCONV_cputype is defined.
3339
3340         * nlmconv.c (main): Change uses of bfd_abs_section, etc., to use
3341         bfd_abs_section_ptr or bfd_is_abs_section, etc.
3342         (i386_mangle_relocs, alpha_mangle_relocs): Likewise.
3343         (powerpc_build_stubs): Likewise.
3344         * nm.c (filter_symbols, print_symbols): Likewise.
3345         * objcopy.c (filter_symbols): Likewise.
3346         (mark_symbols_used_in_relocations): Likewise.
3347         * objdump.c (remove_useless_symbols, dump_relocs): Likewise.
3348         * size.c (sysv_internal_printer): Likewise.
3349
3350 Mon Jun 20 16:43:03 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
3351
3352         * Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG).
3353         (install): Install it explicitly, from build dir, not srcdir.
3354
3355 Mon Jun 20 16:29:54 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3356
3357         * objdump.c: Don't include elf/internal.h.
3358         (bfd_elf_find_section): Don't declare.
3359         (read_section_stabs): No special handling for ELF.  Always read
3360         using BFD sections.
3361
3362 Thu Jun 16 17:25:20 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3363
3364         * configure.in: Set UNDERSCORE in Makefile based on result of
3365         invoking config.bfd with a second argument of ``_''.
3366         * Makefile.in (underscore.c): Depend upon Makefile.  Don't try to
3367         run $(CC) and $(NM), just use $(UNDERSCORE).  Create via temporary
3368         file.
3369         (demangle.o): Remove target.
3370         ($(NM_PROG)): Don't depend upon demangle.o, and don't link against
3371         demangle.o.  It's in libiberty anyhow.
3372         (cplus-dem.o): Don't depend upon demangle.o.
3373         * binutils.texi: Mention -n and --no-strip-underscores arguments
3374         to c++filt.
3375
3376 Wed Jun 15 12:10:31 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3377
3378         * nm.c (long_options): Add --no-demangle to turn off --demangle,
3379         and --no-cplus for Linux compatibility.
3380         (usage): Mention --no-demangle.
3381         * binutils.texi: Document --no-demangle.
3382
3383 Fri Jun 10 15:41:25 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3384
3385         * nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.
3386
3387         * objcopy.c (copy_archive): Make the temporary directory in the
3388         same directory as the output BFD, since we may not have write
3389         permission on the current directory.  Set the permissions of the
3390         new directory to 0700, not 0777.
3391
3392 Mon Jun  6 21:36:43 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
3393
3394         * configure.in: if this is an rs6000 (and we're not building for
3395         any other bfd targets) then build only nm (collect needs it on
3396         rs6000-lynx).
3397
3398         * Makefile.in: define TOOL_PROGS which the list of programes to
3399         install in $tooldir -- replaces a hard-coded list.
3400
3401 Fri Jun  3 10:59:18 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3402
3403         * objdump.c (display_target_list): Remove unused local ok.
3404
3405 Thu May 26 18:05:52 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
3406
3407         * config/mh-alphaosf (CFLAGS): Don't specify both -g and -O;
3408         they're not compatible under native cc.  Use -O1 instead.
3409
3410         * Makefile.in (VERSION): Updated to cygnus-2.4.1.
3411
3412         Changes from binutils-2.4 net release:
3413
3414         * Makefile.in (MANPAGES): Use $(DEMANGLER_PROG).
3415         ($(DEMANGLER_PROG).1): Build from cxxfilt.man, using sed.
3416         * cxxfilt.man: Renamed from c++filt.1, replaced "c++filt" with
3417         magic token to be replaced by sed.
3418
3419         Wed May 11 22:32:00 1994  DJ Delorie (dj@ctron.com)
3420
3421         * configure.bat: update for latest makefile.in
3422
3423 Fri May 13 23:25:13 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3424
3425         * bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.
3426
3427 Tue May 10 18:22:06 1994  Jason Molenda    (crash@sendai.cygnus.com)
3428
3429         * objcopy.c (copy_section): Set section size correctly if using
3430         interleave.
3431
3432 Sat May  7 16:49:36 1994  Steve Chamberlain  (sac@cygnus.com)
3433
3434         * Makefile.in: Add rule for sysinfo.h
3435
3436 Fri May  6 12:18:33 1994  Steve Chamberlain  (sac@cygnus.com)
3437
3438         * Makefile.in (SRCONV_PROG): Define.
3439         (PROGS): Use $(SRCONV_PROG) too.
3440
3441 Thu May  5 19:41:43 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
3442
3443         * Makefile.in (DISTSTUFF): Add sysinfo.c, syslex.c, in case
3444         someone configures with `targets=all'.
3445         (distclean): Remove y.*.
3446         (syslex.o): Depend on sysinfo.h.
3447         (sysinfo.c): Rename y.tab.h to sysinfo.h.
3448         (install-info): Don't try to install into $(infodir)/$(srcdir).
3449         * syslex.l: Include sysinfo.h, not y.tab.h.
3450
3451 Thu May  5 11:50:55 1994  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
3452
3453         * syslex.l (yywrap): Define as function if not defined as a macro.
3454
3455         * Makefile.in (objdump.o): Deleted special rule.
3456         * configure.in: Don't bother building ARCHDEFS variable for
3457         Makefile.
3458         * objdump.c (ARCH_*): Deleted handling.
3459         (disassemble_data): Call `disassembler' from opcodes library.
3460
3461 Thu May  5 13:28:42 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3462
3463         * Makefile.in (install): Correct handling of $(tooldir) and
3464         $(bindir) being on different devices.
3465
3466 Fri Apr 29 09:50:38 1994  Steve Chamberlain  (sac@cygnus.com)
3467
3468         * sysdump.c (h8300, sh): Add declarations.
3469
3470 Wed Apr 27 11:25:18 1994  Steve Chamberlain  (sac@cygnus.com)
3471
3472         * Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
3473         * coffdump.c, coffgroc.c, coffgrog.h, srconv.c, sysdump.c,
3474         sysroff.info: Major changes.
3475
3476 Tue Apr 26 18:18:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
3477
3478         * objdump.c (print_section_stabs): Indicate the stab header symbol
3479         more clearly, print numbers of unrecognized stab n_type values.
3480
3481 Tue Apr 26 16:22:55 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3482
3483         * nlmconv.c (copy_sections): Copy arelent pointers, not arelents.
3484
3485 Mon Apr 25 16:14:32 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3486
3487         * Makefile.in (distclean): Remove $(PROGS) and underscore.c.
3488
3489 Fri Apr 22 11:14:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3490
3491         * nlmconv.c (setup_sections): Remove special handling of .reginfo
3492         section.
3493         (copy_sections): Likewise.
3494         (alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the
3495         special ECOFF .reginfo section.
3496
3497         * objcopy.c (copy_object): Call bfd_copy_private_bfd_data after
3498         copying everything else, to let it fiddle with the file in its
3499         final state.
3500
3501         * objdump.c: Include libiberty.h.
3502         (display_target_list): If a format fails, just go on to the next
3503         one.  Check return value of bfd_set_format.
3504         (display_info_table): Likewise.  Don't increment loop variable in
3505         for loop test, since that skips the first element.
3506         (display_target_tables): Rewrite loop for clarity.  Ensure that it
3507         always prints at least one element.
3508
3509         * nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs for
3510         sections header.  Rename from cygnus_sections to cygnus_ext.
3511
3512 Thu Apr 21 12:12:26 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3513
3514         * objdump.c (_DUMMY_NAME_): Don't define.
3515         (display_target_list): Use tmpnam to get a file name rather than
3516         using _DUMMY_NAME_.  Unlink it when done.
3517         (display_info_table): Likewise.
3518
3519         * nlmconv.c (secsec): New static variable.
3520         (main): Create .nlmsections section in output BFD.  Store
3521         information about it in sections header.
3522         (setup_sections): Allocate space in sections header.
3523         (copy_sections): Copy zero sized sections.  Put information about
3524         each section in the sections header.
3525
3526 Wed Apr 20 14:34:51 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3527
3528         * nlmconv.c (powerpc_build_stubs): Take new outbfd argument.
3529         Change caller.  Create custom header for new PowerPC NetWare
3530         format.
3531
3532         * Makefile.in (nlmheader.o, nlmconv.o): Update dependencies.
3533         * nlmconv.c: Include bfd.h and libiberty.h with "", not <>.
3534         * nlmheader.y: Include bfd.h with "", not <>.
3535
3536 Wed Apr 13 10:52:50 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3537
3538         * objdump.c: Do an ifdef on __GO32__, not unix.
3539
3540 Wed Apr  6 21:54:49 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3541
3542         Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -R
3543         (--dynamic-reloc) arguments to objdump.
3544         * nm.c (dynamic): New static variable.
3545         (long_options): Added "dynamic".
3546         (usage): Mention -D and --dynamic.
3547         (main): Add D to getopt string.  Handle -D by setting dynamic.
3548         (display_rel_file): If dynamic is non-zero, read dynamic symbols
3549         rather than normal symbols.
3550         * nm.1: Updated for -D (--dynamic) option.
3551         * objdump.c (dump_dynamic_symtab): New global variable.
3552         (dump_dynamic_reloc_info): New global variable.
3553         (dynsyms, dynsymcount): New global variables.
3554         (usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc.
3555         (long_options): Added "dynamic-reloc" and "dynamic-syms".
3556         (slurp_symtab): If no symbols, return rather than exit.
3557         (slurp_dynamic_symtab): New function.
3558         (display_bfd): Handle dump_dynamic_symtab and
3559         dump_dynamic_reloc_info.
3560         (dump_symbols): Take new dynamic argument, indicating whether to
3561         display dynamic symbols.
3562         (dump_relocs): Move most printing into dump_reloc_set.
3563         (dump_dynamic_relocs): New function.
3564         (dump_reloc_set): New function, extracted from dump_relocs.
3565         (main): Add R and T to getopt string.  Handle -T by setting
3566         dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info.
3567         * objdump.1: Updated for -R (--dynamic-reloc) and -T
3568         (--dynamic-syms) options.
3569         * binutils.texi: Updated for new nm and objdump options.
3570
3571 Wed Mar 30 15:52:40 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3572
3573         Update for recent BFD changes to symbol and reloc reading.  Rename
3574         all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound.
3575         Also:
3576         * coffgrok.c (symcount): Change to long.
3577         (do_sections_p1): Check for error return from
3578         bfd_get_reloc_upper_bound.  Change relcount to long, and check for
3579         error from bfd_canonicalize_reloc.
3580         (coff_grok): Change storage to long.  Check for error from
3581         bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
3582         * nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and
3583         i to long.  Check for error from bfd_get_symtab_upper_bound and
3584         bfd_canonicalize_symtab.
3585         (copy_sections): Change reloc_size and reloc_count to long.  Check
3586         for error from bfd_get_reloc_upper_bound and
3587         bfd_canonicalize_reloc.
3588         (mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change
3589         reloc_count_ptr argument to long *.  Make corresponding changes to
3590         variables loaded from *reloc_count_ptr.
3591         * nm.c (display_rel_file): Change storage and symcount to long.
3592         Check for errors from bfd_get_symtab_upper_bound and
3593         bfd_canonicalize_symtab.
3594         * objcopy.c (filter_symbols): Change symcount, src_count and
3595         dst_count to long.
3596         (copy_object): Change symcount to long.  Pass another argument to
3597         fprintf.  Check for errors from bfd_get_symtab_upper_bound and
3598         bfd_canonicalize_symtab.
3599         (copy_section): Change relcount to long.  Check for errors from
3600         bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
3601         (mark_symbols_used_in_relocations): Change relcount and i to long.
3602         Check for errors form bfd_get_reloc_upper_bound and
3603         bfd_canonicalize_reloc.
3604         * objdump.c (storage): Remove global variable.
3605         (symcount): Changed to long.
3606         (slurp_symtab): New local variable storage.  Check for errors from
3607         bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
3608         (remove_useless_symbols): Change return value and count to long.
3609         (objdump_print_address): Change min, max, thisplace and i to long.
3610         (disassemble_data): Change i to long.
3611         (dump_symbols): Change count to long.
3612         (dump_relocs): Change relcount to long.  Check for errors from
3613         bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc.
3614         (display_info_table): Add casts when passing LONGEST_ARCH for
3615         printf %* argument.
3616
3617 Tue Mar 29 14:59:04 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3618
3619         * nm.c (display_archive): Close each archive element after it has
3620         been displayed.
3621         * objdump.c (display_file): Likewise.
3622
3623 Mon Mar 28 13:04:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3624
3625         * configure.in: Change error message to refer to bfd/config.bfd
3626         rather than bfd/configure.in.
3627
3628 Sun Mar 27 16:23:39 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
3629
3630         * More fixes for object formats which allow multiple sections
3631         with the same name:
3632         * objcopy.c (setup_section): Make a new output section even if
3633         one already exists with the given name.
3634         (copy_section): Use isection->output_section rather than trying
3635         to look the output section up by its (possibly non-unique) name.
3636
3637         * Makefile.in (install-info): Look for binutils.info in the
3638         current directory, then in $(srcdir).  Don't use $<.
3639
3640 Mon Mar 21 12:55:45 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3641
3642         * objdump.c (objdump_print_address): Make static.  Declare with
3643         prototype.  Change vardiff from int to bfd_signed_vma.  Correct
3644         binary search termination condition.  When looking for same
3645         section symbol in relocatable file, handle final symbol correctly.
3646
3647 Sun Mar 20 11:26:36 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
3648
3649         * Makefile.in: Avoid bug in hpux sed.
3650
3651         * objcopy.c: Changes to keep it from stripping symbols used
3652         in output relocations.
3653         (mark_symbols_used_in_relocations): New function.  Mark symbols
3654         used in output relocations with BSF_KEEP.
3655         (filter_symbols): Do not strip symbols marked with BSF_KEEP.
3656         (copy_object): Reorder actions.  First setup sections, then
3657         build the output symbol table, then copy the section contents.
3658
3659 Fri Mar 18 10:53:55 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3660
3661         * ar.c (write_archive): Allocate space for the null byte.  From
3662         Robert Lipe <robertl@arnet.com>.
3663
3664 Thu Mar 17 16:20:28 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3665
3666         * Makefile.in: Built nm.new and strip.new to avoid problems with
3667         collect when . is in PATH.
3668         (STRIP_PROG): Change from strip to strip.new.
3669         (NM_PROG): Change from nm to nm.new.
3670         (install): Remove the .new when installing.
3671
3672 Wed Mar 16 16:27:05 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3673
3674         * nlmconv.c (powerpc_build_stubs): Set BSF_DYNAMIC flag for each
3675         symbol for which we build a stub.
3676         (powerpc_mangle_relocs): Only reset TOC pointer for a call to a
3677         symbol with BSF_DYNAMIC flag set.
3678
3679 Tue Mar 15 23:04:13 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
3680
3681         * objcopy.c (filter_symbols): Use bfd_is_local_label to determine
3682         if a symbol represents a compiler-generated local label.
3683         (copy_object): Give the BFD backends a chance to copy any private
3684         bfd data from the input BFD to the output BFD.
3685         (setup_section): Give the BFD backends a chance to copy any private
3686         section data from the input section to the output section.
3687
3688 Mon Mar 14 11:15:58 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
3689
3690         * objcopy.c (mangle_section): Delete unused function.
3691         (setup_section): Set osection here instead of calling
3692         mangle section to do it.
3693
3694 Mon Mar 14 12:11:01 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3695
3696         * ar.c (write_archive): Close inarch before unlinking it.
3697
3698 Fri Mar 11 22:20:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3699
3700         * nlmconv.c (main): For PowerPC, call powerpc_build_stubs and
3701         powerpc_resolve_stubs.  Use __GOT0, not __toc_start.  Handle it if
3702         the start and end symbols are not in the text section.
3703         (struct powerpc_stub): New struct definition.
3704         (powerpc_stubs, powerpc_stub_insns): New static variables.
3705         (powerpc_initial_got_size): New static variable.
3706         (powerpc_build_stubs): New function.
3707         (powerpc_resolve_stubs): New function.
3708         (powerpc_mangle_relocs): Clear extraneous data in .got section.
3709         Rearrange reloc handling to handle ELF relocs that are not
3710         partial_inplace.  Resolve PC relative relocs.
3711
3712 Wed Mar  9 13:48:11 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
3713
3714         * ar.c (move_members): Fix it so that the abi positional modifiers
3715         don't delete all archive members following the insert point.
3716
3717 Tue Mar  8 13:14:43 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
3718
3719         * coffgrok.[ch]: New files, understand coff objects.
3720         * coffdump.c: Uses coffgrok to dump out the debug info of a coff
3721         file.
3722         * sysroff.info: Description of a SYSROFF object file.
3723         * sysinfo.y, syslex.l: Parse info file, generate a reader, writer,
3724         header files and a printer.
3725         * srconv.c: Uses coffgrok.c and sysroff.info to convert a coff
3726         file to a SYSROFF file.
3727
3728 Sat Feb 26 13:35:26 1994  Stan Shebs  (shebs@andros.cygnus.com)
3729
3730         * ar.c (do_quick_append): Pad with a genuine character 10,
3731         rather than whatever '\n' might happen to be.
3732
3733 Tue Feb 22 18:25:52 1994  Ian Lance Taylor  (ian@cygnus.com)
3734
3735         * nlmconv.c (main): Ignore debugging symbols when looking for
3736         special symbols by name.
3737
3738 Sun Feb 20 18:47:42 1994  Ian Lance Taylor  (ian@lisa.cygnus.com)
3739
3740         * nlmconv.c: Include libiberty.h.
3741
3742         Support for PowerPC NetWare.
3743         * nlmconv.c (main): For PowerPC NetWare, automatically define the
3744         special symbols __toc_start.
3745         (select_output_format): Handle bfd_arch_powerpc.
3746         (mangle_relocs): Likewise.
3747         (powerpc_mangle_relocs): New function.
3748
3749 Thu Feb 17 09:28:23 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3750
3751         * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c, 
3752         size.c: Use bfd_get_error and bfd_set_error and new error names.
3753
3754 Fri Feb 11 15:54:51 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3755
3756         * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
3757
3758 Mon Feb  7 19:45:52 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3759
3760         * objdump.c (disassemble_data): Handle bfd_arch_powerpc.
3761
3762 Sun Feb  6 22:08:20 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3763
3764         * strings.c objdump.c nlmconv.c objcopy.c nm.c ar.c size.c (main):
3765         Call xmalloc_set_program_name.
3766
3767 Fri Feb  4 10:46:01 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3768
3769         * objcopy.c (filter_bytes): Make MEMHUNK a char *, not PTR, so we
3770         can do arithmetic on it.
3771
3772 Thu Feb  3 14:06:41 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3773
3774         * objdump.c (dump_section_stabs, read_section_stabs,
3775         print_section_stabs): Functions broken out of dump_stabs_1.
3776         Free the stabs and strings when done with them.
3777
3778 Wed Feb  2 13:42:23 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3779
3780         * nlmconv.c (main): Use bfd_get_flavour instead of struct member.
3781         * ar.c (print_contents, extract_file), size.c
3782         (print_berkeley_format, print_sysv_format): Use bfd_get_filename and 
3783         bfd_my_archive instead of dereferencing the structs directly.
3784
3785         * ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.
3786         Indent.  Remove DEFUNs.
3787
3788         * nlmconv.c (main), objcopy.c (copy_file): Print matching formats
3789         if ambiguous match.
3790         * nm.c (display_file, display_archive), size.c (display_bfd):
3791         Eliminate gotos.
3792         Print matching formats if there is an ambiguous match.  Use
3793         bfd_nonfatal instead of hardcoded error message if nothing matches.
3794
3795         * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of
3796         abfd->filename. 
3797
3798         * nm.c (display_archive): New function, from code in display_file.
3799         (display_rel_file): Renamed from do_one_rel_file.
3800
3801         * size.c: Indent.
3802         (display_archive): New function from code in display_file.
3803         (display_file): Check bfd_close error return.
3804
3805         * strings.c (strings_object_file): Check bfd_check_format
3806         error return.
3807
3808         * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror.
3809
3810         * bucomm.c: Delete references to exit_handler.  It wasn't set
3811         anywhere, and now that we're using the libiberty xmalloc, it
3812         wouldn't always get called before exiting.
3813         (list_matching_formats): Function moved from objdump.c.
3814         * bucomm.h: Declare it.
3815
3816         * objdump.c (disassemble_data): Move some variable decls closer to
3817         their use.  Add some comments.  Replace a nested block with a
3818         return. 
3819
3820 Mon Jan 31 18:50:41 1994  Stan Shebs  (shebs@andros.cygnus.com)
3821
3822         * objdump.c (display_target_list, display_info_table): Check that
3823         the bfd of the dummy output file is not null.
3824
3825 Wed Jan 26 13:13:18 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3826
3827         * objcopy.c (filter_bytes): New function.
3828         (copy_section): Call it.
3829         (copy_options, copy_usage, copy_main): Add --byte option to
3830         activate it.  Appropriate the -b option (which was an undocumented
3831         synonym for -F) for it, also.  Add --interleave, -i option for
3832         additional control.
3833         (setup_section, copy_section, mangle_section): Renamed with no `s'
3834         on the end.
3835         * objcopy.1, binutils.texi: Document the new options.
3836
3837         * objdump.c (display_target_tables, display_target_list):
3838         New functions broken out of display_info.
3839         Eliminate some magic constants.  Use more meaningful variable names.
3840         (dump_bfd_header): New function broken out of display_bfd.
3841         (dump_section_header): New function broken out of dump_headers.
3842         (remove_useless_symbols): Don't shadow global variable name with
3843         parameter. 
3844         (objdump_print_address): Fix backward test.
3845
3846 Tue Jan 25 19:40:54 1994  Stan Shebs  (shebs@andros.cygnus.com)
3847
3848         * bucomm.c (print_arelt_descr): Change decl of `when' to time_t.
3849         * objdump.h: Removed.
3850
3851 Mon Jan 24 13:29:02 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3852
3853         * objdump.c (display_file): Remove call to list_matching_formats.
3854         It would never be called.
3855         (list_matching_formats): Take an arg giving the list of matching
3856         formats.
3857         (display_bfd): Pass the arg, and get it filled in by calling
3858         bfd_check_format_matches instead of bfd_check_format.
3859         (display_info, display_info_table): target_vector was renamed to
3860         bfd_target_vector. 
3861
3862         * binutils.texi (objdump): Note some limitations of -h section
3863         address printing.
3864
3865 Sat Jan 22 16:20:46 1994  Stan Shebs  (shebs@andros.cygnus.com)
3866
3867         * Makefile.in (MALLOC): Set to emptiness by default.
3868         (ALL_CFLAGS): Add and use.
3869         (arparse.h): Make it depend on arparse.y.
3870         * ar.c (libbfd.h): Don't require to be in ../bfd.
3871         * objdump.c (comp): Rename to compare_symbols.
3872
3873 Fri Jan 21 20:22:30 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3874
3875         * objdump.c (list_matching_formats): If the file format is ambiguous,
3876         print the matching names so the user can choose one.
3877         (display_bfd): Call it.
3878         (display_file): Call it.
3879
3880 Fri Jan 21 19:17:25 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3881
3882         * objdump.c (disassemble_data): Support bfd_arch_rs6000.
3883
3884 Mon Jan 17 13:57:25 1994  Stan Shebs  (shebs@andros.cygnus.com)
3885
3886         * objdump.c (stab_name): Allocate dynamically.
3887         (stab_print): Use pointers to strings instead of char arrays.
3888         (dump_stabs): Change alloc and init of arrays appropriately.    
3889         (dump_stabs_1): Always decide whether to print stab_name or
3890         the stab's type number, if unnamed.
3891
3892 Fri Jan 14 14:42:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3893
3894         * objcopy.c (strip_main, copy_main): Don't clobber the input file
3895         if copy_file fails.
3896
3897         * nlmconv.c (main): Warn about an attempt to use a shared library
3898         with uninitialized data.
3899
3900         * nlmconv.c (setup_sections): Make sure that we align the
3901         output_offset of each input section appropriately.
3902
3903 Thu Jan 13 17:32:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3904
3905         * objdump.c (dump_relocs): Don't crash if section name is NULL.
3906
3907 Tue Jan 11 19:46:33 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3908
3909         * filemode.c (filemodestring): Commented out; not used.
3910         (mode_string): Use POSIX definitions.
3911         (ftypelet): Likewise.
3912         (rwx): Removed; no longer used.
3913         * bucomm.c: Include bucomm.h.
3914         (bfd_nonfatal, bfd_fatal): Argument is const.
3915         (fatal): Make __STDC__ version.
3916         * bucomm.h (mode_string): Declare.
3917         * Makefile.in (bucomm.o): Depend upon bucomm.h
3918
3919 Sun Jan  9 12:03:20 1994  Ken Raeburn  (raeburn@rtl.cygnus.com)
3920
3921         * bucomm.c (xmalloc, xrealloc): Deleted.
3922         * bucomm.h (xmalloc, xrealloc): Fix prototypes, to correspond to
3923         libiberty version of functions.
3924
3925 Thu Jan  6 06:18:15 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3926
3927         * binutils.texi: Add a chapter summarizing the ways to select
3928         aspects of the target for each program.
3929
3930         * objdump.c (long_options, usage): Add long equivalents for all
3931         remaining short options that lacked them.
3932         * binutils.texi objdump.1: Document them.
3933
3934         * size.c (usage): Tweak usage message.
3935         * size.1: Add missing `=' in examples.
3936
3937         * binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c:
3938         Use "--target=bfdname" as the option to select the BFD target,
3939         like nm and size already do.
3940         Reserve "--format=format" for textual output selection options, but
3941         for now keep old option names as obsolete for backward compatibility.
3942
3943         * strings.c (main, strings_object_file, usage): Add --target option.
3944         * binutils.texi strings.1: Document it.
3945
3946 Sat Jan  1 13:58:24 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
3947
3948         * ar.c (main): Add \n in error message.
3949
3950 Thu Dec 23 12:23:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3951
3952         gcc -Wall lint:
3953         * ar.c (main): Put parens around assignment used as truth value.
3954         * objcopy.c (strip_main): Remove unused variables.  Return 0.
3955         (copy_main): Remove unused variables.  Return 0.
3956         * objdump.c (display_bfd): Declare return value as void.
3957         (stab_print): Use "" instead of 0 to initialize array.
3958         (dump_stabs_1): Print vma using printf_vma.
3959         (display_info): Put parens around assignment used as truth value.
3960         * strings.c (print_strings): Cast printf arguments.
3961
3962         * objcopy.c (copy_main): Use copy_options, not strip_options.
3963
3964         * nlmheader.y (command): Warn about illegal date values.
3965
3966 Wed Dec 15 11:18:03 1993  David J. MacKenzie  (djm@frosty.eng.umd.edu)
3967
3968         * bucomm.c bucomm.h: Run through indent.  De-ansidecl-ify.
3969         (bfd_nonfatal): New function.
3970         (bfd_fatal): Call it.
3971
3972         * objcopy.c (smart_rename): Do a copy if the dest file has
3973         multiple hard links.  Remove source file on successful copy.
3974         Try to preserve mode and owner on successful rename.
3975
3976         * objcopy.c: Run through indent.  Clean up a bit.
3977         Make global variables static.
3978         Make {input,output}_{target,filename}, show_version local
3979         to various functions.
3980         New global variable `status' for exit status.
3981         (strip_main, copy_main): New functions with code from main.
3982         (nonfatal): New macro.  Use it globally instead of bfd_perror and
3983         bfd_fatal.
3984
3985         (copy_object): Call mangle_sections with bfd_map_over_sections.
3986         (mangle_sections): Adjust for new calling convention.
3987
3988 Fri Dec 10 11:28:11 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
3989
3990         * nlmheader.y (command): Accept MAP and FULLMAP without arguments.
3991         * nlmconv.c (main): Change error message for MAP and FULLMAP.
3992
3993 Thu Dec  9 17:47:19 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
3994
3995         * nlmconv.c (main): Warn about imported symbols that are not in
3996         the IMPORT list even if the IMPORT keyword is not used.
3997
3998         * nlmconv.c (debug, unlink_on_exit): New static variables.
3999         (long_options): Add "debug" and "linker".
4000         (main): Handle -d and -l arguments.  Make command line input and
4001         output files optional.  Parse the command file before opening the
4002         BFD's, which requires storing more information in local variables.
4003         If INPUT names multiple files, link them together.  Use OUTPUT for
4004         the output file name if not named on command line.
4005         (show_usage): Changed for new options.
4006         (link_inputs): New function to automatically invoke linker to
4007         handle multiple INPUT files.
4008         (choose_temp_base_try, choose_temp_base, pexecute): New functions,
4009         mostly copied from gcc/gcc.c.
4010         * nlmconv.h (input_files, output_file): Declare.
4011         * nlmheader.y (input_files, output_file): Define.
4012         (command): Support INPUT with a string_list argument.  Support
4013         OUTPUT.
4014         (string_list): Renamed from module_list.
4015         * Makefile.in (nlmconv.o): Define LD_NAME based on
4016         program_transform_name.
4017
4018 Wed Dec  8 10:09:04 1993  Ian Lance Taylor  (ian@deneb.cygnus.com)
4019
4020         * nlmheader.y (nlmheader_identify): New function.  Use it to print
4021         the program name just once, instead of with every error message.
4022
4023 Mon Dec  6 16:11:32 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4024
4025         * nlmconv.c (long_options): Changed --header-info to --header-file
4026         to match documentation and usage message.
4027
4028 Sun Dec  5 01:31:01 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
4029
4030         * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
4031         in a relocation.
4032
4033 Thu Dec  2 16:00:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4034
4035         * nlmconv.c (main): Change various types from bfd_size_type to
4036         size_t, since they have to be arguments to fread and fwrite.
4037         Change set from char * to unsigned char *.
4038         (select_output_format): Make mach argument unsigned.  Handle
4039         bfd_arch_alpha.
4040         (setup_sections): Don't copy the .reginfo section of an ECOFF
4041         file.  Call bfd_set_reloc to initialize the relocation fields.
4042         (copy_sections): Don't copy the .reginfo section of an ECOFF file.
4043         Combine all relocs for a section.
4044         (mangle_relocs): Change type of relocs to permit specific
4045         functions to change it.  Call alpha_mangle_relocs for alpha,
4046         default_mangle_relocs for other architectures.
4047         (default_mangle_relocs): New function.  Adjust the address of all
4048         relocs by the output_offset.
4049         (i386_mangle_relocs): Change type of relocs argument.  Cast length
4050         argument to memmove to size_t.
4051         (alpha_mangle_relocs): New function.    
4052
4053 Wed Nov 17 17:38:58 1993  Sean Eric Fagan  (sef@cygnus.com)
4054
4055         * nlmconv.c (select_output_format): Use nlm32-sparc for
4056         bfd_arch_sparc.
4057
4058 Wed Nov 17 14:41:35 1993  Jeffrey Osier  (jeffrey@thepub.cygnus.com)
4059
4060         * nlmconv.1:   added man page
4061         * objcopy.1:   fixed format errors
4062
4063 Wed Nov 17 12:03:41 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4064
4065         * Makefile.in: Use CFLAGS as well as LDFLAGS when linking.
4066
4067 Wed Nov 17 04:50:55 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4068
4069         * strings.1: Fix typo.
4070
4071 Mon Nov 15 12:03:20 1993  Ken Raeburn  (raeburn@rtl.cygnus.com)
4072
4073         * Makefile.in (DISTSTUFF): Build "info".
4074         (VERSION): Updated to cygnus-2.3.1; 2.3 has gone out.
4075
4076 Sun Nov 14 00:27:24 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
4077
4078         * objdump.c (dump_stabs): Handle stabs-in-som as implemented
4079         by the new BFD SOM assembler.
4080
4081 Sat Nov 13 07:14:05 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
4082
4083         * ar.1 c++filt.1 nm.1 objcopy.1 objdump.1 ranlib.1 size.1
4084         strings.1 strip.1: Replace \(em in NAME section with \- so
4085         makewhatis can grok it.
4086
4087 Tue Nov  9 15:22:12 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4088
4089         * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
4090         section output_offset.
4091
4092 Fri Nov  5 12:11:52 1993  Jeffrey Osier  (jeffrey@thepub.cygnus.com)
4093
4094         * binutils.texi:  added nlmconv chapter
4095
4096 Wed Nov  3 16:10:50 1993  Jeffrey Wheat  (cassidy@cygnus.com)
4097
4098         * Makefile.in: Change RUNTESTFLAGS to RUNTEST_FLAGS
4099
4100 Wed Nov  3 15:09:23 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
4101
4102         * Makefile.in (distclean): Don't get rid of dvi or info files.
4103
4104 Tue Nov  2 13:29:59 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
4105
4106         * objcopy.c (S_ISLNK): Define as 0 if there's no S_IFLNK.
4107
4108 Fri Oct 29 16:02:34 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4109
4110         * binutils.texi: Move objcopy docs into alphabetical order.
4111
4112         * objdump.c: Use xmalloc instead of malloc.
4113
4114 Fri Oct 29 11:11:14 1993  Stan Shebs  (shebs@rtl.cygnus.com)
4115
4116         * objdump.c (info): Rename to formats_info.
4117         (dump_stabs_1): Better comments and formatting.
4118
4119 Thu Oct 28 19:43:16 1993  Stan Shebs  (shebs@rtl.cygnus.com)
4120
4121         * ar.c (main): Always create the archive when quick appending,
4122         even if no input files have been given.
4123
4124 Wed Oct 27 12:03:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4125
4126         * nlmconv.c (main): Set sharedDebugRecordOffset and
4127         sharedDebugRecordCount fields in extended header.
4128
4129         * nlmconv.c (main): Force moduleName field to upper case.
4130
4131 Mon Oct 25 16:45:42 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4132
4133         * objcopy.c (main): Give a usage message if there are too many
4134         arguments.
4135
4136 Mon Oct 25 10:37:08 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
4137
4138         * Makefile.in (install-info): Rewrite to take advantage of VPATH,
4139         so FSF distributions (with info files in $(srcdir)) install
4140         properly.
4141         (DISTSTUFF): Build nlmheader.c too.
4142
4143 Fri Oct 22 11:43:23 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
4144
4145         * ar.c (program_name): Don't define here.
4146         * objdump.c: Include "bucomm.h".
4147         (xmalloc): Don't declare here.
4148         (program_name): Don't define here.
4149         (program_version): Fixed type in declaration.
4150         * size.c: Include "bucomm.h".
4151         (program_name): Don't declare here.
4152
4153 Fri Oct 22 14:10:41 1993  Mark Eichin  (eichin@cygnus.com)
4154
4155         * objdump.c (fprintf): hide declaration in FPRINTF_ALREADY_DECLARED
4156
4157 Fri Oct  1 12:43:00 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4158
4159         * nlmconv.c (i386_mangle_relocs): Resolve and remove PC relative
4160         relocs against defined symbols in the same section.
4161
4162 Thu Sep 30 16:46:26 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
4163
4164         * Makefile.in (binutils.dvi): use TEXIDIR to find texinfo.tex
4165
4166 Sat Sep 25 18:09:29 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4167
4168         * objcopy.c (simple_copy, smart_rename): New functions.
4169         (main): Use them.
4170
4171 Fri Sep 24 15:38:29 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4172
4173         * Makefile.in (clean, distclean): Recurse into testsuite.
4174
4175 Thu Sep 23 01:05:06 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4176
4177         * objcopy.c (setup_sections, copy_sections): If stripping, don't
4178         copy SEC_DEBUGGING sections.
4179         * objdump.c (dump_headers): Print SEC_DEBUGGING flag.
4180
4181         * objdump.c (usage): Mention --stabs.
4182
4183         * objcopy.c (copy_object): Copy all applicable file flags.
4184         (copy_file): Don't copy EXEC_P specially here.
4185
4186 Mon Sep 20 19:28:57 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4187
4188         * nlmconv.c (main): Adjust data section size to correspond to bss
4189         alignment adjustment.  Clear BSF_SECTION_SYM if symbol is moved to
4190         a different section.  Use time_t for time variable.
4191         (setup_sections): Only put sections with contents in output NLM.
4192         (i386_mangle_relocs): No symbols are common at this point.  Add
4193         casts to avoid warnings.        
4194
4195 Fri Sep 10 11:00:40 1993  Stan Shebs  (shebs@rtl.cygnus.com)
4196
4197         * objdump.c: Made the --stabs option work for stabs-in-coff.
4198         (ELF_STAB_DISPLAY): Removed.
4199         (dump_elf_stabs): Renamed to dump_stabs, changed to run for
4200         any object file format.
4201         (dump_elf_stabs_1): Renamed to dump_stabs_1, added calls to
4202         generic BFD routines for non-ELF case, changed format of message
4203         for no-section-found case.
4204         (display_bfd): Always call dump_stabs if requested.
4205         (dump_data): Call bfd_section_size to get section size.
4206
4207 Fri Sep 10 08:12:23 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4208
4209         * Makefile.in (install): Don't put strings in tooldir/bin.
4210
4211 Mon Sep  6 15:39:04 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4212
4213         * nlmconv.c (total_bss_size): Removed.
4214         (main): Set the bss vma to always follow the data section.  Move
4215         symbols into new sections, and adjust values by output_offset.
4216         (setup_sections): Don't copy all sections, but instead point all
4217         text sections to .text, all data sections to .data, and all bss
4218         sections to .bss.
4219         (copy_sections): Adjust accordingly.
4220
4221 Thu Sep  2 12:34:03 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4222
4223         Only build nlmconv if configured for a NetWare target.
4224         * configure.in: If we have some *-*-netware* target, or are using
4225         all targets, set BUILD_NLMCONV to $(NLMCONV_PROG) in Makefile.
4226         * Makefile.in (PROGS): Use $(BUILD_NLMCONV) rather than
4227         $(NLMCONV_PROG).
4228
4229 Tue Aug 31 14:13:35 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4230
4231         * objdump.c (ARCH_all): Define ARCH_hppa too.
4232         (dump_headers): Don't test for SEC_BALIGN if it's not defined by
4233         bfd.h.
4234
4235 Tue Aug 31 13:29:12 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4236
4237         * nlmconv.c (main): Force creation of .bss section.  Set up the
4238         sections before looking at the symbols.  Move all common symbols
4239         into .bss section.  Automatically define _edata and _end.  Only
4240         export symbols in the export list, with multiple prefixes if
4241         necessary.  Warn if no version.  Always create extended header.
4242         Set date automatically if not already set.
4243         (setup_sections): Count size of bss sections.
4244         (mangle_relocs, i386_mangle_relocs): Accept section argument, and
4245         take reloc_count as a changeable pointer; changed callers.
4246         (i386_mangle_relocs): Remove PC relative relocs within a section,
4247         as they require no adjustment.
4248         * nlmheader.y: Fixed memory allocation throughout: token STRING is
4249         now allocated on the heap, and freed if not needed.  Null
4250         terminated copyright message.  Accept version with only two
4251         strings.
4252         (symbol_list_opt): New nonterminal, either symbol_list or empty.
4253         (symbol_list): Use left recursion to avoid overflowing parser
4254         stack.
4255         (yylex): Rearranged beginning of line check.  Accept quoted
4256         strings using single quotes.  End generic argument at comment
4257         character or parentheses.
4258         (string_list_append): Fixed.
4259         (string_list_append1): New function.
4260
4261         * bucomm.h: The first argument to xrealloc is PTR, not char *.
4262         * bucomm.c (xrealloc): Use PTR rather than char *.
4263         * Makefile.in (objdump.o): Depend upon config.status to notice
4264         --with-targets changes.
4265         (nlmconv.o): Depend upon bucomm.h.
4266
4267 Tue Aug 17 09:46:01 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4268
4269         * configure.in: Don't pass cpu to config.bfd.
4270
4271 Thu Aug 12 16:43:04 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4272
4273         * Makefile.in ($(NM_PROG)): Depend on demangle.o.
4274         (demangle.o): New target.
4275         (cplus-dem.o): Depend on it, to force compilation order when doing
4276         parallel compiles.
4277
4278         * nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
4279         (struct output_fns print_symbol_info): Ditto.
4280         (long_options, usage, main): Add -C --demangle option.
4281         (print_symname): New function, demangling if requested.
4282         (print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
4283
4284 Wed Aug 11 22:57:23 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4285
4286         * Makefile.in: Put CFLAGS last in compilation rules and omit from
4287         linking rules.  Use ARCHDEFS to compile objdump.c.
4288         Update dependencies.
4289         * configure.in: Construct ARCHDEFS based on the BFD target makefile
4290         fragments.
4291         * objdump.c: Conditionalize calls to the print_insn_ARCH functions
4292         according to ARCHDEFS.
4293
4294 Thu Aug 12 08:06:15 1993  Ian Lance Taylor  (ian@cygnus.com)
4295
4296         * ar.c: Removed obsolete and non-functional GNU960 code.
4297
4298 Wed Aug 11 13:08:26 1993  Ian Lance Taylor  (ian@cygnus.com)
4299
4300         * size.c (berkeley_sum): New function.
4301         (bsssize, datasize, textsize): New global variables.
4302         (bss_section_name, data_section_name, text_section_name): Removed.
4303         (print_berkeley_format): Map berkeley_sum over all the sections,
4304         rather than only reporting sizes of specifically named sections.
4305         * Makefile.in ($(OBJDUMP_PROG)): Removed dependency on size.o.
4306
4307 Tue Aug 10 10:46:01 1993  Ian Lance Taylor  (ian@cygnus.com)
4308
4309         * nlmconv.c, nlmconv.h, nlmheader.y: New files for program to
4310         convert object files into NetWare Loadable Modules.
4311         * Makefile.in (NLMCONV_PROG): New macro, define to be nlmconv.
4312         (PROGS): Add NLMCONV_PROG.
4313         (nlmheader.c, nlmheader.o, nlmconv.o, $(NLMCONV_PROG)): New
4314         targets.
4315
4316 Thu Aug  5 15:48:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
4317
4318         * Makefile.in: define MAKEOVERRIDES to an empty string
4319
4320 Wed Aug  4 17:08:08 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4321
4322         * objcopy.c (copy_file): Make failures to process a file nonfatal.
4323
4324 Mon Aug  2 11:28:23 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4325
4326         * nm.c: Add -B option, like --format=bsd.
4327
4328 Tue Jul 27 16:29:54 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4329
4330         * objcopy.c (copy_file): If the file is neither an object nor an
4331         archive, give an error rather than returning success.
4332
4333 Mon Jul 19 16:13:40 1993  Ken Raeburn  (raeburn@rtl.cygnus.com)
4334
4335         * objdump.c (objdump_print_address): Prefer non-local symbols over
4336         local ones, and especially discriminate against debugging symbols.
4337         Also, for relocateable files, try to find a symbol in the current
4338         section, instead of picking one from some random section with a
4339         convenient value (read, section offset).
4340         (disassemble_data): Cast argument to malloc to size_t first.
4341         (dump_data): Likewise.
4342         (dump_relocs): If a single section name is specified, show relocs
4343         only for that section.  Otherwise, silently omit sections without
4344         relocs.  Format table nicely even if values are printed using 16
4345         digits instead of 8.
4346
4347 Fri Jul 16 15:19:59 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4348
4349         * nm.c: Changes for final version of POSIX.2.
4350         (print_symbol_filename_{bsd,sysv,posix}): New functions.
4351         (formats): Add an element for a pointer to them.
4352         (print_symbols): Call it.
4353         (print_object_filename_posix, print_archive_member_posix): Produce
4354         output according to new POSIX.2 spec.
4355
4356         * strings.c (print_strings): Handle STREAM being NULL.
4357         (strings_a_section): Pass a NULL.
4358         (main): Don't open /dev/null.
4359
4360 Thu Jul 15 12:44:09 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4361
4362         * objdump.c (disassemble_data): Handle the m88k.
4363         (display_bfd): Use bfd_errmsg, rather than just claiming that the
4364         bfd is not an object file.
4365
4366 Mon Jul 12 17:55:34 1993  K. Richard Pixley  (rich@cygnus.com)
4367
4368         * Makefile.in (TAGS): make work again by naming directories
4369           explicitly rather than depending on undefined macros.
4370           (INSTALL_XFORM): correct bad install target.
4371
4372 Fri Jul  2 16:58:34 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4373
4374         * strings.c: Doc fixes.
4375
4376 Sun Jun 27 13:35:24 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4377
4378         * Makefile.in: Note dependencies on bucomm.h.
4379         (cplus-dem.o): Link c++filt with version.o.
4380
4381         * strings.c: Include bucomm.h and add prototypes to other decls.
4382         Remove -h option.
4383
4384         * bucomm.h: Declare xrealloc.
4385
4386         * nm.c, objcopy.c, objdump.c, size.c, strings.c (main, usage): Add
4387         --help option.  Put "GNU" in the version message.
4388         (usage): Take stream and exit status as args.
4389         (main): Pass new args to usage.
4390
4391 Fri Jun 25 23:12:12 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
4392
4393         * strings.c, strings.1: New files.
4394         * binutils.texi: Document strings.
4395         * Makefile.in: Add rules for it.
4396
4397 Fri Jun 25 20:44:43 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
4398
4399         * objdump.c: Use size-independent bfd elf section names.
4400
4401 Sun Jun 20 23:09:06 1993  Ken Raeburn  (raeburn@poseidon.cygnus.com)
4402
4403         * objdump.c (objdump_print_address): Handle wide offsets by
4404         calling sprintf_vma.
4405
4406 Fri Jun 18 14:29:12 1993  Per Bothner  (bothner@deneb.cygnus.com)
4407
4408         * objdump.c (syms2):  Removed unused variable.
4409         * objdump.c (remove_useless_symbols):  New function.
4410         * objdump.c (comp):  Simplify.
4411         * objdump.c (dis-assemble_data):  Make simpler and more
4412         efficient how we filter out useless symbols:  Just filter
4413         BEFORE the sort (using remove_useless_symbols).
4414         * objdump.c (objdump_print_address):  Simplify.
4415         Change output syntax to match gdb.
4416
4417 Thu Jun 17 16:53:56 1993  david d `zoo' zuhn (zoo@cygnus.com)
4418         
4419         * Makefile.in: canonicalize install.sh; for use within
4420         this directory (and subdirs)
4421
4422 Mon Jun 14 12:13:22 1993  david d `zoo' zuhn  (zoo at rtl.cygnus.com)
4423
4424         * Makefile.in (install, install-info): remove parentdir support,
4425         use INSTALL_XFORM; define INSTALL_XFORM
4426
4427 Thu Jun 10 17:29:21 1993  Per Bothner  (bothner@cygnus.com)
4428
4429         * objcopy.c (copy_object):  Fix bad size passed to xmalloc().
4430
4431 Mon Jun  7 12:41:12 1993  Per Bothner  (bothner@rtl.cygnus.com)
4432
4433         * Makefile.in (INCLUDES):  Add -I../bfd for sysdep.h and bfd.h.
4434         * configure.in:  No longer need to configure to get sysdep.h.
4435         * objcopy.c (copy_object):  Fix symbol table handling.
4436
4437 Fri Jun  4 17:20:03 1993  Per Bothner  (bothner@cygnus.com)
4438
4439         * objcopy.c (filter_symbols):  Cannot filter the symbols
4440         in place, because that confuses the relocs, so take separate
4441         parameter for output array.
4442         * objcopy.c (sympp):  Make two variables: isympp and osympp.
4443         * objcopy.c (copy_object):  Allocate separate array (osympp)
4444         for filtered symbols.
4445
4446 Fri Jun  4 10:51:44 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4447
4448         * Makefile.in: change recursion test to presence of a configured
4449         testsuite directory
4450
4451 Thu Jun  3 14:05:57 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4452
4453         * Makefile.in (underscore.c): Hack the backquoted command so it
4454         doesn't cause Solaris make to bomb.
4455
4456 Thu Jun  3 10:40:19 1993  Jeffrey Osier  (jeffrey@cygnus.com)
4457
4458         * Makefile.in:  added c++filt and objcopy to MANPAGES variable
4459
4460 Thu Jun  3 00:32:52 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4461
4462         * Makefile.in: rename LOADLIBES to EXTRALIBS
4463
4464 Wed Jun  2 18:30:24 1993  Jeffrey Osier  (jeffrey@cygnus.com)
4465
4466         * c++filt.1, objcopy.1:  new man pages
4467
4468 Fri May 28 15:01:24 1993  Per Bothner  (bothner@rtl.cygnus.com)
4469
4470         * Makefile.in (install):  Also install ar and ranlib in
4471         $(tooldir)/bin;  needed for building libgcc.a.
4472         * objdump.c (objdump_print_address):  Fix the check
4473         "coincidental" label matches by dis-allowing undefined
4474         or com symbols.
4475
4476 Thu May 27 16:58:31 1993  Jeffrey Osier  (jeffrey@cygnus.com)
4477
4478         * biutils.texi:  revised c++filt chapter
4479
4480 Wed May 26 17:24:17 1993  Ian Lance Taylor  (ian@cygnus.com)
4481
4482         * Makefile.in (FLAGS_TO_PASS): Pass down CC and CFLAGS.
4483
4484 Tue May 25 00:26:47 1993  Ken Raeburn  (raeburn@cygnus.com)
4485
4486         * objdump.c (slurp_symtab): Print warning for bad symbol table.
4487         (bfd_elf32_find_section, Elf32_Internal_Shdr): Updated
4488         declarations and uses.
4489
4490         * Makefile.in (DISTSTUFF): Don't build binutils.mm.
4491
4492 Fri May 21 10:51:19 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
4493
4494         * nm.c: Add -f/--format, -P/--portability, -t/--radix options.
4495         Make global variables static.
4496         (main): Make -v like -n, not -V, and make -A like -o, for POSIX.2.
4497         (set_print_radix, set_output_format,
4498         print_{object_filename,archive_filename,archive_member,symbol_info}
4499         {bsd,sysv,posix}): New functions.
4500         (display_file, print_symbols): Call them.
4501
4502         * ar.c: Improve error messages.
4503
4504         * nm.c (main): Handle long options that just set a flag.
4505
4506         * nm.c (main), ar.c (do_show_version), objcopy.c (main), size.c
4507         (main): Exit after printing the version number, per the GNU coding
4508         standards.
4509
4510 Mon May 17 13:20:25 1993  Per Bothner  (bothner@cygnus.com)
4511
4512         * README, Makefile.in:  Minor updates for 2.2.
4513
4514 Fri May 14 11:12:26 1993  Per Bothner  (bothner@cygnus.com)
4515
4516         * Makefile.in (underscore.c):  Automatically generate
4517         (using nm) a file with the variable prepends_underscore.
4518         * Makefile.in (c++filt):  Link underscore.o with cplus-dem.o
4519         so that initial underscores get removed iff appropriate.
4520         * binutils.texi:  Preliminary documentation for c++filt.
4521         * Makefile.in, binutils.texi:  Set to version 2.2.
4522
4523         * NEWS:  Mention copy->objcopy renaming and new c++filt program.
4524
4525 Wed May 12 12:05:36 1993  Ian Lance Taylor  (ian@cygnus.com)
4526
4527         * Makefile.in (cplus-dem.o, $(DEMANGLER_PROG)): Build the
4528         demangler via cplus-dem.o, rather than directly from the .c file.
4529
4530         * objcopy.c: Renamed from copy.c, updated comments accordingly.
4531         * Makefile.in, binutils.texi: Renamed copy to objcopy.
4532         * is-strip.c, maybe-strip.c, not-strip.c: Updated comments for
4533         rename of copy to objcopy.
4534
4535 Mon May 10 17:20:18 1993  Per Bothner  (bothner@cygnus.com)
4536
4537         * binutils.texi (strip, -v option):  Fix typo.
4538
4539 Fri May  7 13:57:50 1993  Ian Lance Taylor  (ian@cygnus.com)
4540
4541         * Makefile.in (RUNTEST): Define.
4542         (FLAGS_TO_PASS): Pass down RUNTEST.
4543
4544 Tue May  4 10:06:50 1993  Ian Lance Taylor  (ian@cygnus.com)
4545
4546         * Makefile.in (DEMANGLER_PROG): Name it c++filt.
4547         (PROG): Also build and install COPY_PROG.
4548
4549 Mon May  3 19:11:48 1993  Per Bothner  (bothner@cygnus.com)
4550
4551         * Makefile.in:  Change definition of $(tooldir) to match FSF.
4552
4553 Wed Apr 28 23:41:32 1993  David J. Mackenzie  (djm@rtl.cygnus.com)
4554
4555         * size.c (usage): Add missing options.
4556         (main): Clean up option parser.
4557
4558         * objdump.c (usage): Add missing options.
4559         (display_file): Print program name before calling
4560         bdf_perror. 
4561
4562         * nm.c (usage): Add missing options.
4563         (main): Clean up option parser.
4564         (display_file): Print program name before calling
4565         bdf_perror. 
4566
4567         * copy.c (copy_usage, strip_usage): Add missing options.
4568
4569         * ar.c (usage): New function.
4570         (main): Call it.
4571         (open_inarch, do_quick_append): Print program name before calling
4572         bdf_perror. 
4573
4574 Thu Apr 22 15:01:35 1993  Ian Lance Taylor  (ian@cygnus.com)
4575
4576         * nm.c (main): Accept and ignore -A and -B for MIPS compatibility.
4577
4578 Mon Apr 19 14:06:59 1993  Rob Savoye  (rob@cygnus.com)
4579
4580         * Makefile.in: Added FLAGS_TO_PASS so tests get run on freshly
4581         built binaries if they exist. (otherwise the path)
4582
4583 Wed Apr  7 22:22:50 1993  Rob Savoye  (rob@cygnus.com)
4584
4585         * Makefile.in: Changed check target to use DejaGnu.
4586
4587 Thu Apr  1 12:37:13 1993  Jim Kingdon  (kingdon@cygnus.com)
4588
4589         * Makefile.in: Remove am29k-pinsn.c, i960-pinsn.c.
4590         objdump.c: a29k and i960 are `disassemble' not `print'.
4591
4592         * objdump.c: Rename print_address to objdump_print_address
4593         and change parameters.
4594         (disassemble_data): Use objdump_print_address.
4595
4596 Wed Mar 31 10:25:29 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
4597
4598         * objdump.c (disassemble_data): print_insn_sparc is now a
4599         `disassemble' not a `print'.
4600         Makefile.in: Remove sparc-pinsn.c (now in libopcodes.a).
4601
4602         * objdump.c (disassemble_data): Use new read_memory_func stuff.
4603
4604 Thu Mar 25 10:38:11 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4605
4606         * objdump.c (fprintf): Declaration of variadic function had better
4607         be a prototype for ANSI C systems.
4608
4609 Mon Mar 22 23:19:46 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4610
4611         * Makefile.in: rename test-install to install-check
4612
4613 Fri Mar 19 14:40:08 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
4614
4615         * objdump.c (disassemble_data): Add H8500.
4616
4617 Fri Mar 19 10:56:51 1993  Jim Kingdon  (kingdon@cygnus.com)
4618
4619         * objdump.c (usage): Mention long options.
4620
4621 Thu Mar 18 14:22:17 1993  Per Bothner  (bothner@rtl.cygnus.com)
4622
4623         * nm.c:  Modify behavior of -o flag for archives to match
4624         BSD4.4 and Sunos 4:  Prefix archive name before each line.
4625
4626         * m68k-pinsn.c:  Removed.  Subsumed by ../opcodes/m68k-dis.c.
4627         * i386-pinsn.c:  Removed.  Subsumed by ../opcodes/i386-dis.c.
4628         * Makefile.in:  Adjust accordingly.
4629         * objdump.c:  Support new-style disassemblers (ones that use
4630         the interface of ../include/dis-asm.h).
4631
4632 Thu Feb 25 15:57:00 1993  Per Bothner  (bothner@rtl.cygnus.com)
4633
4634         * Makefile.in:  When making tar file, remove texinfo/*,
4635         except for texinfo/texinfo.tex.
4636         * ardup.c:  Add extern declaration of strdup.
4637         * Makefile.in (testsuite):  Add 'else true' since otherwise
4638         Ultrix /bin/sh complains.
4639
4640 Wed Feb 24 19:44:18 1993  Per Bothner  (bothner@rtl.cygnus.com)
4641
4642         * Makefile.in:  Set VERSION to 2.1.
4643         * README, NEWS: Updates.
4644         * nm.c:  Add -v as a synonym for -V.
4645
4646 Tue Feb 23 19:00:50 1993  Mike Werner  (mtw@poseidon.cygnus.com)
4647
4648         * configure.in: added testsuite to configdirs.
4649         * Makefile.in: added support for building testsuite.
4650
4651 Mon Feb 22 22:52:10 1993  Per Bothner  (bothner@rtl.cygnus.com)
4652
4653         * objdump.c (disassemble_data):  Print function names when
4654         given by bfd_find_nearest_line.  If not - still print
4655         line numbers.
4656
4657 Mon Feb 22 07:54:03 1993  Mike Werner  (mtw@poseidon.cygnus.com)
4658
4659         * binutils/testsuite: made modifications to testcases, etc., to allow
4660         them to work properly  given the reorganization of deja-gnu and the
4661         relocation of the testcases from deja-gnu to a "tool" subdirectory.
4662
4663 Mon Feb 22 10:27:24 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
4664
4665         * objdump.c (dump_data): Free up section contents each time
4666         through the loop.  Reported by minyard@bnr.ca.
4667
4668 Sun Feb 21 10:55:55 1993  Mike Werner  (mtw@poseidon.cygnus.com)
4669
4670         * binutils/testsuite: Initial creation of binutils/testsuite.
4671         Migrated dejagnu testcases and support files for testing nm to
4672         binutils/testsuite from deja-gnu.  These files were moved "as is"
4673         with no modifications.  This migration is part of a major overhaul
4674         of dejagnu.  The modifications to these testcases, etc., which
4675         will allow them to work with the new version of dejagnu will be
4676         made in a future update.
4677
4678 Fri Feb 12 10:05:20 1993  Fred Fish  (fnf@cygnus.com)
4679
4680         * Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
4681         * Makefile.in (LIBIBERTY):  Use LIBIBERTY_BIN_DIR.
4682         * Makefile.in (DEMANGLER_PROG):  New program to build.  Add macro
4683         and rule.
4684         * Makefile.in (PROGS):  Add DEMANGLER_PROG.
4685
4686 Tue Jan 26 11:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
4687
4688         * copy.c, nm.c, objdump.c, size.c: Use new bfd_is_com_section
4689         macro rather than checking for equality to bfd_com_section.
4690
4691 Fri Jan  8 15:50:05 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4692
4693         * objdump.c (disassemble_data): Fix code to find first useless
4694         symbol.
4695
4696 Thu Jan  7 13:13:31 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4697
4698         * objdump.c (disassemble_data): Use mips_print_insn for MIPS.
4699         Don't core dump if bfd_find_nearest_line returns false.
4700
4701 Wed Jan  6 17:14:01 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
4702
4703         * objdump.c (disassemble_data): know how to disassemble z8000s
4704         too.
4705
4706 Wed Jan  6 15:16:27 1993  Per Bothner  (bothner@cygnus.com)
4707
4708         * arsup.h (interactive), bucomm.h (program_name):  Prefix
4709         with 'extern', to avoid warnings from some compilers.
4710
4711 Wed Jan  6 15:14:11 1993  Per Bothner  (bothner@rtl.cygnus.com)
4712
4713         * arparse.y: fix unnecessary shift/reduce
4714
4715 Tue Dec 22 15:46:56 1992  Per Bothner  (bothner@rtl.cygnus.com)
4716
4717         * Makefile.in:  Make check depend on all.
4718         * Makefile.in (distclean): Remove sysdep.h.
4719         * size.c:  Use %u format where appropriate.
4720         * objdump.c:  Standardize:  L_SET -> SEEK_SET.
4721         * objdump.c:  Use new macro bfd_asymbol_bfd.
4722         * configure.in:  Allow std-host as the default ${mys_host}.
4723
4724 Thu Dec 17 19:38:19 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4725
4726         * Makefile.in: added dvi target, define and use TEXI2DVI
4727
4728 Tue Dec 15 18:05:07 1992  Per Bothner  (bothner@cygnus.com)
4729
4730         * Makefile.in (dist):  Fix permissions before release.
4731         * size.c:  Use bfd_size_type (and long) where appropriate.
4732         * ar.c:  Make writing a map the default, to be compatible
4733         with SYSV and Posix.2.  Remove some bogus kludges that
4734         handled __.SYMDEF directly.
4735         * NEWS:  New file.
4736
4737 Mon Nov  9 13:36:53 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4738
4739         * Makefile.in: flex no longer needs the -S flag
4740
4741 Sat Nov  7 15:06:13 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4742
4743         * ar.c (extract_file): utime needs a pointer to a utimbuf
4744
4745         * Makefile.in: handle -I includes better, adding $(BASEDIR)/bfd to
4746         the list (since some of the bfd/hosts/*.h files include other
4747         files from that directory)
4748
4749 Fri Nov  6 00:12:51 1992  John Gilmore  (gnu@cygnus.com)
4750
4751         * i960-pinsn.c (MEM_MAX, MEM_SIZ):  Set upper bound properly.
4752
4753 Thu Nov  5 03:37:15 1992  John Gilmore  (gnu@cygnus.com)
4754
4755         Clean up some old BFD ansification macros.
4756
4757         * arsup.h, bucomm.h, objdump.h:  Remove EXFUN from binutils.
4758         It still remains as a local macro in gmalloc.c, which is derived
4759         from some other copy of GNU Malloc somewhere (FIXME).
4760
4761         * ar.c, objdump.c, size.c:  Replace EXFUN with PROTO.  Make static
4762         fns really static.
4763         * arsup.h:  Declare extract_files.
4764
4765 Mon Nov  2 12:42:11 1992  Ian Lance Taylor  (ian@cygnus.com)
4766
4767         * ar.c (extract_file): instead of checking USG: if POSIX_UTIME,
4768         use utime and utimbuf structure, otherwise if USE_UTIME use utime
4769         and array of two longs, otherwise use utimes.
4770
4771 Thu Oct 15 13:57:35 1992  Per Bothner  (bothner@cygnus.com)
4772
4773         * binutils.tex:  Document yesterday's changes to strip and copy.
4774
4775 Wed Oct 14 13:22:14 1992  Per Bothner  (bothner@cygnus.com)
4776
4777         * copy.c:  Re-do command-line parsing to use getopt_long().
4778         Add long option names.  Re-think option letters to be more
4779         consistent.
4780         * copy.c:  New function filter_symbols() for stripping only
4781         debug-symbols and/or local symbols.  Use these to support
4782         the previously-missing options of the old FSF strip.
4783
4784 Tue Oct 13 01:24:20 1992  John Gilmore  (gnu@cygnus.com)
4785
4786         * configure.in (host):  Use ${srcdir}/../bfd/configure.host rather
4787         than repeating a copy of it here.
4788
4789 Wed Oct  7 12:53:52 1992  Ken Raeburn  (raeburn@cygnus.com)
4790
4791         * copy.c (main): Even if is_strip, accept -d argument indicating
4792         alternate output format.  Needed by gdb for Nindy.
4793
4794         * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
4795
4796 Tue Oct  6 16:33:56 1992  Jeffrey Osier  (jeffrey@cygnus.com)
4797
4798         * binutils.texi:  added documentation for "copy"
4799
4800 Tue Oct  6 14:22:56 1992  Per Bothner  (bothner at PersSony)
4801
4802         * Makefile.in (*clean rules): Some cleaning up.
4803         * Makefile.in (dist): Make diststuff in gprof for a dist.
4804
4805         * ar.c (do_show_version):  New function.
4806         * ar.c (main):  Fix so "ar -V" works.
4807
4808 Thu Oct  1 22:44:45 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4809
4810         * configure.in: now uses the cpu-vendor-os triple instead of
4811         nested cases.
4812
4813 Fri Sep 25 22:41:08 1992  John Gilmore  (gnu@cygnus.com)
4814
4815         * i960-pinsn.c:  Change bzero to memset.
4816         * sparc-pinsn.c:  Change index to strchr.
4817
4818 Mon Sep 21 14:39:56 1992  Ian Lance Taylor  (ian@cygnus.com)
4819
4820         * m68k-pinsn (print_insn_arg, fetch_arg): added support for
4821         operands to memory management instructions, from WRS.
4822
4823 Tue Sep 15 15:26:38 1992  Ian Lance Taylor  (ian@cygnus.com)
4824
4825         * Makefile.in (install): if $(tooldir) exists, install nm and
4826         strip in $(tooldir)/bin.
4827
4828 Thu Sep  3 11:57:40 1992  Per Bothner  (bothner@rtl.cygnus.com)
4829
4830         * Makefile.in:  Let's call it version 2.0.
4831
4832 Wed Sep  2 00:25:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
4833
4834         * Makefile.in:  Bump to version 0.98.
4835         * TODO, README:  Minor updates.
4836
4837         * Makefile.in:  Added mostlyclean, distclean rules,
4838         and cleaned up clean, realclean.
4839
4840 Sun Aug 30 21:18:59 1992  Ian Lance Taylor  (ian@cygnus.com)
4841
4842         * Makefile.in: map program names through program_transform_name
4843         when installing.
4844
4845 Sun Aug 30 18:09:03 1992  Per Bothner  (bothner@rtl.cygnus.com)
4846
4847         * Makefile.in:  Bump to versions 1.97.90.
4848         * cplus-dem.c:  Removed.  Was nowhere used - and if some
4849         programs are changed to to demangling should now use the
4850         versions in libiberty.
4851
4852 Thu Aug 27 12:58:09 1992  Brendan Kehoe  (brendan@cygnus.com)
4853
4854         * configure.in: add we32k
4855
4856 Mon Aug 24 14:53:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4857
4858         * ar.c (map_over_members): if the element of the archive has a
4859         null name, fill it in.
4860
4861         * nm.c (do_one_rel_file): only warn if a bfd's flags say there
4862         will be symbols and there aren't any.
4863
4864 Wed Aug 19 11:20:25 1992  Ian Lance Taylor  (ian@cygnus.com)
4865
4866         * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
4867
4868 Tue Aug 18 20:45:48 1992  Rob Savoye  (rob@cygnus.com)
4869
4870         * nm.c objdump.c: Added support for a +version (-V)
4871         to print the version number.
4872
4873         * ar.c, copy.c: Added support for a -V option to print
4874         the version number.
4875
4876 Tue Aug 18 13:28:44 1992  Ian Lance Taylor  (ian@cygnus.com)
4877
4878         * config/mh-apollo68v: removed -g from CC definition.
4879
4880         * Makefile.in: always create installation directories.
4881
4882 Mon Aug 17 18:33:41 1992  Per Bothner  (bothner@rtl.cygnus.com)
4883
4884         * m68k-pinsn.c:  Minor fix in style of output (don't use
4885         range to indicate floating point control registers).
4886
4887 Tue Aug 11 23:42:21 1992  Per Bothner  (bothner@cygnus.com)
4888
4889         * ar.c (main):  Don't *always* set the verbose flag!
4890
4891 Wed Aug  5 11:25:27 1992  Per Bothner  (bothner@rtl.cygnus.com)
4892
4893         * copy.c:  When is_strip (because it is invoked as the strip
4894         program), follow traditional argv processing:
4895         'strip file1 file2' now strips file1 and file2, rather
4896         than stripping file1 (as input), leaving output in file2.
4897
4898 Mon Jul 27 16:28:08 1992  Per Bothner  (bothner@rtl.cygnus.com)
4899
4900         * objdump.c (display_info, display_info_table):  Call
4901         bfd_set_format() on dummy bfd before using it (twice).
4902         * ar.c:  Make sure archive is created on command 'r'
4903         even when no elements are inserted.  (Clean up and
4904         simplify some non-working related code.)
4905
4906 Mon Jul 20 02:48:38 1992  D. V. Henkel-Wallace  (gumby@cygnus.com)
4907
4908         * configure.in: hppa support doesn't assume hp OS (from sef).
4909
4910 Sat Jul 18 14:35:22 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
4911
4912         * configure.in: recognize hppa hosts (bsd & hpux), error messages
4913         to stderr, not stdout
4914
4915 Fri Jul 17 18:39:44 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
4916
4917         * ar.1, binutils.texi, i960-pinsn.c, nm.1, objdump.1, ranlib.1,
4918           size.1, sparc-pinsn.c, strip.1: removed rcsid's.
4919
4920 Thu Jul 16 16:55:24 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
4921
4922         * Makefile.dos: removed rcsid.
4923
4924 Thu Jul 16 08:23:07 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4925
4926         * objdump.c (display_bfd): print state of BFD_IS_RELAXABLE too
4927
4928 Tue Jun 30 20:26:15 1992  D. V. Henkel-Wallace  (gumby@cygnus.com)
4929
4930         * Makefile.in: Add program_suffix (parallel to program_prefix)
4931
4932 Thu Jun 25 04:52:45 1992  John Gilmore  (gnu at cygnus.com)
4933
4934         * nm.c (sorters):  Lint.  Remove excess whitespace.
4935
4936 Wed Jun 24 13:48:07 1992  Per Bothner  (bothner@cygnus.com)
4937
4938         * nm.c (valueof macro):  Add missing parentheses.
4939         (Their lack screwed up numeric_forward().)
4940
4941 Sun Jun 14 10:33:27 1992  John Gilmore  (gnu at cygnus.com)
4942
4943         * objdump.c (dump_elf_stabs):  Also dump .stab.index and
4944         .stab.excl sections.
4945         (dump_elf_stabs_1):  Split out main body of old dump_elf_stabs.
4946         * objdump.1, binutils.texi:  Document new sections dumped.
4947
4948 Fri Jun 12 22:23:35 1992  John Gilmore  (gnu at cygnus.com)
4949
4950         * size.c, objdump.c, bucomm.c:  Lint.
4951
4952 Thu Jun 11 01:19:06 1992  John Gilmore  (gnu at cygnus.com)
4953
4954         * objdump.c (dump_elf_stabs): New feature: --stabs prints out a
4955         .stab section from an ELF file.  Installed under #ifdef
4956         ELF_STAB_DISPLAY so it can be easily disabled, since it requires
4957         bfd-internals header files and such.
4958         * objdump.1, binutils.texi:  Update for --stabs.  Also fix
4959         objdump's doc to use -- rather than + for long options.
4960         (FIXME:  Not yet fixed everywhere in binutils.texinfo.)
4961
4962 Wed Jun 10 07:53:24 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
4963
4964         * objdump.c(display_info), patches from
4965         mohring@informatik.tu-muenchen.de to print the table much more
4966         nicely.
4967
4968 Thu May 28 13:36:16 1992  Per Bothner  (bothner@rtl.cygnus.com)
4969
4970         * objdump.c:  Add another enum->int cast, for the sake of
4971         old compilers (such as PCC).
4972
4973 Wed May 27 13:01:44 1992  Per Bothner  (bothner@rtl.cygnus.com)
4974
4975         * arlex.l:  Don't include <sysdep.h> (unneeded conflicts).
4976         Add declaration of strdup().
4977
4978 Fri May 22 13:40:37 1992  Per Bothner  (bothner@cygnus.com)
4979
4980         * Makefile.in:  Use srcdir instead of VPATH in ldgram/ldlex
4981         rules, since these are used when building a distribution.
4982         * Makefile.in (arlex.c):  Don't re-direct output, since that
4983         leaves a bogus output files if it fails.
4984
4985         * arlex.l:  Make work with lex, for what it's worth.
4986         * Makefile.in:  Better lex support.
4987         * Makefile.in (dist):  Generate flex and bison outputs
4988         for distribution.
4989
4990 Thu May 14 17:17:59 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
4991
4992         * Makefile.in: get BISON definition right.
4993
4994 Fri May  8 07:47:08 1992  K. Richard Pixley  (rich@cygnus.com)
4995
4996         * sanity.sh: default TMPDIR to ".".
4997
4998 Thu May  7 12:34:50 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
4999
5000         * binutils.texi: add doc for ar command language.
5001
5002 Wed May  6 18:05:36 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5003
5004         * arparse.y: make END call ar_end
5005         * arsup.c (ar_end): added, deletes temp file if archive session
5006         aborted.
5007
5008
5009 Wed May  6 11:08:53 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
5010
5011         * Makefile.in: use bison & flex from ../ if they exist.  Also,
5012           FLEX->LEX.
5013
5014         * sanity.sh: remove temporary directory when finished.
5015
5016 Tue May  5 12:00:58 1992  Per Bothner  (bothner@rtl.cygnus.com)
5017
5018         * Makefile.in:  Bump to version 1.97.
5019         * ar.c:  Declare errno for machines that need it.
5020
5021 Mon May  4 23:29:51 1992  John Gilmore  (gnu@cygnus.com)
5022
5023         * objdump.c (display_info):  Handle error cases without coredump.
5024         Close the dummy temporary file we open in the loop.
5025         * Makefile.in (arsup.o):  Add kludge to build with Sun Make.
5026
5027 Fri May  1 16:20:23 1992  K. Richard Pixley  (rich@cygnus.com)
5028
5029         * Makefile.in: added test-install target.
5030
5031         * sanity.sh: new file.
5032
5033         * Makefile.in: use sanity test on make check.
5034
5035 Tue Apr 21 13:38:37 1992  K. Richard Pixley  (rich@cygnus.com)
5036
5037         * Makefile.in: rework CFLAGS so that they can be passed on the
5038           command line to make.  Remove MINUS_G.  Default CFLAGS to -g.
5039
5040 Wed Apr 15 14:33:07 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
5041
5042         * arsup.c, arsup.h, arparse.y, arlex.l: support for archive
5043         scripting language.
5044
5045 Fri Mar  6 21:54:53 1992  K. Richard Pixley  (rich@cygnus.com)
5046
5047         * Makefile.in: added check target.
5048
5049 Thu Mar  5 21:35:49 1992  K. Richard Pixley  (rich@cygnus.com)
5050
5051         * Makefile.in: added clean-info target.
5052
5053 Tue Mar  3 15:36:37 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
5054
5055         * Makefile.in: remove $(COPY_PROG) from PROGS.  It shouldn't be
5056           installed. added tooldir and program_prefix.
5057
5058 Wed Feb 26 18:04:40 1992  K. Richard Pixley  (rich@cygnus.com)
5059
5060         * Makefile.in, configure.in: removed traces of namesubdir,
5061           -subdirs, $(subdir), $(unsubdir), some rcs triggers.  Forced
5062           copyrights to '92, changed some from Cygnus to FSF.
5063
5064 Sun Feb 16 12:53:02 1992  Per Bothner  (bothner at cygnus.com)
5065
5066         * Makefile.in:  Bump version to 1.96, and remove -beta
5067         suffix from distribution name.
5068         * m68k-pinsn.c:  New macro COERCE_SIGNED_CHAR to extract
5069         the signed value of a character (even if chars are unsigned).
5070         * sparc-pinsn.c:  Add new operand types.
5071
5072 Thu Feb  6 12:14:19 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
5073
5074         * objdump.c (disassemble_data): don't print a section's contents
5075         if it's not loadable (eg bss)
5076
5077 Tue Jan 28 11:11:06 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
5078
5079         * m68k-pinsn.c (print_insn_arg): fixed so that -ve branch
5080         displacements don't get printed as large +ve ones.
5081
5082 Fri Jan 24 14:47:53 1992  Steve Chamberlain  (sac at rtl.cygnus.com)
5083
5084         * copy.c, nm.c, objdump.c, size.c : changed to use the
5085         new reloc scheme.
5086
5087
5088 Mon Dec 30 18:34:41 1991  Per Bothner  (bothner at cygnus.com)
5089
5090         * bucomm.c (print_arelt_descr):  Tweek the output format
5091         so that 'ar tv' output follows Posix 1003.2/D11.
5092         Output is now also identical to Sun's (except __.SYMDEF).
5093
5094 Mon Dec 30 06:09:53 1991  John Gilmore  (gnu at cygnus.com)
5095
5096         * Makefile.in:  Make `make' output more readable.
5097
5098 Wed Dec 18 15:04:45 1991  Per Bothner  (bothner at cygnus.com)
5099
5100         * Makefile.in:  Bump to version 1.94.
5101
5102 Wed Dec 11 16:48:09 1991  Steve Chamberlain  (sac at cygnus.com)
5103
5104         * ar.c: added "b" to fopens for dos
5105         * configdj.bat, makefile.dos new files from DJ
5106
5107 Tue Dec 10 04:07:26 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
5108
5109         * Makefile.in: infodir belongs in datadir.
5110
5111 Sat Dec  7 17:09:37 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
5112
5113         * bucomm.h: created to hold prototypes of bucomm.c
5114         * objdump.h: created to hold prototyes of objdump.c
5115         * am29k-pinsn.c: include objdump.h
5116         * ar.c: include bucomm.h, get ar.h from the right place and
5117         include libbfd.h
5118         * bucomm.c: defunize bfd_fatal
5119         * copy.c: include bucomm.h, lint.
5120         * i960-pinsn.h: include bucomm.h
5121         * m68k-pinsn.h: lint
5122         * nm.c: include bucomm.h, lint
5123         * objdump.c: lint
5124         * sparc-pinsn.c: include objdump.h
5125
5126         
5127
5128 Fri Dec  6 23:02:14 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
5129
5130         * Makefile.in: added standards.text support.  install using
5131           INSTALL_PROGRAM and INSTALL_DATA.
5132
5133         * configure.in: configure now does all of it's work from objdir so
5134           make file existence tests against ${srcdir}.
5135
5136 Thu Dec  5 22:46:22 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
5137
5138         * Makefile.in: idestdir and ddestdir go away.  Added copyrights
5139           and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
5140           and mandir now keyed off datadir by default.
5141
5142 Wed Dec  4 22:42:03 1991  Per Bothner  (bothner at cygnus.com)
5143
5144         * Makefile.in:  Bump to version 1.93.
5145         * Makefile.in:  Add make-strip.o:maybe-strip.c dependency
5146         for make versions that provide half-baked VPATH-support (e.g. Sun's).
5147         * size.c:  Improvements suggested by
5148         "david d [zoo] zuhn" <zoo@aps1.spa.umn.edu>:
5149         - Don't emit (Berkeley) headers if no files were found.
5150         - Return a non-zero return code on failure.
5151
5152 Sat Nov 30 21:34:19 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
5153
5154         Changes due to include file renaming:
5155         * am29k-pinsn.c: a29k-opcode.h  -> opcode/a29k.h
5156         * sparc-pinsn.c: sparc-opcode.h -> opcode/sparc.h
5157         * m68k-pinsn.c:  m68k-opcode.h  -> opcode/m68k.h
5158         * nm.c:          stab.gnu.h     -> aout/stab_gnu.h
5159
5160 Tue Nov 19 19:20:43 1991  Per Bothner  (bothner at cygnus.com)
5161
5162         * README:  Mention MINIMIZE flag for bfd's make.
5163
5164 Mon Nov 18 12:05:37 1991  Per Bothner  (bothner at cygnus.com)
5165
5166         * README:  Various improvements.
5167
5168 Sun Nov 17 23:40:59 1991  Per Bothner  (bothner at cygnus.com)
5169
5170         * Makefile.in:  Bump to version 1.92.
5171         * version.c, Makefile.in:  Get version string from Makefile.
5172         * copy.c, is-strip.c, not-strip.c, maybe-strip.c, Makefile.in:
5173         Make the same change that we earlier did for ar/ranlib:
5174         Generate two different binaries for strip and copy and use
5175         a global variable with different values to distinguish
5176         ostrip from copy.  (-1 means to use argv[0] to decide,
5177         so you can get the old behavior, but it is no longer the default).
5178         * copy.c (copy_file):  Set EXEC_P of output bfd if input is so.
5179         * copy.c (main):  If is_strip==-1, compare last 5 chars
5180         of argv[0], not the whole path.
5181         * copy.c (main): Return 0, not 1.
5182         * copy.c (setup_sections):  Fix due to change in bfd_make_section
5183         now failing if asked for a duplicate section.
5184         * strip.c, ostrip.c:  Removed obsolete files.
5185         * ar.c, not-ranlib.c, maybe-ranlib.c:
5186         Change encoding of is_ranlib variable to be consistent
5187         with is_strip for strip.copy (i.e -1 to means use argv[0]).
5188
5189 Thu Nov 14 20:11:02 1991  Per Bothner  (bothner at cygnus.com)
5190
5191         * version.c (program_version): Update to version 1.92.
5192
5193 Tue Nov 12 16:17:53 1991  Per Bothner  (bothner at cygnus.com)
5194
5195         * ar.c (get_pos_bfd):  Previous fix was missing a "break".
5196
5197 Thu Nov  7 08:55:56 1991  Steve Chamberlain  (sac at cygnus.com)
5198
5199         * am29k-pinsn.c: Fixed bug in mtacc, dmac and fmac instruction
5200         encodings. (Thaks to David Wood)
5201
5202 Sun Nov  3 14:50:23 1991  Per Bothner  (bothner at cygnus.com)
5203
5204         * Makefile.in ($(DIST_NAME).tar.Z), TODO:  Various fixes.
5205         * ar.c (get_pos_bfd): Fix to handling of before/after
5206         positioning options.
5207         * bucomm.c (fatal):  MISSING_VFPRINTF is no longer an issue,
5208         since libiberty contains vfprintf etc if otherwise missing.
5209         * m68k-pinsn.c (print_insn_arg):  Support BB/BW/BL
5210         type operands, as used by branch instructions.
5211         * nm.c:  Delegate printing of symbols to BFD,
5212         by using bfd_print_symbol to do the formatting.
5213
5214 Mon Oct 28 11:20:47 1991  Steve Chamberlain  (steve at cygnus.com)
5215
5216         * ar.c (write_archive.c): added unlink before rename since some
5217         systems can't rename onto an existant file.
5218
5219 Mon Oct 21 09:47:23 1991  Steve Chamberlain  (steve at rtl.cygnus.com)
5220
5221         * nm.c: now doesn't crash if a symbol with no section and no
5222         SEC_ABS appears.
5223
5224 Thu Oct 17 15:25:50 1991  Per Bothner  (bothner at cygnus.com)
5225
5226         * Makefile.in, version.c:  Bump to version 1.91.
5227
5228 Wed Oct 16 11:45:36 1991  Per Bothner  (bothner at cygnus.com)
5229
5230         * Makefile.in, ar.c, bucomm.c, copy.c, cplus-dem.c, filemode.c,
5231         i960-pinsn.c, m68k-pinsn.c, nm.c, objdump.c, size.c, sparc-pinsn.c,
5232         * strip.c: Add or update Copyright notice.
5233         * TODO:  Add note on 'nm -a'.   
5234         * version.c: Update version number to 1.90.
5235         * Makefile.in: Fix making of documentation for dist.
5236
5237 Tue Oct 15 00:17:17 1991  Per Bothner  (bothner at cygnus.com)
5238
5239         * README: New file.
5240         * Makefile.in: New kludgy rules for making a tarfile.
5241         * Makefile.in: Fix bindir path.
5242
5243 Mon Oct 14 17:34:29 1991  Roland H. Pesch  (pesch at cygnus.com)
5244
5245         * Makefile.in: add targets binutils.mm, binutils.me
5246
5247 Fri Oct 11 22:44:21 1991  John Gilmore  (gnu at cygnus.com)
5248
5249         * Makefile.in:  Avoid Sun Make VPATH bugs by adding dependencies.
5250
5251 Fri Oct 11 12:51:33 1991  Roland H. Pesch  (pesch at cygnus.com)
5252
5253         * Makefile.in: add target "binutils.ms"
5254
5255         * binutils.texinfo: minor restructuring for texi2roff comfort.
5256
5257 Fri Oct 11 04:12:28 1991  John Gilmore  (gnu at cygnus.com)
5258
5259         Restructure configuration scheme for bfd, binutils, ld.
5260
5261         * include/sys/h-*.h:  Move to bfd/hosts/h-*.h.
5262         * configure.in:  Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
5263         Change some config names to match other dirs.
5264         * *.c:  Include bfd.h before sysdep.h, so ansidecl and PROTO()
5265         get defined first.
5266         * Makefile.in:  Use -I. to get sysdep.h.
5267
5268 Wed Oct  9 22:42:56 1991  Per Bothner  (bothner at cygnus.com)
5269
5270         * nm.c (print_symbols):  Handle NULL name field of symbol.
5271         * Makefile.in: Removed spurious comment.
5272
5273 Tue Oct  8 16:55:03 1991  Roland H. Pesch  (pesch at cygnus.com)
5274
5275         * binutils.texinfo: minor typos, phrasing, formatting fixes.
5276
5277 Tue Oct  8 15:13:20 1991  Per Bothner  (bothner at cygnus.com)
5278
5279         * configure.in: Get host file from ../bfd/config, not config.
5280         * config/*: Remove config directory and its files.
5281
5282 Tue Oct  8 13:58:59 1991  Roland H. Pesch  (pesch at cygnus.com)
5283
5284         * Makefile.in: new targets binutils.dvi, binutils.info
5285
5286         * binutils.texinfo: remove most remaining FIXME's, delete
5287         references to __.SYMDEF by name
5288
5289
5290 Tue Oct  8 10:23:44 1991  Steve Chamberlain  (steve at cygnus.com)
5291
5292         * objdump.c (print_address) Print addresses nicely.
5293
5294 Mon Oct  7 11:31:05 1991  Per Bothner  (bothner at cygnus.com)
5295
5296         * ar.c, Makefile.in, new files {is,not,maybe}-ranlib.c:
5297         Make two different binaries for ar and ranlib, instead of
5298         distinguishing them at run time using argv[0].
5299         (Old behavior is still available if you "make ar_with_ranlib",
5300         but it is not the default.)
5301         * ranlib.sh (new):  An alternative one-line
5302         shell implementation of ranlib.
5303
5304 Fri Oct  4 21:49:44 1991  John Gilmore  (gnu at cygnus.com)
5305
5306         * objdump.c:  Cope with renames of a few BFD types & enums.
5307
5308 Fri Oct  4 19:08:09 1991  Roland H. Pesch  (pesch at cygnus.com)
5309
5310         * binutils.texinfo: add new file (rudimentary docn)
5311
5312 Mon Sep 30 12:30:39 1991  Per Bothner  (bothner at cygnus.com)
5313
5314         * config/hmake-news: Add new file (for Sony NEWSOS3).
5315         * bucomm.c (fatal):  Conditionally compile fatal() depending on
5316         MISSING_VFPRINTF, and don't confuse the issue with NO_VARARGS.
5317         * objdump.c (dump_headers):  Trivial output format change.
5318         * objdump.c (display_info): Loop over integers, not enums,
5319         to appease old compilers.
5320
5321 Mon May 20 16:14:07 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
5322
5323         *objdump.c *nm.c *copy.c :hanged some types to work with 64 bit object files
5324
5325 Thu May 16 16:06:55 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
5326      from bother
5327         * objdump.c (print_address): Make disasembled output more
5328         consistent with gdb and as: Add 0x when printing hex.
5329         Don't print extra leading zeros.
5330         Attempt to not print "filename.o".
5331         * objdump.c: Add some enum-to-int casts to accomodate old compilers.
5332
5333
5334 Fri May  3 22:21:44 1991  John Gilmore  (gnu at cygint.cygnus.com)
5335
5336         * copy.c:  Change =& constructs to = &, since they confuse older
5337         C compilers.
5338
5339 \f
5340 Local Variables:
5341 mode: change-log
5342 left-margin: 8
5343 fill-column: 74
5344 version-control: never
5345 End: