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