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