1 2000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3 * rdcoff.c (external_coff_symbol_p): K&R-ise.
5 2000-07-20 H.J. Lu <hjl@gnu.org>
7 * binutils/binutils.texi: Put back "@end table" deleted by
10 2000-07-05 Kenneth Block <krblock@computer.org>
12 * binutils/nm.c: Add optional style to demangle switch.
13 * binutils/objdump.c: Add optional style to demangle switch.
14 * binutils/addr2line.c: Add optional style to demangle switch.
15 * binutils/binutils.texi: Document optional style to demangle
18 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
20 * MAINTAINERS: Add self as CRIS port maintainer.
21 * readelf.c: Include elf/cris.h.
22 (guess_is_rela): Handle EM_CRIS.
23 (dump_relocations): Ditto.
24 (get_machine_name): Ditto.
25 * Makefile.am: Rebuild dependencies.
26 * Makefile.in: Regenerate.
27 * po/binutils.pot: Regenerate.
29 2000-07-19 H.J. Lu <hjl@gnu.org>
31 * readelf.c (get_dynamic_type): Change "AUXILARY" to
33 (process_dynamic_segment): Print out strings for DT_CONFIG,
34 DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
36 2000-07-19 Mark Kettenis <kettenis@gnu.org>
38 * nm.c (usage): Change output of `nm --help' to include a
39 description of the purpose of the program and a detailed
40 description of the accepted options.
42 2000-07-19 H.J. Lu <hjl@gnu.org>
44 * readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
47 2000-07-19 H.J. Lu <hjl@gnu.org>
49 * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
51 2000-07-19 H.J. Lu <hjl@gnu.org>
53 * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
55 (process_dynamic_segment): Likewise.
57 * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
58 DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
59 (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
60 DF_1_NODUMP and DF_1_CONLFAT.
62 2000-07-18 Nick Clifton <nickc@cygnus.com>
64 * binutils.texi (readelf): Fix spelling typo.
66 2000-07-11 Mark Kettenis <kettenis@gnu.org>
68 * objdump.c (usage): Make output of `objdump --help' more
69 consistent with the rest of the GNU world. Add a line describing
70 the purpose of the program.
72 2000-07-10 David Huggins-Daines <dhd@linuxcare.com>
74 * stabs.c (parse_stab_range_type): Cast to proper type to fix
77 2000-07-10 Ryan Bradetich <rbradetich@uswest.net>
79 * readelf.c (get_dynamic_data): Add casts and use unsigned chars
81 (process_symbol_table): Ditto.
82 (procesS_extended_line_op): Ditto.
83 (display_debug_lines): Ditto.
84 (display_debug_pubnames): Ditto.
85 (read_and_display_attr): Ditto.
87 2000-07-09 Nick Clifton <nickc@cygnus.com>
89 * MAINTAINERS: Add several more port specific maintainers.
91 2000-07-05 Nick Clifton <nickc@cygnus.com>
93 * MAINTAINERS: Add blanket write privs for Michael Meissner.
95 2000-06-05 DJ Delorie <dj@redhat.com>
99 2000-07-01 Eric Fifer <EFifer@sanwaint.com>
101 * dllwrap.c: Changed mistaken dyn_string_append() calls
102 to dyn_string_append_cstr().
104 2000-07-01 Alexander Aganichev <AAganichev@hypercom.com>
106 * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
107 struct debug_type stores size in bytes.
109 2000-07-01 Alan Modra <alan@linuxcare.com.au>
111 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
112 (CLEANFILES): Add DEPA.
113 * Makefile.in: Regenerate.
115 2000-06-27 Alan Modra <alan@linuxcare.com.au>
117 * ar.c: Revert incorrect 2000-06-25 patch.
118 * bucomm.c: Likewise.
120 2000-06-25 Mark Elbrecht <snowball3@bigfoot.com>
122 * rdcoff (parse_coff_symbol): Treat GNU weak symbols as external.
123 (external_coff_symbol_p): New function.
124 (parse_coff): Use it.
126 2000-06-25 Alexander Aganichev <AAganichev@hypercom.com>
128 * ar.c (normalize): Advance past both characters in a DOS based
129 <letter>: filepath prefix.
131 * bucomm.c (make_tempname): Likewise.
133 2000-06-24 Nick Clifton <nickc@cygnus.com>
135 * objdump.c (usage): Fix description of --stabs switch.
137 2000-06-22 Alan Modra <alan@linuxcare.com.au>
139 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
141 * Makefile.in: Regenerate.
143 2000-06-20 Alexander Aganichev <AAganichev@hypercom.com>
145 * ar.c (normalize): Correct pointer comparison when checking for
148 * bucomm.c (make_tempname): Likewise.
150 * ieee.c (ieee_start_compilation_unit): Correct pointer comparison
151 and search for backslashes in the original pathname.
152 (ieee_add_bb11): Likewise.
154 2000-06-18 Nick Clifton <nickc@redhat.com>
156 * ar.c (print_contents): Improve verbose message.
158 2000-06-15 H.J. Lu <hjl@gnu.org>
160 * dyn-string.c: Removed. Not needed with dyn-string.c in
162 * dyn-string.h: Likewise.
164 * Makefile.am: Remove references to dyn-string.c and
165 dyn-string.h. Rebuild dependency.
166 * Makefile.in: Rebuild.
168 2000-06-15 H.J. Lu <hjl@gnu.org>
170 * binutils.texi: Put a warning on copying relocatable object
171 files between two different formats.
173 2000-06-13 DJ Delorie <dj@cygnus.com>
175 * rcparse.y (control): ICON controls take an id as the first
176 parameter, not an optional string. Also, call new convenience
177 function that takes res_id's.
178 * resrc.c (define_control): missing text means zero-length string,
180 (define_icon_control): New.
181 * windres.h: declare define_icon_control.
183 2000-06-13 H.J. Lu <hjl@gnu.org>
185 * configure: Regenerate.
187 2000-06-08 David O'Brien <obrien@FreeBSD.org>
189 * configure.in (VERSION): Update to show this is the CVS mainline.
191 2000-06-02 David O'Brien <obrien@FreeBSD.org>
193 * strings.c (isgraphic): Interpret <TAB> as a printable character,
194 analogous to <SPACE>.
196 2000-05-30 Alan Modra <alan@linuxcare.com.au>
198 * objdump.c (display_target_list): Use bfd_close_all_done, not
199 bfd_close to fix crash caused by 2000-05-24 change.
201 2000-05-25 DJ Delorie <dj@cygnus.com>
203 * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
205 2000-05-26 Alan Modra <alan@linuxcare.com.au>
207 * Makefile.am: Update dependencies with "make dep-am"
208 * Makefile.in: Regenerate.
210 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
212 * ar.c: Include filenames.h.
213 (normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
214 and drive letters in file names.
215 (main): Support backslashes and drive letters in argv[0]. Drop
216 the .exe suffix, if any, in argv[0] if is_ranlib is negative. Use
217 FILENAME_CMP instead of strcmp to compare file names.
218 (open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
220 (do_quick_append) [__GO32__]: Ditto.
221 (get_pos_bfd, delete_members, move_members, replace_members):
222 Compare file names with FILENAME_CMP.
224 * bucomm.c: Include filenames.h.
225 (make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
226 forward/backward slashes and drive letters in file names.
228 * ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
229 mixed forward/backward slashes and drive letters in file names.
231 * strings.c (O_BINARY, setmode, SET_BINARY): Define.
232 (main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
235 * objcopy.c: Include filenames.h.
236 (main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
237 before comparing to "strip".
238 Use FILENAME_CMP to compare file names.
240 * arsup.c: Include filenames.h.
241 (map_over_list, ar_delete, ar_replace, ar_extract): Use
242 FILENAME_CMP to compare file names.
243 (ar_open): Prepend "tmp-" instead of appending "-tmp", to create
244 the temporary file name.
246 * configure.in: Check for setmode.
247 * configure: Regenerate.
249 2000-05-24 Alan Modra <alan@linuxcare.com.au>
251 * objdump.c (display_target_list): Close the bfd.
252 (display_info_table): Likewise.
254 2000-05-14 H.J. Lu (hjl@gnu.org)
256 * objcopy.c (filter_symbols): Don't strip global symbols in
257 relocatable object files.
259 2000-05-14 Alan Modra <alan@linuxcare.com.au>
261 * size.c (usage): Associate short options with corresponding long
262 option to give a clue as to their function.
264 2000-05-14 Philippe De Muyter <phdm@macqel.be>
266 * size.c (main): Accept and ignore `-f' option.
268 2000-05-13 Alan Modra <alan@linuxcare.com.au>
270 * bucomm.h (gettext, dgettext, dcgettext, textdomain,
271 bindtextdomain): Replace defines with those from intl/libgettext.h
272 to quieten gcc warnings.
274 2000-05-12 H.J. Lu <hjl@gnu.org>
276 * nlmconv.c (temp_filename): Removed.
278 * nlmconv.c (link_inputs): Use make_temp_file () instead of
280 * objdump.c (display_target_list): Likewise.
281 (display_info_table): Likewise.
283 2000-05-08 Alan Modra <alan@linuxcare.com.au>
285 * objcopy.c (setup_section): Add const and gettext calls for err.
287 2000-05-02 H.J. Lu <hjl@gnu.org>
289 * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
290 ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
291 ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
292 ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
293 and ELFOSABI_OPENBSD.
295 2000-05-02 Kazu Hirata <kazu@hxi.com>
297 * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
298 * srconv.c: Likewise.
299 * sysdump.c: Likewise.
301 Sun Apr 23 14:23:26 2000 Denis Chertykov <denisc@overta.ru>
303 * readelf.c (guess_is_rela): AVR uses RELA relocations.
304 (get_machine_name): machine name for EM_AVR added.
306 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
307 David Mosberger <davidm@hpl.hp.com>
309 * Makefile.am (readelf.o): Add elf/ia64.h.
310 * Makefile.in: Rebuild.
311 * readelf.c: Include elf/ia64.h.
312 (guess_is_rela, dump_relocations): Handle EM_IA_64.
314 2000-04-17 Timothy Wall <twall@cygnus.com>
316 * objdump.c (disassemble_data): Set octets per byte *after*
317 resolving arch/mach for binary files.
319 2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
321 * arlex.l: Add directives to increase lex buffer size.
323 * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
324 already included by bucomm.h.
326 2000-04-10 Philippe De Muyter <phdm@macqel.be>
328 * readelf (dynamic_segment_mips_val): Call `sprintf', not
329 `strftime' since strftime is not available on all systems.
330 (process_mips_specific): Ditto.
332 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
334 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
335 --enable-build-warnings option.
336 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
337 * Makefile.in, configure: Re-generate.
339 2000-04-06 Alan Modra <alan@linuxcare.com.au>
341 * addr2line.c: Update copyright.
342 * objcopy.1: Likewise, and title.
343 * strings.1: Likewise.
345 * version.c (print_version): Add 2000.
347 * rddbg.c (read_section_stabs_debugging_info): Don't use
348 bfd_size_type for strx to avoid printf problems if BFD64.
350 * bucomm.c: (report): Remove `static'.
351 Move inclusion of stdarg.h/vararg.h from here.
353 (CONST): Change all occurences to const.
354 (report): Declare it.
355 (bfd_fatal): Add ATTRIBUTE_NORETURN.
356 (fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
357 (non_fatal): Add ATTRIBUTE_PRINTF_1.
359 * ar.c (main): Use fatal or non_fatal instead of fprintf.
360 Correct a typo in an error message.
361 (do_quick_append): Use non_fatal instead of fprintf.
362 (move_members): Use fatal instead of fprintf, exit.
363 * coffdump.c (main): Same here.
365 * dlltool.c (display): Delete.
367 (inform): Use `report' instead of `display'.
368 (rvaafter): Remove trailing \n from fatal error msg.
371 (yyerror): Replace `warn' with `non_fatal', and remove \n.
372 (def_name): Likewise.
374 (scan_all_symbols): Likewise.
375 (gen_lib_file): Likewise.
376 (def_library): Likewise. Remove extra program_name too.
377 (run): Remove \n from inform strings.
378 (scan_drectve_symbols): Likewise.
379 (add_excludes): Likewise.
380 (scan_open_obj_file): Likewise.
381 (gen_exp_file): Likewise.
382 (gen_lib_file): Likewise.
383 (process_duplicates): Likewise.
385 * Makefile.am (dllwrap_SOURCES): Add version.c.
386 * dllwrap.c (program_version): Delete.
387 (print_version): Delete.
388 (display): Always print trailing \n.
390 (delete_temp_files): Use warn instead of fprintf. Use gettext.
393 (usage): gettext'ify.
394 (long_options): Add missing initialisers.
396 * nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
397 (select_output_format): Likewise.
398 (powerpc_mangle_relocs): Likewise.
399 (link_inputs): Likewise.
401 * nm.c (set_print_radix): Use fatal instead of fprintf, exit.
402 (set_output_format): Likewise.
403 (main): Use non_fatal instead of fprintf.
404 (display_rel_file): Likewise.
406 * objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
407 (slurp_dynamic_symtab): Same here.
408 (disassemble_data): And here.
409 (read_section_stabs): And here.
410 (read_section_stabs): And here.
411 (dump_bfd): And here.
413 (objdump_sprintf): Use fatal instead of fprintf, exit.
414 (disassemble_data): Same here.
416 * rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
417 (parse_coff_struct_type): Same here.
418 (parse_coff_enum_type): And here.
419 (parse_coff): And here.
420 * rddbg.c (read_debugging_info): And here.
421 * size.c (main): And here.
422 * windres.c (format_from_name): And here.
423 * wrstabs.c (stab_write_symbol): Here too.
424 (write_stabs_in_sections_debugging_info): And here.
425 (stab_int_type): And here.
426 (stab_struct_field): And here.
427 (stab_typdef): And here.
429 * rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
430 * srconv.c (main): Same here.
431 * strings.c (main): And here.
432 (integer_arg): And here.
433 * sysdump.c (main): And here.
435 2000-04-06 Timothy Wall <twall@cygnus.com>
437 * objdump.c (dump_section_header): Print CLINK and BLOCK flags.
439 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
441 * readelf.c (decode_location_expression): Loop through multiple
443 (read_and_display_attr): Pass in length.
445 * readelf.c (read_and_display_attr): Add CU offset to references.
446 (display_debug_info): Pass it in.
448 2000-04-06 Nick Clifton <nickc@cygnus.com>
450 * readelf.c (decode_ARM_machine_flags): New function.
451 (get_machine_flags): Call decode_ARM_machine_flags for ARM
454 (get_machine_name): Catch EM_AVR
456 2000-04-05 Alan Modra <alan@linuxcare.com.au>
458 * binutils.texi: Remove optional `=' from long options that have
459 an `=' in the argument.
460 * objcopy.1: Here too. Remove extra space on discard-all.
462 * binutils.texi (objcopy): Mention --redefine-sym.
463 * objcopy.1: Here too.
466 * objcopy.c (parse_flags): Split off flag names from error message
467 gettext as they are not translated.
468 (copy_main): Similarly split off option name for --add-section,
469 --set-section-flags, --change-section-vma, --change-section-lma
471 Some white space changes.
473 from Matthew Benjamin <matt@linuxbox.nu>
474 * objcopy.c (struct redefine_node): New.
475 (redefine_sym_list): New.
476 (redefine_list_append): New.
477 (lookup_sym_redefinition): New.
478 (OPTION_REDEFINE_SYM): New.
479 (copy_options): Add --redefine-sym option.
480 (copy_usage): Mention it.
481 (filter_symbols): Rename symbols on redefine_sym_list.
482 (copy_object): Call filter_symbols if redefine_sym_list != NULL.
483 (copy_main): Handle OPTION_REDEFINE_SYM.
485 2000-04-04 H.J. Lu <hjl@gnu.org>
487 * readelf.c (process_symbol_table): Correctly read in symbol
488 versioning information.
490 2000-04-04 Alan Modra <alan@linuxcare.com.au>
492 * po/binutils.pot: Regenerate.
494 * addr2line.c (usage): Restore translated part of bug string.
495 * ar.c (usage): Likewise.
496 * nlmconv.c (show_usage): Likewise.
497 * nm.c (usage): Likewise.
498 * objcopy.c (copy_usage): Likewise.
499 (strip_usage): Likewise.
500 * objdump.c (usage): Likewise.
501 * readelf.c (usage): Likewise.
502 * size.c (usage): Likewise.
503 * strings.c (usage): Likewise.
504 * windres.c (usage): Likewise.
506 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
507 (DEP): Quote when passing vars to sub-make. Add warning
509 (DEP1): Rewrite for "gcc -MM".
510 (CLEANFILES): Add DEP2.
512 * Makefile.in: Regenerate.
514 2000-04-04 H.J. Lu <hjl@gnu.org>
516 * Makefile.am (GENERATED_HFILES): Add rcparse.h
517 (arparse.h): Depend on arparse.c
518 (defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
520 2000-04-03 H.J. Lu (hjl@gnu.org)
522 * size.c (usage): Use REPORT_BUGS_TO.
524 2000-04-03 Alan Modra <alan@linuxcare.com.au>
526 * bucomm.h: #include "bin-bugs.h"
527 * addr2line.c (usage): Use REPORT_BUGS_TO.
528 * ar.c (usage): Likewise.
529 * nlmconv.c (show_usage): Likewise.
530 * nm.c (usage): Likewise.
531 (OPTION_TARGET): Define.
532 (long_options): Use OPTION_TARGET rather than 200.
535 * objcopy.c (copy_usage): Use REPORT_BUGS_TO.
536 (strip_usage): Likewise.
537 * objdump.c (usage): Likewise.
538 * readelf.c (usage): Likewise.
539 * strings.c (usage): Likewise.
540 * windres.c (usage): Likewise.
542 2000-03-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
544 * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
546 2000-03-27 Nick Clifton <nickc@cygnus.com>
548 * rddbg.c (read_section_stabs_debugging_info): Catch out of range
549 string offsets in corrupt stabs entries.
551 2000-03-27 Alan Modra <alan@linuxcare.com.au>
553 * readelf.c: Include elf/avr.h
554 (dump_relocations): Add EM_AVR case.
556 2000-03-09 Tim Waugh <twaugh@redhat.com>
558 * strings.1: Correct '-bytes' to '--bytes'.
560 2000-03-08 H.J. Lu <hjl@gnu.org>
562 * Makefile.am (install-exec-local): Depend on
563 install-binPROGRAMS for parallel make.
564 * Makefile.in: Regenerated.
566 2000-02-27 Ian Lance Taylor <ian@zembu.com>
568 From Brad Lucier <lucier@math.purdue.edu>:
569 * readelf.c (process_dynamic_segment): Add cast to make sure
570 argument to %* is int.
572 2000-02-25 H.J. Lu <hjl@gnu.org>
574 * configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
576 2000-02-24 Nick Clifton <nickc@cygnus.com>
578 * configure.in: Add arm-wince, mips-pe and sh-pe targets.
579 * configure: Regenerate.
581 * dlltoolc.: Add support for sh-pe and mips-pe targets.
582 * rescoff.c: Add support for sh-pe and mips-pe targets.
584 2000-02-23 H.J. Lu <hjl@gnu.org>
586 * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
588 2000-02-22 Nick Clifton <nickc@cygnus.com>
590 * readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
592 2000-02-22 Ian Lance Taylor <ian@zembu.com>
594 From Brad Lucier <lucier@math.purdue.edu>:
595 * readelf.c (process_version_sections): Add casts to make sure
596 argument to %* is an int.
597 (process_mips_specific): Add casts to make printf arguments match
600 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
602 * objdump.c (dump_section_header): Change `opb' to unsigned.
603 (find_symbol_for_address): Same here.
604 (disassemble_data): And here. Change `addr_offset',
605 `stop_offset', `nextstop_offset' to unsigned long.
606 (dump_data): Change opb to unsigned.
608 2000-02-18 Frank Ch. Eigler <fche@redhat.com>
610 * resrc.c: Remove unmatched #if for cygwin.
612 2000-02-14 Fernando Nasser <fnasser@totem.to.cygnus.com>
614 * binutils.texi: Document the change of flavor name from atpcs-special
615 to special-atpcs to prevent name conflict in gdb.
617 2000-02-08 Timothy Wall <twall@redhat.com>
619 * objdump.c (show_line): Fix bug preventing printing of the very
620 first line (line zero) of a file when interlisting source and
621 assembly. Added option to print entire context from start of file
622 when the first line from that file is encountered.
624 2000-02-03 Timothy Wall <twall@redhat.com>
626 * binutils/objdump.c (dump_section_header, find_symbol_for_address,
627 show_line, disassemble_bytes, disassemble_data, dump_data):
628 distinguish between octets and bytes.
630 2000-01-27 Thomas de Lellis <tdel@windriver.com>
632 * nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
633 check to unresolved symbols.
634 (print_symbol_info_sysv): Ditto.
635 (print_symbol_info_posix): Ditto.
637 * binutils.texi: Document new 'V' symclass flag for nm.
639 2000-01-27 Nick Clifton <nickc@redhat.com>
641 * binutils.texi (objdump): Document new ARM specific
642 disassembler options.
644 * objdump.c (usage): Call disassembler_usage().
646 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
648 * readelf.c (get_dynamic_flags): Return buff.
649 (process_dynamic_segment): Don't pass error strings to printf
651 (read_and_display_attr): Use lx and ld to print longs.
652 (process_corefile_note_segment): Cast bfd_vma to unsigned long
656 2000-01-17 Nick Clifton <nickc@cygnus.com>
658 * readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
660 2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
662 * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
664 (debug_tag_type): Here too.
665 * ieee.c (ieee_builtin_type): And here.
666 * stabs.c (parse_stab_type, parse_stab_array_type): And here.
668 2000-01-13 Nick Clifton <nickc@cygnus.com>
670 * readelf.c (get_machine_name): Change EM_S370 to return "IBM
673 2000-01-11 Nick Clifton <nickc@cygnus.com>
675 * readelf.c (get_dynamic_type): Remove DT_ENCODING.
677 2000-01-10 Nick Clifton <nickc@cygnus.com>
679 * readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
681 2000-01-07 Mumit Khan <khan@xraylith.wisc.edu>
683 * windres.c (long_options): Add --use-temp-file and
684 --no-use-temp-file options.
688 * windres.h: Update read_rc_file prototype.
690 * resrc.c (cpp_temp_file): New static variable.
691 (istream_type): New static variable.
692 (close_pipe): Delete function.
693 (run_cmd): New static function.
694 (open_input_stream): New static function.
695 (close_input_stream): New static function.
696 (look_for_default): Handle DOS directory separator. Use
697 open_input_stream instead of popen.
698 (read_rc_file): Likewise.
700 * binutils.texi: Document --use-temp-file, --no-use-temp-file
703 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
705 * dlltool.c (create_compat_implib): New variable.
707 (make_one_lib_file): Use.
708 (long_options): Add --compat-implib option.
712 * dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
713 (main): Use. Don't look for "32" in cygwin and mingw target names.
715 2000-01-03 Nick Clifton <nickc@cygnus.com>
717 * binutils.texi: Document new, ARM specific disassembler
718 command line switch "-M force-thumb".
720 1999-12-28 Nick Clifton <nickc@cygnus.com>
722 * readelf.c: Update with new constants added by Oct 4, 1999
724 (guess_is_rela): Add new machine codes, but leave
725 rel type undetermined.
726 (get_machine_name): Add new machine codes.
727 (get_section_type_name): Add new section types.
728 (get_elf_section_flags): New function: Decode section flags.
729 (process_section_headers): Call get_elf_section_flags() in
730 order to decode flags in section header.
731 (get_dynamic_flags): New function: Decode dynamic section
733 (process_dynamic_section): Display flags (if present).
734 (get_symbol_type): Add STT_COMMON.
735 (get_symbol_visibility): New function: Decode a symbol's
737 (process_symbol_table): Call get_symbol_visibility().
738 (get_note_type): Add NT_PRXFPREGS.
740 1999-12-26 Ian Lance Taylor <ian@zembu.com>
742 * strings.c (main): Correct handling of numeric argument.
744 1999-12-23 Andrew Haley <aph@cygnus.com>
746 * dlltool.c (mtable): mcore how_jtab_roff is 4 bytes into the
749 1999-12-17 Nick Clifton <nickc@cygnus.com>
751 * dlltool.c (mtable): Stop compile time warnings about missing
753 (yyerror): Stop compile time warnings about unused paramater.
754 (INIT_SEC_DATA): New macro: initialise an entry in the secdata
756 (secdata): Stop ccompile time warnings about uninitialised
758 (dtab): Stop compile time warnings about unused parameter.
759 (long_options): Stop compile time warning about missing
762 1999-12-10 Nick Clifton <nickc@cygnus.com>
764 * readelf.c (print_vma): Support native 64bit ELF systems.
766 1999-12-09 Nick Clifton <nickc@cygnus.com>
768 * dlltool.c (mtable): Add epoc-arm specific entry.
769 Make default arm entry pass -mpacs-26 to assembler.
770 (flush_page): Do not mangle null entries.
772 1999-12-07 H . J . Lu hjl@valinux.com
774 * readelf.c: Fix compile time warnings. Support more than 999
777 1999-12-03 Nick Clifton <nickc@cygnus.com>
779 * readelf.c (enum print_mode): New type.
780 (print_vma): New function.
781 (dump_relocations): Use print_vma to display bfd_vma values.
782 (process_file_header): Use print_vma to display bfd_vma values.
783 (process_program_headers): Use print_vma to display bfd_vma values.
784 (process_section_headers): Use print_vma to display bfd_vma values.
785 (dynamic_segment_parisc_val): Use print_vma to display bfd_vma values.
786 (process_dynamic_segment): Use print_vma to display bfd_vma values.
787 (process_symbol_table): Use print_vma to display bfd_vma values.
788 (process_mips_specific): Use print_vma to display bfd_vma values.
790 1999-11-25 Fred Fish <fnf@cygnus.com>
792 * readelf.c (process_note): Change arg from Elf_External_Note
793 to Elf32_Internal_Note, which also turns the function body
794 into little more than a call to printf.
795 (process_corefile_note_segment): Substantially rewritten
796 to properly handle case where target and host are different
797 endianness, handle note sections with padding, and add some
798 cruft to handle notes with unterminated name data.
800 1999-11-22 Nick Clifton <nickc@cygnus.com>
802 * objcopy.c (copy_usage): Reformat.
803 (strip_usage): Reformat.
805 1999-11-21 Nick Clifton <nickc@cygnus.com>
807 * objdump.c (usage): Overhaul output: One line per switch.
808 Textual description of each switch. Distinguish between
809 optional switches and required switches.
810 (long_options): Add 'g', 'G' and 'z' short options.
811 (main): Distinguish between optional switches and required
814 * binutils.texi: Add -g -G and -z short options for
815 --debugging, --stabs and --disassemble-zeroes.
817 1999-11-03 Nick Clifton <nickc@cygnus.com>
819 * dlltool.c (flush_page): Clip short values to prevent warnings
821 Change default mcore machine name to 'mcore-le' and rename
822 big-endian version to 'mcore-be'.
824 1999-10-27 Fred Fish <fnf@cygnus.com>
826 * objdump.c (display_bfd): Break into two functions. The
827 actual dumping code moves to dump_bfd. If bfd is not
828 unambiguously recognized as a bfd_object, attempt to dump
830 (dump_bfd): New function.
832 1999-10-26 Nick Clifton <nickc@cygnus.com>
834 * dlltool.c (assemble_file): Remove spurious test of exp_name.
836 1999-10-22 Nick Clifton <nickc@cygnus.com>
838 * dlltool.c (struct mac): Add new field 'how_default_as_switches'.
839 (mtable): Initialise new field. Some machines have a non empty
840 string for this field.
841 (HOW_BFD_TARGET): Undefine and replace with...
842 (HOW_BFD_READ_TARGET): New macro: bfd target to use when opening a
843 file for reading. This is set to 0 so that any recognisable bfd
845 (HOW_BFD_WRITE_TARGET): New macro: bfd target to use when opening
846 a file for writing. This is set to the target machine type.
847 (ASM_SWITCHES): New macro: default switches to use when assembling
849 (assemble_file): New function: Assemble a source file into a
850 destination object file.
851 (gen_exp_file): Use assemble_file to create the exp file.
852 (make_one_lib_file): Use assemble_file to create the lib file.
853 Open output file use HOW_BFD_WRITE_TARGET and input files using
855 (make_head): Use assemble_file to create the head file.
856 (make_tail): Use assemble_file to create the tail file.
857 (gen_lib_file): Open output file use HOW_BFD_WRITE_TARGET.
859 1999-10-15 Ian Lance Taylor <ian@zembu.com>
861 * ar.c (normalize): Fix full_pathname code.
863 1999-10-08 Ben Elliston <bje@cygnus.com>
865 * binutils.texi: Some rewording and clarifications.
867 1999-09-15 Ulrich Drepper <drepper@cygnus.com>
869 * readelf.c (dynamic_segment_parisc_val): Print 0 for DLD_FLAGS if
871 (process_symbol_table): Don't print histogram if hash table is empty.
873 1999-09-15 Ulrich Drepper <drepper@cygnus.com>
875 * readelf.c (get_parisc_dynamic_type): Handle DT_HP_GST_* values.
877 1999-09-02 Ulrich Drepper <drepper@cygnus.com>
879 * readelf.c (get_symbol_type): Add support for HPUX and PARISC
880 specific symbol types.
882 * readelf.c: Add HPUX and PARISC extensions to dynamic and program
883 header table printing.
885 * readelf.c (get_machine_flags): Add handling of PARISC.
887 1999-09-29 Mumit Khan <khan@xraylith.wisc.edu>
889 * dlltool.c (scan_drectve_symbols): Handle type tags in exported
891 (scan_filtered_symbols): Likewise.
893 1999-09-19 Ian Lance Taylor <ian@zembu.com>
895 * resrc.c (write_rc_rcdata): Fix local variable shadowing
896 problem. If RCDATA_BUFFER data can be read as strings, modify
897 code to print the strings as comments.
898 * resres.c: Add casts to avoid warnings.
899 (write_res_data, read_res_data): Don't put the program name in the
900 error message; fatal already puts it there.
902 1999-09-14 Michael Meissner <meissner@cygnus.com>
904 * configure.in (Canonicalization of target names): Remove adding
905 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
906 generates $ac_config_sub with a ${CONFIG_SHELL} already.
907 * configure: Regenerate.
909 1999-09-12 Ian Lance Taylor <ian@zembu.com>
911 * ar.c (main): Clear output_file if we don't change the archive.
912 (delete_members, replace_members): Likewise.
914 1999-09-12 Donn Terry <donn@interix.com>
916 * objdump.c (dump_headers): If wide_output, print Flags header.
918 * objdump.c (dump_section_header): Print any comdat information.
920 * objcopy.c (parse_flags): Handle "noload", "debug", and "share".
921 * binutils.texi, objcopy.1: Document new flags.
923 * ar.c (counted_name_mode): New static variable.
924 (counted_name_counter): New static variable.
925 (map_over_members): Handle counted mode.
926 (usage): Mention N modifier.
927 (main): Handle N modifier.
928 (delete_members): Handle counted mode.
929 * binutils.texi, ar.1: Document N modifier.
931 * ar.c (print_contents): Change printing of member name for
934 * ar.c (output_filename): Make const.
935 (open_inarch): If creating a new empty archive, set
938 1999-09-12 Ian Lance Taylor <ian@zembu.com>
940 * ar.c (full_pathname): New static variable.
941 (map_over_members): Call normalize on command line parameter.
942 (usage): Mention P modifier.
943 (normalize): If full_pathname is true, don't do anything.
944 (main): Accept P modifier.
945 (delete_members): Call normalize on command line parameter.
946 * binutils.texi, ar.1: Document P modifier.
948 1999-09-09 Andreas Schwab <schwab@suse.de>
950 * binutils.texi: Add info dir entries for all programs described
951 here. Fix arguments of @var to not contain punctuation.
953 1999-09-06 Donn Terry <donn@interix.com>
955 * nm.c (print_symbol_info_bsd): Check for 'w' as well as 'U'.
956 (print_symbol_info_sysv): Likewise.
957 (print_symbol_info_posix): Likewise.
959 1999-09-04 Steve Chamberlain <sac@pobox.com>
961 * readelf.c: Include "elf/pj.h".
962 (dump_relocations): Handle EM_PJ.
963 (get_machine_name): Likewise.
964 (get_machine_flags): Likewise.
966 1999-08-31 Scott Bambrough <scottb@netwinder.org>
968 * readelf.c (get_note_type): New function: Decode the e_type
970 (process_note): New function: Display the contents of a core note.
971 (process_corefile_note_segment): New function.
972 (process_corefile_note_segments): New function.
973 (process_corefile_contents): New function.
974 (process_file): Add call to process_corefile_contents.
975 (parse_args): Add parsing of -n/--notes command line switch.
976 (usage): Document new command line switch.
978 * binutils.texi: Documemnt new command line switch to readelf.
980 1999-08-31 Ian Lance Taylor <ian@zembu.com>
982 * binutils.texi (Bug Reporting): Clarify that large files should
983 not be sent to bug-gnu-utils.
985 1999-08-28 Stephane Carrez <stcarrez@worldnet.fr>
987 * readelf.c (process_extended_line_op): New parameter pointer_size,
988 read the address according to pointer_size.
989 (debug_line_pointer_size): New global to indicate the
990 size of address in .debug_line section.
991 (debug_displays, prescan_debug_info): Prescan the .debug_info section
992 to record the size of address in `debug_line_pointer_size'.
993 (process_section_contents): Before dumping any section, execute
994 the pre-scan operation defined for some debug sections.
996 1999-08-27 Jim Wilson <wilson@cygnus.com>
998 * readelf.c (display_debug_lines): Use i-1 not i in standard_opcodes
1000 (display_debug_aranges): New local excess. Use for calculating padding
1001 and add that into ranges. Break from loop only if length is also 0.
1003 1999-08-27 Jim Wilson <wilson@cygnus.com>
1005 * readelf.c (display_debug_lines, case DW_LNS_const_add_pc): Multiply
1006 adv by info.li_min_insn_length.
1008 1999-08-26 Jakub Jelinek <jj@ultra.linux.cz>
1010 * readelf.c (get_sparc64_dynamic_type): New function.
1011 (get_dynamic_type): Use it.
1013 1999-08-26 Jim Wilson <wilson@cygnus.com>
1015 * readelf.c (display_debug_lines, case default): Change second line
1016 setting adv to use = not +=.
1018 1999-08-19 Nick Clifton <nickc@cygnus.com>
1020 * dlltool.c: Added more examples to the comment at the start.
1022 1999-08-18 Nick Clifton <nickc@cygnus.com>
1024 * dlltool.c (make_head): Only emit interworking directive if
1027 Thu Jul 15 22:44:21 1999 Hans-Peter Nilsson <hp@bitrange.com>
1029 * readelf.c (process_abbrev_section): Handle standard-conforming
1030 single zero at the end of the section.
1032 1999-08-09 Ian Lance Taylor <ian@zembu.com>
1034 * objdump.c (exit_status): New static variable.
1035 (nonfatal): New static function.
1036 (disassemble_data): Set exit_status on error.
1037 (read_section_stabs): Likewise.
1038 (display_bfd): Likewise. Call nonfatal rather than bfd_nonfatal.
1039 (display_file): Call nonfatal rather than bfd_nonfatal.
1040 (display_target_list, display_info_table): Likewise.
1041 (main): Return exit_status rather than 0.
1043 1999-08-08 Ian Lance Taylor <ian@zembu.com>
1045 * objdump.c (dump_section_header): Update for renaming of
1046 SEC_SHORT to SEC_SMALL_DATA. Print SEC_SHARED flag.
1048 From Eli Zaretskii <eliz@gnu.org>:
1049 * binutils.texi: Document cxxfilt as MS-DOS name for c++filt.
1051 * configure.in: Define and substitute DEMANGLER_NAME.
1052 * Makefile.am (DEMANGLER_PROG): Set to cxxfilt.
1053 (man_MANS): Use DEMANGLER_NAME rather than DEMANGLER_PROG.
1054 (bin_PROGRAMS): Remove $(DEMANGLER_PROG).
1055 (noinst_PROGRAMS): Add $(DEMANGLER_PROG).
1056 (cxxfilt_SOURCES): Rename from c__filt_SOURCES.
1057 (cxxfilt_LDADD): Rename from c__filt_LDADD.
1058 ($(DEMANGLER_NAME).1): Rename from $(DEMANGLER_PROG).1. Use
1059 DEMANGLER_NAME rather than DEMANGLER_PROG in substitution.
1060 (MOSTLYCLEANFILES): Use DEMANGLER_NAME rather than
1062 (install-exec-local): When installing noinst_PROGRAMS, change
1063 cxxfilt to $(DEMANGLER_NAME).
1064 * configure, Makefile.in: Rebuild.
1066 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
1068 * Makefile.in: Rebuild.
1070 1999-08-05 Donn Terry <donn@interix.com>
1072 * Makefile.am (YACC): If bison is not in the source tree, use
1073 @YACC@ rather than bison -y.
1074 (LEX): If flex is not in the source tree, use @LEX@ rather than
1076 * configure.in: Build dlltool for i[3-6]86-*-interix.
1077 * Makefile.in, configure: Rebuild.
1079 1999-07-21 Ian Lance Taylor <ian@zembu.com>
1082 * configure.bat: Remove; obsolete.
1084 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
1086 * readelf.c (get_machine_flags): Print EF_SPARC_SUN_US3.
1088 1999-07-15 Ian Lance Taylor <ian@zembu.com>
1090 * configure.in: Bump version number to 2.9.5.
1091 * configure: Rebuild.
1093 1999-07-14 Richard Henderson <rth@cygnus.com>
1095 * objdump.c (dump_section_header): Print SEC_SHORT.
1097 1999-07-11 Ian Lance Taylor <ian@zembu.com>
1099 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
1100 as appropriate. Add variable initializations. Add casts.
1101 * objdump.c (disassemble_bytes): Change j to bfd_vma.
1102 * readelf.c (process_syminfo): Change i to unsigned int.
1103 (display_debug_info): Change abbrev_number to unsigned long.
1104 (process_mips_specific): Change fcnt to size_t.
1106 1999-07-09 Nick Clifton <nickc@cygnus.com>
1108 * readelf.c: Only support decoding 64bit ELF files if the compiler
1109 supports a 64 bit data type.
1110 Add -I equivalent for --histogram.
1111 Add -A command-line option to display architecture specific information.
1113 1999-07-08 Jakub Jelinek <jj@ultra.linux.cz>
1115 * readelf.c (guess_is_rela): Sparcv9 and v8plus use rela.
1116 (dump_relocations): Use ELF64_R_TYPE_ID for Sparc, for R_SPARC_OLO10
1117 print the secondary addend.
1118 (get_machine_flags): Print Sparc machine flags.
1119 (get_symbol_type): Print STT_REGISTER.
1121 1999-07-08 Ian Lance Taylor <ian@zembu.com>
1123 * stabs.c (parse_stab_type): Fix handling of template names with
1124 template parameters containing `::'.
1125 (stab_demangle_type): Handle a qualified name in a pointer to
1128 1999-06-23 Ian Lance Taylor <ian@zembu.com>
1130 * Makefile.am (dlltool_SOURCES): Add dyn-string.c.
1131 * Makefile.in: Rebuild.
1133 1999-06-23 Mumit Khan <khan@xraylith.wisc.edu>
1135 * configure.in (HAVE_EXECUTABLE_SUFFIX): Define.
1136 * dlltool.c (look_for_prog): Use HAVE_EXECUTABLE_SUFFIX.
1137 * dllwrap.c (look_for_prog): Likewise.
1138 * resrc.c (look_for_default): Likewise.
1139 * configure, config.in: Rebuild.
1141 1999-06-22 Ian Lance Taylor <ian@zembu.com>
1143 Based on patches from Mumit Khan <khan@xraylith.wisc.EDU>:
1144 * configure.in: Define EXECUTABLE_SUFFIX.
1145 * dlltool.c: Include "dyn-string.h". Include <stdarg.h> based on
1146 ANSI_PROTOTYPES, not __STDC__.
1148 (gen_exp_file): Change uses of outfile to use alloca.
1149 (make_one_lib_file, make_head, make_tail): Likewise.
1150 (gen_lib_file): Likewise.
1151 (look_for_prog): New static function.
1152 (deduce_name): Rewrite to use look_for_prog.
1153 (mcore_elf_gen_out_file): Use dyn_string_t rather than outfile.
1154 * dllwrap.c: Don't include <stdio.h>, <errno.h>, <string.h>,
1155 <stdlib.h>, or <unistd.h>. Include <sys/stat.h> and either
1156 <stdarg.h> or <varargs.h>.
1157 (driver_name): Initialize to NULL, not "gcc".
1158 (dlltool_name): Initialize to NULL, not "dlltool".
1159 (display, inform, look_for_prog, deduce_name): New static
1161 (usage): Mention -mno-cygwin.
1162 (OPTION_MNO_CYGWIN): Define.
1163 (main): Handle -mno-cygwin. Deduce driver_name and dlltool_name.
1164 * resrc.c (look_for_default): Make static. Remove unused local
1165 path. Check using EXECUTABLE_SUFFIX.
1166 (read_rc_file): Allocate enough space to hold EXECUTABLE_SUFFIX.
1167 * Makefile.am: Rebuild dependencies.
1168 (dllwrap_LDADD): Add $(INTLLIBS).
1169 * configure, Makefile.in, config.in: Rebuild.
1171 Mon Jun 21 16:49:11 1999 Jeffrey A Law (law@cygnus.com)
1173 * readelf.c (dump_relocations): Use elf_hppa_reloc_type instead of
1174 elf32_hppa_reloc_type.
1176 1999-06-17 Nick Clifton <nickc@cygnus.com>
1178 * dlltool.c (mcore_elf_gen_out_file): Link object files with the
1179 .exp file, not the .lib file.
1181 Fri Jun 18 20:17:51 1999 Mumit Khan <khan@xraylith.wisc.edu>
1183 * deflex.l: Accept single-character symbol names.
1185 1999-06-16 Nick Clifton <nickc@cygnus.com>
1187 * readelf.c (get_symbol_type): Detect ARM symbols typed as Thumb
1190 1999-06-14 Nick Clifton <nickc@cygnus.com>
1192 * objdump.c (disassembler_options): New variable.
1193 (usage): Document new -M/--disassembler-options option.
1194 (long_options): Add --disassembler-options.
1195 (disassemble_data): Initialise disassembler_options field of
1196 disassembler_info structure.
1197 (main): Add parsing of -M option.
1199 * binutils.texi: Document new command line switch to objdump.
1201 * NEWS: Describe new command line switch to objdump.
1204 Mon Jun 14 10:27:54 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1206 * binutils.texi: Fix typos.
1208 1999-06-13 Ian Lance Taylor <ian@zembu.com>
1210 * objdump.c (disassemble_bytes): If the disassembler returns an
1211 error, print out anything it may have printed to the buffer. From
1212 H.J. Lu <hjl@gnu.org>.
1214 * defparse.y (explist): Remove separate expline to eliminate
1215 shift/reduce conflict.
1217 From Kai-Uwe Rommel <rommel@ars.de>:
1218 * defparse.y: Add tokens NONSHARED, SINGLE, MULTIPLE,
1219 INITINSTANCE, INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
1220 (command): Add option_list after LIBRARY.
1221 (attr): Accept and ignore NONSHARED, SINGLE, and MULTIPLE.
1222 (option_list, option): New nonterminals.
1223 * deflex.l: Recognize NONSHARED, SINGLE, MULTIPLE, INITINSTANCE,
1224 INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
1226 1999-06-12 Ian Lance Taylor <ian@zembu.com>
1228 * ar.c (O_BINARY): Define as 0 if not defined.
1229 (ranlib_touch): Open file with O_BINARY.
1231 * rename.c (O_BINARY): Define as 0 if not defined.
1232 (simple_copy): Open files with O_BINARY.
1234 Based on patch from H. Peter Anvin <hpa@transmeta.com>:
1235 * objcopy.c (struct section_list): Add copy field.
1236 (sections_copied): New static variable.
1237 (copy_options): Add "only-section".
1238 (copy_usage): Mention -j and --only-section.
1239 (find_section_list): Initialize copy field.
1240 (is_strip_section): Check for copying sections.
1241 (copy_object): Check sections_copied when calling filter_symbols.
1242 (setup_section): Check for copying sections.
1243 (copy_section): Likewise.
1244 (copy_main): Handle -j/--only-section.
1245 * binutils.texi, objcopy.1: Document -j/--only-section.
1247 * configure.in: If frexp is not available, check in -lm.
1248 * configure: Rebuild.
1250 * readelf.c (get_elf_class): Use correct printf format for type.
1251 (get_data_encoding): Likewise.
1252 (get_osabi_name): Likewise.
1253 (process_file_header): Don't pass an extra argument to printf.
1254 (process_dynamic_segment): Cast dynamic_size to long before
1256 (decode_location_expression): Cast byte_get to long before
1259 Wed Jun 9 11:40:16 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1261 * readelf.c (dump_section): Cast values from byte_get to
1262 [unsigned] long for printing, in case it is wider than long.
1263 (display_block): Likewise.
1264 (read_and_display_attr): Likewise.
1265 (decode_location_expression): Likewise. Don't depend on
1268 Mon Jun 7 12:14:57 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1270 * windres.c (usage): Fix typo.
1272 1999-06-04 Nick Clifton <nickc@cygnus.com>
1274 * readelf.c: Use 64bit wide fields in internal strcutures even if
1275 targetting a 32bit architecture.
1276 (dump_relocations): Take a new parameter - the number of symbols
1277 in the symbol table.
1279 1999-06-04 Nick Clifton <nickc@cygnus.com>
1281 * readelf.c: Add support for 64bit ELF files.
1283 1999-06-03 Nick Clifton <nickc@cygnus.com>
1285 * dlltool.c (mcore_elf_gen_out_file): Use constants for temporary
1288 Wed Jun 2 12:34:36 1999 Richard Henderson <rth@cygnus.com>
1290 * dlltool.c (gen_exp_file): Revert 19990411 change.
1292 Mon May 31 09:56:22 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1294 * readelf.c (process_relocs): Determine type of reloc from
1295 DT_PLTREL and from section type.
1297 1999-05-29 Nick Clifton <nickc@cygnus.com>
1299 * readelf.c (get_elf_class): Display unknown class number.
1300 (get_data_encoding): Display unknown encoding number.
1301 (get_osabi_name): Display unknown ABI number.
1302 (process_file_header): Display unknown version number.
1304 1999-05-29 Nick Clifton <nickc@cygnus.com>
1306 * readelf.c (dump_relocations): Fix typo.
1308 1999-05-28 Nick Clifton <nickc@cygnus.com>
1310 * readelf.c (dump_relocations): Add extra parameter: is_rela to
1311 specify the kind of relocations to be dumped. Call guess_is_rela
1312 if this parameter has a value of UNKNOWN.
1313 (guess_is_rela): New function: Guess the kind of reloc being used
1314 baced on the machine number.
1315 (process_relocs): Determine type of reloc before calling
1318 1999-05-28 Ian Lance Taylor <ian@zembu.com>
1320 * readelf.c: Include "elf/i960.h".
1321 (dump_relocations): Handle EM_960.
1323 Thu May 27 11:58:33 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1325 * objcopy.c (copy_archive): Preserve dates of archive members if
1328 * readelf.c (dump_relocations): Always print the addend on RELA
1329 systems even if there is no symbol.
1330 (process_program_headers): Reset dynamic_size before looping
1331 through the program headers.
1332 (process_version_sections): Cast sh_offset to unsigned long for
1333 printing in case bfd_vma is wider.
1334 (process_symbol_table): Use get_symbol_index_type when printing
1337 1999-05-17 DJ Delorie <dj@cygnus.com>
1339 * windres.c: add verbose option
1340 (main): process verbose option
1341 * resrc.c (look_for_default): new. Look for the default
1342 preprocessor in a given location.
1343 (read_rc_file): for foo/bar-windres, look for foo/bar-gcc,
1344 foo/gcc (in case of foo/windres), and then gcc (the old default).
1346 1999-05-16 Nick Clifton <nickc@cygnus.com>
1348 * dlltool.c (deduce_name): New function: Deduce name of program to
1350 (mcore_elf_out_file): New variable: Name of mcore-elf output file.
1351 (mcore_elf_linker): New variable: Name of linker to use.
1352 (mcore_elf_linker_flags): New variable: Linker flags to pass.
1353 (scan_obj_file): Cache filenames if necessary.
1354 (usage): Document new command line options.
1355 (main): Support new command line options: -M (generate an
1356 mcore-elf output file) -L (name of linker to use) -F (flags to
1358 (mcore_elf_cache_filename): Store a filename in a cache.
1359 (mcore_elf_gen_out_file): New function: Generate an output file
1360 per the mcore-elf spec.
1362 1999-05-15 Nick Clifton <nickc@cygnus.com>
1364 * configure.in (BUILD_MISC): Build dlltool for mcore
1365 * configure: Regenerate.
1366 * dlltool.c: Update example in comment.
1367 (DLLTOOL_MCORE): Define.
1368 (DLLTOOL_MCORE_ELF): Define.
1369 (DRECTVE_SECTION_NAME): Define.
1370 (mcore_be_jtab, mcore_le_jtab): Binary for performing an mcore
1372 (mtable): Add entries for mcore variants.
1373 (rvaafter, rvabefore, asm_prefix): Add mcore suppport.
1374 (scan_drectve_symbols): Use DRECTVE_SECTION_NAME.
1375 (make_head, make_tail): Cope if file cannot be created.
1376 (usage): Improve layout.
1378 1999-05-13 DJ Delorie <dj@cygnus.com>
1380 * rclex.l: add code to suppress certain output from cpp, replace
1381 all returns with MAYBE_RETURN
1382 (MAYBE_RETURN): new, implement the suppression by returning
1383 IGNORED_TOKEN as needed.
1384 (cpp_line): remember which file we're in, mark data from included
1385 *.h files for suppression.
1386 * rcparse.y (input): allow IGNORED_TOKEN outside of known constructs
1388 1999-05-10 DJ Delorie <dj@cygnus.com>
1390 * windres.c (quot): Quote shell metacharacters in a string
1391 (main): quote parameters to cpp that might have metacharacters in
1392 them. Allow -D as an alias for --define to allow for sharing make
1395 * objdump.c (dump_reloc_set): don't core if howto->name is NULL
1397 * Makefile.am: Give rescoff.c a cpu-specific -D so it can set
1399 * Makefile.in: ditto
1400 * rescoff.c (write_coff_file): Set the correct BFD
1402 1999-05-06 Ian Lance Taylor <ian@zembu.com>
1404 * rename.c (smart_rename): Fix test of whether file exists.
1406 1999-05-06 Nick Clifton <nickc@cygnus.com>
1408 * objdump.c (disassemble_data): Set display_endian based on target
1411 1999-05-05 Catherine Moore <clm@cygnus.com>
1413 * dlltool.c (interwork): Remove.
1414 (arm_interwork_jtab): Use bx insn.
1415 (thumb_jtab): Likewise.
1416 (MARM_INTERWORK): New machine type.
1417 (rvaafter): Handle it.
1418 (rvabefore) Likewise.
1419 (asm_prefix): Likewise.
1420 (gen_exp_type): Check machine type instead of
1422 (make_one_lib_file): Likewise.
1423 (make_head): Likewise.
1424 (make_tail): Likewise.
1425 (usage): Update machine types.
1426 (main): Remove -interwork support.
1428 1999-05-05 Catherine Moore <clm@cygnus.com>
1430 * readelf.c (get_machine_flags): Check for EF_CPU32.
1431 (get_data_encoding): Fix typo.
1433 1999-04-26 Tom Tromey <tromey@cygnus.com>
1435 * aclocal.m4, configure: Updated for new version of libtool.
1437 1999-04-18 Ian Lance Taylor <ian@zembu.com>
1439 * stabs.c (parse_stab_range_type): Correct parenthesization in
1442 * readelf.c (get_section_type_name): Use correct types in printf
1444 (process_relocs): Likewise.
1445 (process_dynamic_segment): Likewise.
1446 (process_symbol_table): Likewise.
1447 (process_mips_specific): Likewise.
1449 Tue Apr 13 21:22:00 1999 Catherine Moore <clm@cygnus.com>
1451 * dlltool.c (make_one_lib_file): Mark thumb functions as
1454 1999-04-11 Richard Henderson <rth@cygnus.com>
1456 * bucomm.h (environ): Declare it, if needed.
1457 (alloca) [C_ALLOCA]: Don't use gcc's builtin or <alloca.h>.
1458 * configure.in (environ): Detect declaration.
1459 * nm.c (main): Don't declare environ.
1460 * configure, config.in: Rebuild.
1462 * dlltool.c (gen_exp_file): Pad out the .reloc section to a
1463 32-byte boundary with dummy relocations, to make the BeOS loader
1464 happy. Patch from Bob Manson <manson@charmed.cygnus.com>.
1466 1999-04-08 Tom Tromey <tromey@cygnus.com>
1468 * binutils.texi (c++filt): Updated for -j/--java, and hp/edg
1471 1999-04-08 Nick Clifton <nickc@cygnus.com>
1473 * readelf.c: Add ability to decode new constants found in April 25
1474 1998 Draft of System V ABI spec.
1476 1999-04-06 Ian Lance Taylor <ian@zembu.com>
1478 * bucomm.h (LC_MESSAGES): Never define.
1479 * addr2line.c (main): Don't pass LC_MESSAGES to setlocale if the
1480 system does not define it.
1481 * ar.c (main): Likewise.
1482 * coffdump.c (main): Likewise.
1483 * dlltool.c (main): Likewise.
1484 * nlmconv.c (main): Likewise.
1485 * nm.c (main): Likewise.
1486 * objcopy.c (main): Likewise.
1487 * objdump.c (main): Likewise.
1488 * size.c (main): Likewise.
1489 * srconv.c (main): Likewise.
1490 * strings.c (main): Likewise.
1491 * sysdump.c (main): Likewise.
1492 * windres.c (main): Likewise.
1493 * readelf.c (main): Call locale setting functions.
1495 1999-04-05 Nick Clifton <nickc@cygnus.com>
1497 * readelf.c (decode_location_expression): Fix DW_OP_const8{s|u}
1500 1999-04-04 Ian Lance Taylor <ian@zembu.com>
1502 * rename.c: New file, copied out of objcopy.c with a few changes.
1503 * bucomm.h (set_times, smart_rename): Declare.
1504 * ar.c: Don't include <utime.h>.
1505 (extract_file): Call set_times rather than utime.
1506 (write_archive): Call smart_rename rather than unlink and rename.
1507 * objcopy.c: Don't include <utime.h>.
1508 (simple_copy, smart_rename, set_times): Move to rename.c.
1509 (strip_main): Update smart_rename call for new parameter.
1510 (copy_main): Likewise.
1511 * Makefile.am: Rebuild dependencies.
1512 (CFILES): Add rename.c.
1513 (objcopy_SOURCES, strip_new_SOURCES): Add rename.c.
1514 (ar_SOURCES, ranlib_SOURCES): Add rename.c.
1515 * Makefile.in: Rebuild.
1517 * Makefile.am: Rebuild dependencies.
1518 (EXTRA_PROGRAMS): Remove backslash which troubles current version
1520 * Makefile.in: Rebuild.
1522 * dllwrap.c (main): Expect correct type in format string.
1523 * resres.c: Include "bfd.h", "bucomm.h", "libiberty.h", and
1524 <time.h>. Don't include <stdio.h> and <errno.h>.
1525 (write_res_file): Remove unused locals e and i.
1526 (read_resource_entry): Remove unused locals rtype and n.
1527 (read_unistring): Remove unused local n.
1529 1999-04-03 Ian Lance Taylor <ian@zembu.com>
1531 * arparse.y: Declare yylex.
1532 * objdump.c (disassemble_bytes): Initialize bytes. Add comment
1533 for incorrect use of bytes.
1534 * readelf.c: Change many formats to avoid warnings.
1536 1999-04-01 Nick Clifton <nickc@cygnus.com>
1538 * readelf.c (reset_state_machine): New function. Resets the
1539 registers of the source line number state machine.
1540 (process_extended_line_op): Use state machine.
1541 (display_debug_lines): Use state machine. Handle multiple line
1542 number blocks within the same section.
1544 1999-03-29 Jason Merrill <jason@yorick.cygnus.com>
1546 * readelf.c (process_extended_line_op): end_sequence also resets
1548 (display_debug_lines): advance_line takes a signed operand.
1549 (read_and_display_attr): Print refs as <%x>, addresses as %#x,
1550 others as %d. Handle other location expression attributes.
1551 (display_debug_info): Handle nesting. Always print the offset.
1553 1999-03-23 Ian Lance Taylor <ian@zembu.com>
1555 * objcopy.c (filter_symbols): When checking whether to keep a
1556 symbol, check the BFD section symbol for a symbol with
1557 BSF_SECTION_SYM set.
1559 1999-03-10 Ulrich Drepper <drepper@cygnus.com>
1561 * readelf.c (process_dynamic_segment): Print new Solaris dynamic
1562 section entries. Correct printing of DT_POSFLAG_1 and DT_FLAGS_1.
1564 1999-03-10 Nick Clifton <nickc@cygnus.com>
1566 * readelf.c (request_dump): New function.
1567 Removed arbitary limit on the number of sections that can be
1570 Wed Mar 10 15:10:14 1999 Stan Cox <scox@cygnus.com>
1572 * dlltool.c (make_one_lib_file): Use %05d to output the stub name so
1573 order in the import library is preserved.
1575 1999-02-19 Nick Clifton <nickc@cygnus.com>
1577 * readelf.c: Fix compile time warings.
1579 1999-02-17 DJ Delorie <dj@cygnus.com>
1581 * resbin.c (res_to_bin_versioninfo): Instead of entering a value
1582 length of zero in a version info string, enter the appropriate
1585 Tue Feb 16 16:00:33 1999 Ian Lance Taylor <ian@cygnus.com>
1587 * configure.in: Require autoconf 2.13. Change AM_PROG_INSTALL to
1588 AC_PROG_INSTALL. Add comments for AC_DEFINE calls.
1589 * acconfig.h: Remove.
1590 * aclocal.m4: Rebuild.
1591 * configure: Rebuild.
1592 * Makefile.in: Rebuild.
1593 * config.in: Rebuild.
1595 1999-02-02 Nick Clifton <nickc@cygnus.com>
1597 * readelf.c (read_and_display_attr): Add display of basic type
1599 (display_debug_aranges): New function: Display the contents of a
1600 .debug_aranges section.
1601 (display_debug_info): Dump tags found after compunit entry.
1603 * binutils.texi: Fixed bug in readelf documentation.
1605 Mon Feb 1 12:38:01 1999 Catherine Moore <clm@cygnus.com>
1607 * readelf.c (dump_relocations): Handle EM_ARM as REL.
1609 1999-01-29 Nick Clifton <nickc@cygnus.com>
1611 * readelf.c (process_symbol_table): Do not produce a histogram of
1612 bucket chains if none were found.
1614 1999-01-27 Nick Clifton <nickc@cygnus.com>
1616 * version.c: Add 1999 copyright.
1618 * binutils.texi (readelf): Document new command line options
1619 --debug-dump and --histogram.
1621 * readelf.c: Add ability to display contents of some or all of the
1622 Dwarf2 debug sections. {Work only partially completed}.
1623 (display_debug_section): New function.
1624 (display_debug_info): New function.
1625 (display_debug_not_supported): New function.
1626 (display_debug_line): New function.
1627 (display_debug_abbrev): New function.
1628 (process_abbrev_section): New function.
1629 (read_leb128): New function.
1630 (process_extended_line_op): New function.
1631 (get_TAG_name): New function.
1632 (get_AT_name): New function.
1633 (get_FORM_name): New function.
1634 (free_abbrevs): New function.
1635 (add_abbrev): New function.
1636 (add_abbrev_attr): New function.
1637 (read_and_display_attr): New function.
1638 (display_block): New function.
1640 Thu Jan 14 23:36:11 1999 Jeffrey A Law (law@cygnus.com)
1642 * coffdump.c (xcalloc): Remove, in libiberty now.
1643 * srconv.c (xcalloc): Likewise.
1644 * sysdump.c (xcalloc): Likewise.
1646 1999-01-14 Nick Clifton <nickc@cygnus.com>
1648 * readelf.c (process_section_headers): Omit trailing space at end
1649 of section header contents line.
1651 Wed Dec 16 17:20:05 1998 Doug Evans <devans@canuck.cygnus.com>
1653 * aclocal.m4: Regenerate.
1655 Mon Dec 14 12:55:36 1998 Jim Wilson <wilson@cygnus.com>
1657 * dllwrap.c: Include bfd.h and bucomm.h. Move getopt.h include
1658 after libiberty.h include.
1660 Tue Dec 8 16:29:43 1998 Ian Lance Taylor <ian@cygnus.com>
1662 * objdump.1: Fix typo (-d to -D). From Nokubi Hirotaka
1663 <hnokubi@yyy.or.jp>.
1665 Sun Dec 6 13:28:09 1998 Ian Lance Taylor <ian@cygnus.com>
1667 * objdump.c (SFILE): Add size field.
1668 (objdump_sprintf): Merge both versions into one. Increase buffer
1669 size as needed to avoid overflow.
1670 (disassemble_bytes): Change buf from 1000 bytes to 50. Change
1671 initialization and use of sfile to match changes to
1674 * strip.1: Fix typo (-V to -v). From Issei Hirayama
1675 <iss@mail.wbs.or.jp>.
1677 1998-12-03 Ulrich Drepper <drepper@cygnus.com>
1679 * readelf.c (process_dynamic_segment): Improve output format for
1680 various DT_* values.
1682 1998-12-02 Ulrich Drepper <drepper@cygnus.com>
1684 * readelf.c (process_mips_specific): Print .conflict section
1687 * readelf.c (process_mips_specific): Print l_flags in liblist in
1690 1998-11-30 Nick Clifton <nickc@cygnus.com>
1692 * ar.c (extract_file): Add some paranoia checks for negatively
1695 Tue Nov 24 09:39:24 1998 Nick Clifton <nickc@cygnus.com>
1697 * stabs.c (DIR_SEPARATOR): Define as '\\' if WIN32 is defined.
1699 Tue Nov 17 10:25:26 1998 Nick Clifton <nickc@cygnus.com>
1701 * Makefile.in: Regenerate.
1703 Mon Nov 16 19:17:23 1998 Dave Brolley <brolley@cygnus.com>
1705 * po/binutils.pot: Regenerate.
1707 Mon Nov 16 10:18:53 1998 Nick Clifton <nickc@cygnus.com>
1709 * Makefile.am: Regernated dependencies.
1710 * aclocal.m4: Regenerated.
1711 * configure: Regenerated.
1713 Sat Nov 14 14:50:56 1998 Ian Lance Taylor <ian@cygnus.com>
1715 * debug.c (debug_name_type): Correct return type from false to
1718 Sat Nov 14 14:48:21 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1720 * objdump.c (disassemble_data): Skip over relocs below start
1723 Tue Nov 10 15:31:52 1998 Nick Clifton <nickc@cygnus.com>
1725 * Makefile.am: Add dependency of readelf.c on elf/fr30.h
1726 * Makefile.in: Regenerate.
1728 Wed Nov 4 16:25:55 1998 Nick Clifton <nickc@cygnus.com>
1730 * readelf.c: Add support for the FR30.
1732 Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
1734 * configure.in: detect cygwin* instead of cygwin32*
1735 * configure: regenerate
1737 Fri Oct 30 15:14:49 1998 Geoffrey Noer <noer@cygnus.com>
1739 * dllwrap.c: change all references to cygwin32_ to cygwin_,
1740 change Cygwin target def to CYGWIN.
1742 Wed Oct 28 10:31:19 1998 Nick Clifton <nickc@cygnus.com>
1744 * objdump.c (disassemble_data): Replace 'unsigned long' with
1747 Tue Oct 27 14:39:00 1998 Nick Clifton <nickc@cygnus.com>
1749 * objdump.c (disassemble_bytes): Applied this patch from Philip
1750 Blundell <pb@nexus.co.uk>: Make address variables unsigned to
1751 avoid problems when disassembling code at high-bit-set addresses.
1753 Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
1755 * dllwrap.c (strhash): New function.
1756 (main): Use it to supply image base if not supplied by user.
1757 (program_version): Up to 0.2.4.
1759 Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
1761 * dlltool.c (add_stdcall_alias): New global.
1762 (long_options): Add --add-stdcall-alias option.
1764 (scan_drectve_symbols): Add alias if --add-stdcall-alias is
1766 (scan_filtered_symbols): Likewise.
1767 (gen_def_file): Output alias for stdcall syms if appropriate.
1769 * binutils.texi (dlltool): Document --add-stdcall-alias option.
1771 * dllwrap.c (long_options): Add --add-stdcall-alias option.
1774 * defparse.y (opt_name): Allow "." in name.
1775 * dlltool.c (def_name): Set dll_name from NAME entry in def file.
1776 (def_library): Set dll_name from LIBRARY entry in def file.
1778 Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
1780 * dllwrap.c (long_options): --implib synonym for --output-lib.
1781 (main): Pass --export-all to dlltool only if specified.
1782 (program_version): Up to 0.2.3.
1784 Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
1786 * dllwrap.c (mybasename): New function.
1787 (main): Run dlltool to create export definition file and import
1788 library file if necessary.
1789 Change exp_file_name so that it's based on the dll name.
1791 Sun Oct 25 10:37:45 1998 Mumit Khan <khan@xraylith.wisc.edu>
1793 * dlltool.c (scan_all_symbols): Fix patch error.
1795 Fri Oct 16 22:56:20 1998 Felix Lee <flee@cygnus.com>
1797 * nm.c (display_rel_file): fix "no symbols" messages.
1798 * objdump.c (slurp_symtab): ditto.
1799 * po/POTFILES.in, po/binutils.pot: rebuilt
1801 Mon Oct 12 14:28:03 1998 Nick Clifton <nickc@cygnus.com>
1803 * readelf.c (dump_relocations): Rename field from Value to Info to
1804 match name of field in ELF structures.
1806 Thu Oct 8 15:33:08 1998 Geoffrey Noer <noer@cygnus.com>
1808 * configure.in: call AC_EXEEXT instead of AM_EXEEXT and
1810 * aclocal.m4: remove local AM_EXEEXT/AM_CYGWIN32 macros.
1811 * configure: regenerate
1813 Thu Oct 8 15:33:08 1998 Geoffrey Noer <noer@cygnus.com>
1815 From Mumit Khan <khan@xraylith.wisc.edu>:
1816 * dlltool.c (scan_all_symbols): Don't re-export symbols exported
1819 Thu Oct 8 15:33:08 1998 Geoffrey Noer <noer@cygnus.com>
1821 * Makefile.am (BUILD_DLLWRAP): Add.
1822 (BUILD_DLLWRAP, DLLWRAP_PROG): Add.
1823 (bin_PROGRAMS): Add dllwrap.
1824 * Makefile.in: regenerate with automake
1826 From Mumit Khan <khan@xraylith.wisc.edu>:
1827 * dllwrap.c: New file from dllhelpers v0.2.1.
1828 (print_version): New function.
1829 (long_options): Add --version.
1831 * dyn-string.h, dyn-string.c: New files from egcs-1.1/gcc.
1832 * configure.in (BUILD_DLLWRAP): Add.
1833 * configure: Regenerate.
1835 Tue Oct 6 18:20:10 1998 Geoffrey Noer <noer@cygnus.com>
1837 * Makefile.am (windres_SOURCES): Add resres.c.
1838 (windres_OBJECTS): Add resres.o.
1839 * Makefile.in: regenerate with automake
1841 From Anders Norlander <anorland@hem2.passagen.se>.
1842 * resres.c: New file. Implementation of read_res_file and
1843 write_res_file functions for windres.
1844 * rcparse.y: Handle CONTROL's with named classes.
1845 * resbin.c: Bug in res_to_bin_dialog and bin_to_res_dialog
1846 when dialog is extended: The version and signature fields should
1847 be reversed (despite what the docs say). Id is 32 bits long in
1849 * resrc.c (write_rc_dialog): properly print controls with named
1851 * windres.c (read_res_file, write_res_file): Remove stubs.
1852 * resres.c (write_res): Rename RT_ACCELERATORS to RT_ACCELERATOR.
1854 Sun Oct 4 20:34:42 1998 Ian Lance Taylor <ian@cygnus.com>
1856 From Nokubi Hirotaka <hnokubi@yyy.or.jp>:
1857 * objcopy.1: Fix typo in --remove-leading-char docs.
1858 * objdump.1: Fix formatting in --stabs docs.
1860 Sat Sep 19 23:33:56 1998 Ian Lance Taylor <ian@cygnus.com>
1862 * rcparse.y (memflags_move): Correct recursion.
1864 1998-09-10 Ulrich Drepper <drepper@cygnus.com>
1866 * readelf.c (process_symbol_table): Print in histogram how many
1867 symbols are covered by the current chain length.
1869 Sun Sep 6 16:15:47 1998 Nick Clifton <nickc@cygnus.com>
1871 * readelf.c (process_section_contents): Do not try to dump empty
1874 Sat Sep 5 19:17:10 1998 Mumit Khan <khan@xraylith.wisc.edu>
1876 * dlltool.c (scan_all_symbols): Don't re-export symbols exported
1879 1998-09-02 14:50 Ulrich Drepper <drepper@cygnus.com>
1881 * readelf.c (process_dynamic_segment): Print DT_* value only if
1883 (do_histogram): New variable.
1884 (options): New long option histogram. Set do_histogram if this
1886 (usage): Document --histogram.
1887 (parse_args): Handle 0 return value from getopt_long. Enable
1888 do_histogram for -a.
1889 (process_symbol_table): Read hash table also if only do_histogram.
1890 Add code to print hash table histogram.
1892 1998-08-25 16:45 Ulrich Drepper <drepper@cygnus.com>
1894 * readelf.c (process_dynamic_segment): Read syminfo section if
1896 (process_syminfo): New function. Print syminfo information.
1897 (process_file): Call process_syminfo and free syminfo data at the end.
1899 Wed Aug 19 16:19:51 1998 Ian Lance Taylor <ian@cygnus.com>
1901 * dlltool.c (usage): Add file parameter. Change all callers.
1902 (main): Don't treat '?' as a special case in getopt return.
1904 * binutils.texi (dlltool): Document new options. Add some uses of
1907 Wed Aug 19 16:19:07 1998 Mumit Khan <khan@xraylith.wisc.edu>
1909 * dlltool.c (gen_def_file): Plug memory leak. Don't print
1910 demangled name if it is NULL.
1912 Support for exporting all symbols to an output export def file:
1913 * dlltool.c ({export_all_symbols, no_default_excludes,
1914 no_default_excludes, excludes}): New file static variables.
1915 (struct string_list): Type to hold list of symbols to exclude.
1916 (scan_drectve_symbols): Renamed from scan_open_obj_file.
1917 (scan_filtered_symbols): New static function.
1918 (add_excludes): New static function.
1919 (match_exclude): New static function.
1920 (set_default_excludes): New static function.
1921 (filter_symbols): New static function.
1922 (scan_all_symbols): New static function.
1923 (scan_open_obj_file): New static function.
1924 (usage): Document new options.
1925 (long_options): Add new options.
1926 (main): Handle new options.
1928 1998-07-31 21:24 Ulrich Drepper <drepper@cygnus.com>
1930 * readelf.c (process_program_headers): Print p_offset value with
1932 (dynamic_segment_mips_val): Add support for DT_MIPS_FLAGS,
1933 DT_MIPS_IVERSION, and DT_MIPS_TIME_STAMP.
1934 (process_mips_specific): Also print seconds of time stamp.
1936 Fri Jul 31 10:04:23 1998 Catherine Moore <clm@cygnus.com>
1938 * readelf.c (dump_relocations): EM_ARM uses rela relocs.
1940 1998-07-30 16:25 Ulrich Drepper <drepper@cygnus.com>
1942 * readelf.c (get_dynamic_type): Don't used gettext on the names.
1943 Add new DT_* values from Solaris. Don't print nuemric value in
1944 case of an unknown entry.
1945 (process_dynamic_segment): Handle new DT_* entries. Print numeric
1946 values in decimal, not hex.
1948 Fri Jul 24 16:28:57 1998 Jeff Holcomb <jeffh@cygnus.com>
1950 * readelf.c (get_dynamic_type): Remove empty default from switch
1953 Fri Jul 24 16:28:12 1998 Ian Lance Taylor <ian@cygnus.com>
1955 * Makefile.am (install-exec-local): Don't remove the file before
1956 checking whether $(bindir) == $(tooldir)/bin. From Maciej
1957 W. Rozycki <macro@ds2.pg.gda.pl>.
1958 * Makefile.in: Rebuild.
1960 Fri Jul 24 09:38:59 1998 Nick Clifton <nickc@cygnus.com>
1962 * objcopy.c: Removed spurious inclusion of elf/internal.h and
1965 1998-07-22 Ulrich Drepper <drepper@cygnus.com>
1967 * readelf.c: Consistantly use elf_ prefix for *_reloc_type
1970 Wed Jul 22 16:29:12 1998 Nick Clifton <nickc@cygnus.com>
1972 * readelf.c (dump_relocations): Add dumps of HPPA and ARC
1975 (process_relocs): Do not abort if no string table can be found.
1977 1998-07-22 14:58 Ulrich Drepper <drepper@cygnus.com>
1979 * readelf.c: Remove definition of functions to return relocation
1980 symbol strings. They now get implicitly defined when include the
1981 system specific ELF header.
1983 1998-07-22 13:51 Ulrich Drepper <drepper@cygnus.com>
1985 * readelf.c: Before include system specific ELF header define
1986 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS. For now
1987 used for ppc, mips, and mn10300.
1989 Wed Jul 22 10:26:32 1998 Nick Clifton <nickc@cygnus.com>
1991 * readelf.c (dump_relocations): Display number of unrecognised
1994 1998-07-21 13:13 Ulrich Drepper <drepper@cygnus.com>
1996 * readelf.c: Use symbolic names of relocation entries for the various
1997 architectures. Correct more layout details.
1998 Print names of MIPS specific section types. Print Alpha, ARM, and
1999 MIPS relocation type names.
2001 1998-07-20 Vladimir N. Makarov <vmakarov@cygnus.com>
2003 * objcopy.c (filter_symbols): Add code for strip all symbols case.
2004 (copy_objects): Strip all case is now processed also through
2005 filter_symbols. No marking symbols used in relocations when strip
2007 (copy_section): When strip all symbols case, remove relocations
2008 which are not in keep strip specific list.
2009 (strip_main): Remove guard `strip_specific_list == NULL' for
2010 setting up strip all symbols by default.
2012 Mon Jul 20 12:51:16 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2014 * addr2line.c (find_address_in_section): Only consider a section
2015 if the pc value is completely contained within it.
2016 (translate_addresses): Don't crash if functionname or filename are
2019 1998-07-20 07:45 Ulrich Drepper <drepper@cygnus.com>
2021 * readelf.c (process_symbol_table): Fix little alignment problem
2022 in printed table header.
2024 1998-07-20 07:14 Ulrich Drepper <drepper@cygnus.com>
2026 * readelf.c: Correct reading of .dynamic section.
2027 (dynamic_section): Now a global variable.
2028 (process_mips_fpe_exception, process_mips_specific,
2029 process_arch_specific): New functions.
2030 (get_file_header): Call process_arch_specific.
2032 1998-07-19 15:15 Ulrich Drepper <drepper@cygnus.com>
2034 * readelf.c: Fix several versioning related bugs. Produce nicer
2036 Add support for processor specific information on MIPS.
2038 Fri Jul 10 15:57:58 1998 Nick Clifton <nickc@cygnus.com>
2040 * readelf.c: Switch prototypes from unsigned short to unsigned
2043 Fri Jul 10 16:17:50 1998 Ian Lance Taylor <ian@cygnus.com>
2045 From Christian Holland <CHolland@de.lucent.com>:
2046 * ieee.c (parse_ieee): Initialize info.global_vars and
2048 (parse_ieee_atn): Ignore register lifetime information reportedly
2049 emitted by MRI compiler.
2051 Thu Jul 9 13:08:01 1998 Ian Lance Taylor <ian@cygnus.com>
2053 * Makefile.am (MAINTAINERCLEANFILES): Define.
2054 * Makefile.in: Rebuild.
2056 Tue Jul 7 21:48:54 1998 Jeffrey A Law (law@cygnus.com)
2058 * readelf.c (byte_get): Use PARAMS in prototype.
2059 (error): Make it work with non-ANSI compilers.
2061 (get_ver_flags): Don't use an ANSI prototype in the definition.
2063 Tue Jul 7 13:26:13 1998 Ian Lance Taylor <ian@cygnus.com>
2065 * objcopy.c (filter_bytes): Set size correctly if the size of the
2066 section is not an even multiple of the interleave. Based on patch
2067 from Brion Stone <Brion.Stone@attws.com>.
2069 Thu Jul 2 14:01:34 1998 Klaus Kaempf <kkaempf@rmi.de>
2071 * configure.com: Add vax/vms support.
2072 * makefile.vms-in: Renamed from makefile.vms. Add substitutions
2073 now done by configure.com.
2075 Wed Jul 1 20:43:52 1998 Ian Lance Taylor <ian@cygnus.com>
2077 * stabs.c (parse_stab_range_type): Handle 4 and 8 byte signed
2078 integers with real upper bounds. Handle a lower bound one larger
2079 than the upper bound as a signed integer. Handle 8 byte signed
2081 (stab_demangle_template): Optionally return the demangled name of
2083 (stab_demangle_qualified): Treat a template name as a tagged
2085 (stab_demangle_fund_type): Likewise.
2087 Wed Jul 1 16:29:50 1998 Nick Clifton <nickc@cygnus.com>
2089 * objcopy.c: Minor formatting improvements.
2090 * readelf.c: Minor output formatting improvement.
2092 Wed Jul 1 14:23:48 1998 Ian Lance Taylor <ian@cygnus.com>
2094 * rclex.l: Add casts and change types to avoid warnings.
2095 * rcparse.y: Likewise.
2096 * resbin.c: Likewise.
2097 * rescoff.c: Likewise.
2098 * resrc.c: Likewise.
2100 * Makefile.am: Rebuild dependencies.
2101 (HFILES): Remove readelf.h.
2102 * Makefile.in: Rebuild.
2104 Based on patches from Andrew Kozin
2105 <Andrew.Kozin@p14.f960.n5020.z2.fidonet.org>:
2106 * winduni.h: New file, from windres.h.
2107 * winduni.c: New file, from windres.c.
2108 * windres.c: Move Unicode functions into winduni.c.
2109 * windres.h: Move Unicode declarations into winduni.h. Include
2111 (RT_ACCELERATOR): Rename from RT_ACCELERATORS to match Windows
2112 macro. Change all uses.
2113 (RT_PLUGPLAY, RT_VXD): Correct values.
2114 * Makefile.am (HFILES): Add windres.h.
2115 (CFILES): Add winduni.c.
2116 (windres_SOURCES): Add winduni.c.
2118 Mon Jun 29 17:01:21 1998 Nick Clifton <nickc@cygnus.com>
2120 * readelf.c: Use BFD Internal and External Elf structures.
2121 * readelf.h: Removed - no longer needed.
2122 * Makefile.in: Remove readelf.c's dependency upon readelf.h.
2124 1998-06-26 Vladimir N. Makarov <vmakarov@cygnus.com>
2126 * objcopy.c (strip_main): keep_specific_list == NULL as additional
2127 condition to set up strip all symbols by default.
2128 (copy_archive): don't change archive when error in object files of
2131 Wed Jun 24 17:53:47 1998 Ian Lance Taylor <ian@cygnus.com>
2133 * stabs.c (parse_number): Sign extend negative values correctly if
2134 bfd_vma is larger than unsigned long.
2136 Tue Jun 23 14:55:05 1998 Mike Stump <mrs@wrs.com>
2138 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
2139 with the program transform name.
2140 * Makefile.in: Rebuild.
2142 Tue Jun 23 11:08:53 1998 Nick Clifton <nickc@cygnus.com>
2144 * readelf.c: Rewrite to use fopen/fread ratehr than mmap.
2146 Add --section-headers command line switch, which is an alias for
2149 Incorporate improvemnts made by Andreas Schwab
2150 <schwab@issan.informatik.uni-dortmund.de> including output
2151 formatting and version info display.
2153 * binutils.texi: Document --section-headers switch to readelf.
2155 Mon Jun 22 18:28:19 1998 Ian Lance Taylor <ian@cygnus.com>
2157 * readelf.c: Include bfd.h and bucomm.h before system header
2159 (parse_args): Change type of c from char to int.
2161 Sun Jun 14 14:26:28 1998 Nick Clifton <nickc@cygnus.com>
2163 * readelf.c (usage): Write to stdout, not stderr.
2165 Fri Jun 12 13:33:51 1998 Tom Tromey <tromey@cygnus.com>
2167 * po/Make-in (all-yes): Depend on .pot file if maintainer mode
2169 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
2171 Fri Jun 12 16:06:15 1998 Michael Meissner <meissner@cygnus.com>
2173 * readelf.c (get_ppc_rel_type): New PowerPC support.
2174 (dump_relocations): PowerPC uses RELA relocations.
2175 (get_machine_name): Spell PowerPC correctly.
2176 (get_file_type): Change unsigned short parameter to unsigned.
2177 (get_machine_name): Ditto.
2178 (get_machine_data): Return whether big endian or little endian.
2179 (get_machine_flags): Interpret PowerPC, M32R, and MIPS flags.
2180 (process_elf_header): Print endian-ess. Convert all numeric
2181 formats to long or unsigned long. Print out machine specific flag
2183 (process_section_headers): Increase name by 3 columns and decrease
2184 type by the same so that .gcc_except_table fits in the space.
2186 * readelf.h: Include elf/ppc.h, elf/mips.h, and elf/m32r.h to get
2187 machine specific flag bits.
2189 Thu Jun 11 17:54:26 1998 Nick Clifton <nickc@cygnus.com>
2191 * readelf.c: Remove extraneous #includes. Fix warnings produced
2192 by -Wall when compiling under Linux.
2194 * Makefile.am (readelf_LDADD): Add $(LIBIBERTY).
2196 Thu Jun 11 18:30:20 1998 Ian Lance Taylor <ian@cygnus.com>
2198 * stabs.c (struct stab_handle): Add self_crossref field.
2199 (parse_stab_string): If a tag is a cross reference to itself,
2200 don't define it in the tags list.
2201 (parse_stab_type): Set info->self_crossref.
2203 * debug.c (struct debug_type_real_list): Define.
2204 (debug_get_real_type): Add list parameter. Change all callers.
2205 Check for circularity to avoid crashing when it occurs.
2207 Thu Jun 11 14:48:32 1998 Nick Clifton <nickc@cygnus.com>
2209 * readelf.c: New file: Display contents of ELF format file.
2210 * readelf.h: New file: Header file for readelf.c
2211 * Makefile.am: Add rules to build readelf.
2212 * Makefile.in: Rebuilt.
2213 * binutils.texi: Document readelf.
2214 * NEWS: Mention inclusion of readelf into binutils.
2215 * po/POTFILES.in; Rebuilt.
2217 Fri Jun 5 18:43:40 1998 Ian Lance Taylor <ian@cygnus.com>
2219 * objcopy.c (setup_section): Adjust the section size if copy_byte
2221 (copy_section): Do not call bfd_set_section_size.
2223 Thu Jun 4 09:12:27 1998 Nick Clifton <nickc@cygnus.com>
2225 * objcopy.c (copy_usage): Add missing \n\ from help description.
2227 Wed Jun 3 19:31:33 1998 Ian Lance Taylor <ian@cygnus.com>
2229 * Makefile.am (YACC): Correct bison -L option.
2230 * Makefile.in: Rebuild.
2232 * binutils.texi, objdump.1: Document -p/--private-headers.
2234 Wed Jun 3 12:09:40 1998 Nick Clifton <nickc@cygnus.com>
2236 * objcopy.c: Add new command line options: --change-section-lma
2237 and --change-section-vma. Rename old command line option
2238 --adjust-section-vma to --change-section-address. Rename
2239 --adjust-vma to --change-addresses and --adjust-start to
2240 --change-start. Provide aliases to support the old versions of
2241 these command line options.
2243 Change the names of macros and enum elements to upper case to
2244 match the GNU coding standard.
2246 Replace calls to fprintf (stderr,...) with calls to fatal () or
2247 non_fatal () as appropriate.
2249 * objcopy.1: Document command line option changes.
2250 * binutils.texi: Document command line option changes.
2252 * bucomm.h: New exported funtion from bucomm.c: non_fatal().
2253 * bucomm.c (non_fatal): New exported function. Just like fatal()
2254 except that it returns rather than calling xexit().
2256 (bfd_check_format_matches): Call fatal() rather than bfd_fatal().
2258 (check_matching_formats): Fix C formating.
2260 (parse_vma): Call fatal().
2262 Mon Jun 1 18:26:40 1998 Ian Lance Taylor <ian@cygnus.com>
2264 From Yuli Barcohen <yuli.barcohen@telrad.co.il>:
2265 * debug.c (debug_type_samep): Avoid endless loops comparing
2266 function and method parameter types.
2268 Fri May 22 14:02:42 1998 Ian Lance Taylor <ian@cygnus.com>
2270 * dlltool.c (dump_iat): Comment out; not used.
2271 (display): Rename from tell. Change all callers.
2273 Thu May 14 14:00:56 1998 Nick Clifton <nickc@cygnus.com>
2275 * dlltool.c: Add support for Thumb DLLs. Add support for
2276 interworking between ARM and Thumb programs and DLLs. Tidy the
2279 * binutils.texi: Document dlltool.
2281 * configure: Build dlltool for thumb-pe targets.
2283 * version.c (print_version): Include 1998 in copyright strings.
2285 * stabs.c (parse_stab): Support Win32 style directory separators.
2287 Sun May 10 22:34:44 1998 Jeffrey A Law (law@cygnus.com)
2289 * po/Make-in (install-info): New target.
2291 Fri May 8 10:33:13 1998 Nick Clifton <nickc@cygnus.com>
2293 * ar.c (usage): Extend information provided about command line
2296 Wed May 6 15:28:51 1998 Klaus Kaempf <kkaempf@progis.de>
2298 * makefile.vms: Run dec c with /nodebug. Pass CC value when
2301 Tue May 5 15:19:00 1998 Nick Clifton <nickc@cygnus.com>
2303 * configure: Build dlltool for thumb-pe target.
2304 * configure.in: Build dlltool for thumb-pe target.
2306 Sun May 3 22:04:49 1998 Ian Lance Taylor <ian@cygnus.com>
2308 * Makefile.am (EXTRA_PROGRAMS): Change $(SRCONV_PROG) to sysconf
2309 sysdump coffdump to avoid extra $(EXEEXT).
2310 * Makefile.in: Rebuild.
2312 Wed Apr 29 22:22:55 1998 Geoffrey Noer <noer@cygnus.com>
2314 * configure.in: Stop appending EXEEXT to the end of
2315 SRCONV_PROG (wrong because that variable may contain multiple
2317 * Makefile.am: instead, add EXEEXTs to each SRCONV_PROG
2319 * Makefile.in: regenerate
2320 * configure: regenerate
2322 Tue Apr 28 19:14:34 1998 Tom Tromey <tromey@cygnus.com>
2324 * addr2line.c (main): Conditionally call setlocale.
2325 * windres.c (main): Likewise.
2326 * sysdump.c (main): Likewise.
2327 * strings.c (main): Likewise.
2328 * srconv.c (main): Likewise.
2329 * size.c (main): Likewise.
2330 * objdump.c (main): Likewise.
2331 * objcopy.c (main): Likewise.
2332 * nm.c (main): Likewise.
2333 * nlmconv.c (main): Likewise.
2334 * dlltool.c (main): Likewise.
2335 * coffdump.c (main): Likewise.
2336 * ar.c (main): Likewise.
2337 * bucomm.h: Include <locale.h> if HAVE_LOCALE_H.
2338 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
2340 Tue Apr 28 10:33:07 1998 Bill Moyer <ttk@cygnus.com>
2342 Add support for IMPORTS:
2343 * defparse.y (impline): Add IMPORTS syntaxes.
2344 * dlltool.c (ifunctype, iheadtype): New typedefs.
2345 (import_list): New static variable.
2346 (append_import): New static function.
2347 (def_import): Add an entry to import_list.
2348 (generate_idata_ofile): New static function.
2349 (gen_exp_file): Call generate_idata_ofile.
2350 * dlltool.h (def_import): Update declaration.
2352 Mon Apr 27 16:39:22 1998 Ian Lance Taylor <ian@cygnus.com>
2354 * configure.in: Change version number to 2.9.4
2355 * configure: Rebuild.
2357 Wed Apr 22 16:00:35 1998 Tom Tromey <tromey@cygnus.com>
2359 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
2361 Wed Apr 22 00:33:56 1998 Tom Tromey <tromey@scribbles.cygnus.com>
2363 * Makefile.am (INCLUDES): Search intl dirs for headers; define
2365 * addr2line.c (main): Call setlocale, bindtextdomain, textdomain.
2366 * ar.c (main): Likewise.
2367 * coffdump.c (main): Likewise.
2368 * dlltool.c (main): Likewise.
2369 * nlmconv.c (main): Likewise.
2370 * nm.c (main): Likewise.
2371 * objcopy.c (main): Likewise.
2372 * objdump.c (main): Likewise.
2373 * size.c (main): Likewise.
2374 * srconv.c (main): Likewise.
2375 * strings.c (main): Likewise.
2376 * sysdump.c (main): Likewise.
2377 * windres.c (main): Likewise.
2379 Tue Apr 21 22:13:08 1998 Tom Tromey <tromey@scribbles.cygnus.com>
2381 * Many files: Added gettext invocations around user-visible
2383 * bucomm.h: Added gettext-related includes and defines.
2384 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
2385 HAVE_LC_MESSAGES): Define.
2386 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
2387 po/Makefile. Use AM_PROG_LEX.
2388 * Makefile.am (SUBDIRS): New macro.
2389 (POTFILES): Likewise.
2390 (po/POTFILES.in): New target.
2391 (LDADD): Added INTLLIBS.
2392 (objdump_LDADD): Likewise.
2393 (c__filt_LDADD): Likewise.
2394 (ar_LDADD): Likewise.
2395 (ranlib_LDADD): Likewise.
2396 (dlltool_LDADD): Likewise.
2397 (windres_LDADD): Likewise.
2398 * po/Make-in, po/POTFILES.in, po/binutils.pot: New files.
2400 Tue Apr 21 16:07:18 1998 Stanislav Brabec <utx@k332.feld.cvut.cz>
2402 * objcopy.c (preserve_dates): New file static variable.
2403 (smart_rename): If preserve_dates, call set_times when copying.
2404 (strip_main): Remove preserve_dates local variable.
2405 (copy_main): Likewise.
2407 Tue Apr 7 15:41:15 1998 Ian Lance Taylor <ian@cygnus.com>
2409 * Makefile.am (DISTSTUFF): Add defparse.h, defparse.c, rclex.c,
2410 rcparse.h, and rcparse.c
2411 * Makefile.in: Rebuild.
2413 Mon Apr 6 16:24:35 1998 Ian Lance Taylor <ian@cygnus.com>
2415 * Makefile.am (PROGS): Move $(ADDR2LINE_PROG) to end, so that
2416 Makefile.in doesn't have an empty continuation line.
2417 (bin_PROGRAMS): Likewise.
2418 * Makefile.in: Rebuild.
2420 Fri Apr 3 14:48:42 1998 Ian Lance Taylor <ian@cygnus.com>
2422 * Makefile.am (DISTCLEANFILES): Add site.exp and site.bak.
2423 (MOSTLYCLEANFILES): Add binutils.log, binutils.sum, and abcdefgh*.
2424 (mostlyclean-local): New target.
2425 * Makefile.in: Rebuild.
2427 Wed Apr 1 15:54:16 1998 Ian Lance Taylor <ian@cygnus.com>
2429 From Zack Weinberg <zack@rabi.phys.columbia.edu> and H.J. Lu
2431 * ar.c (usage): Mention S modifier.
2432 (main): Add S modifier.
2433 * ar.1, binutils.texi: Document S modifier.
2435 Wed Apr 1 13:11:23 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2437 * binutils.texi: Use @itemx for a secondary item in a table.
2439 Tue Mar 31 18:44:13 1998 Ian Lance Taylor <ian@cygnus.com>
2441 * dep-in.sed: Add rule to remove @OBJDIR@.
2442 * Makefile.am (dep.sed): Substitute for @OBJDIR@.
2443 * Makefile.in: Rebuild.
2445 Mon Mar 30 12:47:18 1998 Ian Lance Taylor <ian@cygnus.com>
2447 * configure.in: Set version to 2.9.1.
2448 * configure: Rebuild.
2450 * Branched binutils 2.9.
2452 * Makefile.am (DISTCLEANFILES): Remove defparse.h, arparse.h,
2453 rcparse.h, and nlmheader.h.
2454 * Makefile.in: Rebuild.
2456 Sat Mar 28 17:39:27 1998 Ian Lance Taylor <ian@cygnus.com>
2458 * Makefile.am (MOSTLYCLEANFILES): Define.
2459 * Makefile.in: Rebuild.
2461 Fix some gcc -Wall warnings:
2462 * nlmconv.c (main): Add casts to avoid warnings.
2463 (alpha_mangle_relocs): Likewise.
2464 * objdump.c (dump_section_stabs): Likewise.
2465 * size.c (print_sysv_format): Likewise.
2466 * srcconv.c (wr_ob): Likewise.
2467 * wrstabs.c (stab_modify_type): Likewise.
2468 (stab_variable): Likewise.
2469 * nlmconv.c (main): Initialize variables to avoid warnings.
2470 * nm.c (sort_symbols_by_size): Likewise.
2471 * objdump.c (disassemble_bytes): Likewise.
2472 * wrstabs.c (stab_end_class_type): Likewise.
2473 * coffgrok.c (do_sections_p2): Change j to unsigned int.
2474 (do_lines): Change l to unsigned int.
2475 * nlmheader.y (yylex): Change i to unsigned int.
2476 * nm.c (print_symbol): Change j to long.
2477 * size.c (lprint_number): Comment out.
2478 * srconv.c (wr_ob): Change i to bfd_size_type.
2479 * sysdump.c (unit_info_list): Comment out.
2480 (object_body_list, program_structure, debug_list): Likewise.
2481 * sysinfo.y (yyerror): Return value.
2483 Thu Mar 26 17:06:51 1998 Richard Henderson <rth@cygnus.com>
2485 * defparse.y (explist): Allow epsilon.
2486 Suggestion from Jonathan-Harris@psion.com.
2488 Thu Mar 26 16:59:09 1998 Richard Henderson <rth@cygnus.com>
2490 * coffgrok.c (do_sections_p1): Use the section's lma instead of vma
2491 for the benefit of prom loaders.
2493 Wed Mar 25 13:05:39 1998 Ian Lance Taylor <ian@cygnus.com>
2495 Based on patch from H.J. Lu <hjl@gnu.org>:
2496 * Makefile.am (DISTSTUFF): New variable.
2497 (diststuff): New target.
2498 (DISTCLEANFILES): New variable.
2499 * Makefile.in: Rebuild.
2501 Tue Mar 24 19:33:08 1998 Ian Lance Taylor <ian@cygnus.com>
2503 * rclex.l: Accept { and } as synonyms for BEGIN and END.
2505 Fri Mar 20 19:18:08 1998 Ian Lance Taylor <ian@cygnus.com>
2507 * aclocal.m4, configure: Rebuild with libtool 1.2.
2509 Tue Feb 24 13:07:50 1998 Doug Evans <devans@canuck.cygnus.com>
2511 * objdump.c (disassemble_data): Delete "++place" after call to
2512 find_symbol_for_address. Set disasm_info.symbols to array of
2513 symbols at the current address.
2515 Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
2517 * Makefile.am (install-exec-local): Install properly when ln
2518 fails or tooldir == prefix.
2520 Tue Feb 17 18:40:55 1998 Richard Henderson <rth@cygnus.com>
2522 * objcopy.c (compare_section_lma): Rename from _vma.
2523 (copy_object): Gap fill based on LMA not VMA.
2524 * binutils.texi: Update and clarify.
2525 * objcopy.1: Likewise.
2527 Tue Feb 17 20:34:11 1998 Ian Lance Taylor <ian@cygnus.com>
2529 * dlltool.c (gen_exp_file): Generate _imp__%s as well as __imp_%s,
2530 for Microsoft compatibility.
2531 (make_one_lib_file): Likewise.
2533 * dlltool.c (make_one_lib_file): Don't add 1 to hint.
2535 Fri Feb 13 16:37:44 1998 Ian Lance Taylor <ian@cygnus.com>
2537 * Makefile.am (AUTOMAKE_OPTIONS): Define.
2538 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
2540 Thu Feb 12 14:13:46 1998 Ian Lance Taylor <ian@cygnus.com>
2542 * deflex.l: Accept '?' in symbol names, for VC++ mangled names.
2543 From Mikey <jeffdb@netzone.com>.
2545 * addr2line.c (usage): Update bug-gnu-utils address.
2546 * ar.c (usage): Likewise.
2547 * nlmconv.c (show_usage): Likewise.
2548 * nm.c (usage): Likewise.
2549 * objcopy.c (copy_usage): Likewise.
2550 (strip_usage): Likewise.
2551 * objdump.c (usage): Likewise.
2552 * size.c (usage): Likewise.
2553 * strings.c (usage): Likewise.
2554 * windres.c (usage): Likewise.
2555 * binutils.texi (Bug Reporting): Likewise.
2557 Sat Feb 7 15:36:24 1998 Ian Lance Taylor <ian@cygnus.com>
2559 * configure, aclocal.m4: Rebuild with new libtool.
2561 Thu Feb 5 12:21:13 1998 Ian Lance Taylor <ian@cygnus.com>
2563 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
2565 Fri Jan 30 19:16:28 1998 Doug Evans <devans@canuck.cygnus.com>
2567 * Makefile.am (CC_FOR_TARGET,nlmcomv.o): Change program_transform_name
2569 * Makefile.in: Regenerate.
2571 Thu Jan 29 16:24:04 1998 Mumit Khan <khan@xraylith.wisc.edu>
2573 * dlltool.c: Define exit status macros for _WIN32 but not
2575 (gen_lib_file): Check for exit status of unlink.
2576 * resrc.c: Define popen and pclose if _WIN32 but not
2579 Wed Jan 28 17:45:46 1998 Ian Lance Taylor <ian@cygnus.com>
2581 * configure.in: Remove vfork check.
2582 * nlmconv.c: Never include vfork.h.
2583 * aclocal.m4, configure, Makefile.in, config.in: Rebuild.
2585 Wed Jan 28 17:43:02 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
2587 * objcopy.c (copy_archive): Only pass one argument to mkdir if
2588 _WIN32 but not __CYGWIN32__.
2589 (smart_rename): Add code for _WIN32 (not __CYGWIN32__), to cope
2590 with different rename behaviour and lack of chown.
2592 * configure.in: Check for mingw32 when deciding whether to build
2594 * dlltool.c: Never include vfork.h.
2595 (run): Use pexecute rather than vfork.
2596 (gen_lib_file): Check for errors from bfd_set_archive_head and
2597 bfd_close. Close all the BFDs in the archive before deleting the
2600 Thu Jan 22 16:22:55 1998 Fred Fish <fnf@cygnus.com>
2602 * objdump.c (disassemble_bytes): Add flag INSN_HAS_RELOC to tell
2603 disassembly function there is a reloc on this line.
2605 Wed Jan 14 15:29:43 1998 Richard Henderson <rth@cygnus.com>
2607 * srconv.c (sh, h8300): Delete variables.
2608 (addrsize, toolname, rnames): New variables.
2609 (writeINT): Use addrsize.
2610 (wr_un): Use toolname.
2611 (wr_hd): Set up addrsize et al properly for h8300[hs].
2612 (walk_tree_symbol): Zero dsy. Use rnames.
2613 (wr_un, wr_hd, wr_ob, wr_du): Use proper bfd access macros.
2614 * sysdump.c (sh, h8300): Delete variables.
2615 (addrsize): New variable.
2617 (getone): Initialize it.
2618 (getBITS): Range check on MAX.
2620 Mon Dec 29 16:58:05 1997 Ian Lance Taylor <ian@cygnus.com>
2622 From Matthew Bellantoni <matthew@chrysalis.com>:
2623 * ar.c (get_pos_bfd): Add default_posname parameter. Change all
2625 (replace_members): Default to replacing in the same position.
2627 Mon Dec 22 11:27:22 1997 Ian Lance Taylor <ian@cygnus.com>
2629 * rclex.l: Don't permit a comma in a STRING.
2630 * rcparse.y (acc_entry): Warn if an inappropriate modifier is used
2632 (acc_event): For a control character, set VIRTKEY, and force the
2633 character to uppercase.
2634 (acc_options): Don't require a comma separator.
2636 Tue Dec 9 13:25:42 1997 Michael Meissner <meissner@cygnus.com>
2638 * size.c (size_number): New function to provide size of field.
2639 ({l,r}print_number): For octal and hex fields, print field using
2640 '0' and '0x' suffixes. Do not include following tab.
2641 (sysv_internal_sizer): Size section name, section size, and vma
2643 (sysv_internal_printer): Use calculated sizes for the columns.
2644 (print_sysv_format): Size columns before printing.
2645 (print_berkeley_format): Print tabs between numbers now that
2646 {l,r}print_number doesn't. Print fields right justified.
2648 Mon Dec 8 11:22:04 1997 Nick Clifton <nickc@cygnus.com>
2650 * objdump.c (objdump_print_addr_with_sym): Remove call to
2651 disasm_symaddr() as this function no longer exists.
2653 Tue Dec 2 10:23:50 1997 Nick Clifton <nickc@cygnus.com>
2655 * objdump.c (objdump_print_addr_with_sym): Call disasm_symaddr()
2656 to allow backend to know which symbol has just been displayed.
2658 Tue Dec 2 13:06:46 1997 Ian Lance Taylor <ian@cygnus.com>
2660 * windres.h (ESCAPE_*): Define standard escape sequences.
2661 * rclex.l (handle_quotes): Handle standard escape sequences. Warn
2662 about an unrecognized escape character.
2663 * windres.c (unicode_print): Print standard escape sequences.
2664 * rcparse.y (acc_event): Initialize $$.next.
2665 * resbin.c (bin_to_res_menuitems): Don't set MENUITEM_POPUP or
2666 MENUITEM_ENDMENU in the menu item flags.
2667 (bin_to_res_accelerators): Allocate a structure (the old code
2669 (res_to_bin_accelerator): Correct the test for setting ACC_LAST.
2670 (res_to_bin_dialog): Save the extended style rather than saving
2671 the style twice. Remove useless shadowing length variable. Set
2672 the length of control data correctly.
2673 * resrc.c (write_rc_dialog): Don't print the class or menu if the
2674 string length is zero.
2676 Mon Nov 24 18:52:43 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2678 * stabs.c (parse_stab_argtypes): Don't try to parse the name of a
2679 destructor as mangled argument types.
2681 Mon Nov 10 17:51:41 1997 Gavin Koch <gavin@cygnus.com>
2683 * addr2line.c (translate_addresses): Use bfd_scan_vma rather
2684 than strtol to scan addresses.
2686 Sun Nov 9 11:01:31 1997 Jeffrey A Law (law@cygnus.com)
2688 * Makefile.am (bin_PROGRAMS): Don't use line continuations here.
2690 Tue Nov 4 11:56:14 1997 Ian Lance Taylor <ian@cygnus.com>
2692 * objcopy.c (copy_section): Don't crash if there is no particular
2693 information for a section.
2695 Mon Nov 3 12:36:19 1997 Ian Lance Taylor <ian@cygnus.com>
2697 * objcopy.c (parse_flags): Make flag check case insensitive.
2698 Check for `contents' flag. Give an error for unrecognized flags.
2699 (copy_section): If the contents flag was set for a section that
2700 had no contents, zero out the new contents.
2701 * binutils.texi (objcopy): Document contents section flag.
2703 Sun Nov 2 14:49:56 1997 Ian Lance Taylor <ian@cygnus.com>
2705 * objcopy.c: Move new struct and variable definitions to top of
2706 file. Remove obsolete add_strip_symbol and is_strip_symbol
2707 declarations. Add prototype declarations for add_specific_symbol
2708 and is_specified_symbol.
2710 Mon Oct 20 15:31:43 1997 Klaus K"ampf <kkaempf@progis.de>
2712 * configure.com (HAVE_SBRK): Undefine.
2714 Tue Oct 14 16:14:35 1997 Nick Clifton <nickc@cygnus.com>
2716 * objdump.c (objdump_symbol_at_address): New function. Returns
2717 true if a symbol can be found at the address passed in.
2718 (disassemble_data): Set the symbol_at_address_func field to point
2719 to objdump_symbol_at_address.
2721 Fri Oct 10 14:13:09 1997 Richard Henderson <rth@cygnus.com>
2723 * objcopy.c, objcopy.1, binutils.texi: "localize" is a better name
2724 than "privatize". Update all references.
2726 Thu Oct 9 15:57:29 1997 Ian Lance Taylor <ian@cygnus.com>
2728 * binutils.texi (strip): Remove duplicate --target. From Marty
2729 Leisner <leisner@sdsp.mc.xerox.com>.
2731 * nm.c (lineno_cache_bfd): New file static variable.
2732 (lineno_cache_rel_bfd): New file static variable.
2733 (display_archive): Clear lineno_cache_bfd and lineno_cache_rel_bfd
2735 (display_file): Likewise.
2736 (print_symbol): Use lineno_cache_bfd and lineno_cache_rel_bfd
2737 instead of cache_bfd and cache_rel_bfd. Make seccount static, and
2738 only set it when setting relocs.
2740 Wed Oct 8 21:19:11 1997 Richard Henderson <rth@cygnus.com>
2742 * objcopy.c (keep_specific_list, privatize_specific_list,
2743 weaken_specific_list): New variables.
2744 (keep_symbols): Removed.
2745 (add_specific_symbol): New function from the carcas of
2746 add_strip_symbol. Takes a list as an argument.
2747 (is_specified_symbol): Likewise from is_strip_symbol.
2748 (filter_symbols): Honor the new privatize and weaken lists.
2749 Optimize bfd_asymbol_name handling.
2750 (copy_object, copy_options, copy_usage): Add privatize-symbol &
2751 weaken-symbol options.
2753 * objcopy.1, binutils.texi: Update docs.
2755 Sun Oct 5 09:05:44 1997 Frank Ch. Eigler <fche@cygnus.com>
2757 * objdump.c (disassemble_data): Make "--prefix-addresses"
2758 disassembly adjust to mixed-length instructions.
2759 (objdump_print_addr_with_sym): Add "0x" prefix for hexadecimal
2760 symbol-offsets in disassembly.
2762 Fri Oct 3 12:04:25 1997 Ian Lance Taylor <ian@cygnus.com>
2764 * objcopy.c (set_times): New static function, replacing
2766 (strip_main): If preserve_dates, stat the input file before
2767 copying it, and call set_times afterward.
2768 (copy_main): Likewise.
2770 * wrstabs.c (write_stabs_in_sections_debugging_info): Cast p to
2771 char * when calling strcpy and strlen.
2773 Wed Sep 24 11:34:05 1997 Ian Lance Taylor <ian@cygnus.com>
2775 * binutils.texi (ar cmdline): Document that q now works like r.
2776 From Marty Leisner <leisner@sdsp.mc.xerox.com>.
2778 * binutils.texi (size): The object file argument is optional.
2779 From Marty Leisner <leisner@sdsp.mc.xerox.com>.
2781 * aclocal.m4: Rebuild with new libtool.
2782 * configure: Rebuild.
2784 Tue Aug 26 17:48:34 1997 Ian Lance Taylor <ian@cygnus.com>
2786 * Makefile.am (EXEEXT_FOR_BUILD): New variable. Use it in all
2787 references to the sysinfo program.
2788 * configure.in: Rebuild with new bfd/acinclude.m4.
2789 * Makefile.in: Rebuild.
2791 Fri Aug 8 15:32:49 1997 Ian Lance Taylor <ian@cygnus.com>
2793 * windres.c: Include <time.h>.
2794 (define_resource): Set a timestamp for the resource.
2796 Wed Aug 6 13:37:58 1997 Ian Lance Taylor <ian@cygnus.com>
2798 * configure.in: Define TARGET in header file.
2799 * acconfig.h (TARGET): Add #undef.
2800 * Makefile.am (version.o, bucomm.o): Remove special targets.
2801 * bucomm.c (target): Remove.
2802 * nm.c (program_name): Don't declare.
2803 (target): Make static.
2804 * size.c (target): Make static.
2805 * configure, config.in, Makefile.in: Rebuild.
2807 Tue Aug 5 00:01:41 1997 Ian Lance Taylor <ian@cygnus.com>
2809 * Makefile.am (check-DEJAGNU): Export r.
2810 (.dep1): Use $(INCLUDES) rather than $(ALL_CFLAGS).
2811 * Makefile.in: Rebuild.
2813 * nlmheader.y: Use VERSIONK rather than VERSION.
2815 * Makefile.am (STRIP_PROG): Change from strip.new to strip-new.
2816 (NM_PROG): Change from nm.new to nm-new.
2817 (TOOL_PROGS, install-exec-local): Adjust accordingly.
2818 * Makefile.in: Rebuild.
2820 Mon Aug 4 11:47:31 1997 Ian Lance Taylor <ian@cygnus.com>
2822 * configure.in: Remove AC_ARG_PROGRAM; it's invoked by
2824 * configure: Rebuild.
2826 * Makefile.am (install-exec-local): Create $(tooldir)/bin before
2827 trying to install anything into it.
2828 * Makefile.in: Rebuild.
2830 * Makefile.am (TOOL_PROGS): Use an explicit $(EXEEXT).
2831 (install-exec-local): When handling $(noinst_PROGRAMS), only use
2832 $(EXEEXT) on the installed file. When handling $(TOOL_PROGS),
2833 handle $(EXEEXT) correctly.
2834 * configure.in: Add an explicit $(EXEEXT) when substituting for
2835 the name of a program to build.
2836 * Makefile.in, configure: Rebuild.
2838 * aclocal.m4, configure, Makefile.in: Rebuild with new automake
2841 * deflex.l, defparse.y: Use VERSIONK rather than VERSION.
2842 * rclex.l, rcparse.y: Likewise.
2843 * Makefile.am (windres_SOURCES): Add $(BULIBS).
2844 * Makefile.in: Rebuild.
2846 Fri Aug 1 13:08:39 1997 Ian Lance Taylor <ian@cygnus.com>
2848 * acinclude.m4: Include bfd/acinclude.m4, not bfd/acmacros.m4.
2849 * aclocal.m4, configure: Rebuild with new libtool.
2851 Thu Jul 31 11:51:35 1997 Ian Lance Taylor <ian@cygnus.com>
2853 * Makefile.am: New file, based on old Makefile.in.
2854 * acinclude.m4: New file, from old aclocal.m4.
2855 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
2856 shared library handling; now handled by libtool. Replace
2857 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
2858 AC_PROG_LEX, AC_DECL_YYTEST, AM_MAINTAINER_MODE, AM_CYGWIN32, and
2859 AM_EXEEXT. Replace AC_PROG_INSTALL with AM_PROG_INSTALL. Remove
2860 stamp-h handling in AC_OUTPUT.
2861 * acconfig.h: Mention PACKAGE and VERSION.
2862 * stamp-h.in: New file.
2863 * Makefile.in: Now built with automake.
2864 * aclocal.m4: Now built with aclocal.
2865 * config.in, configure: Rebuild.
2867 From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
2868 * rcparse.y (dialog): Default menu and class to be named.
2869 (styles): If FONT is seen, set DS_SETFONT in dialog style.
2870 * resbin.c (res_to_bin_dialog): Correct computation of font
2873 Wed Jul 30 11:21:06 1997 Ian Lance Taylor <ian@cygnus.com>
2875 From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
2876 * resbin.c (res_to_bin_menu): Correct computation of menu
2878 * resrc.c (define_stringtable): Add 1 to resource ID.
2880 Tue Jul 29 11:06:03 1997 Ian Lance Taylor <ian@cygnus.com>
2882 * resbin.c (bin_to_res_string): Correct adjustment of data and
2883 length. From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>.
2885 Tue Jul 22 18:01:23 1997 Ian Lance Taylor <ian@cygnus.com>
2887 * nlmconv.c (link_inputs): Call libiberty pexecute function.
2888 (pexecute) [multiple versions]: Remove.
2890 Tue Jul 22 16:19:34 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
2892 * bucomm.c (make_tempname): If we might be using a DOS filesystem,
2893 check for a backslash as well as a slash.
2895 Thu Jun 26 13:53:17 1997 Ian Lance Taylor <ian@cygnus.com>
2897 * windres.c (main): Quit if we didn't get any resources.
2898 (usage): Fix --yydebug usage message.
2899 * rescoff.c (write_coff_file): Don't free the relocation array
2900 until after we've closed the BFD.
2901 (read_coff_rsrc): Quit rather than try to read standard input.
2902 (write_coff_file): Quit rather than try to write to standard
2904 * rcparse.y: Add a couple of missing semicolons (accepted by bison
2906 * binutils.texi: Document windres.
2908 Wed Jun 25 20:57:06 1997 Ian Lance Taylor <ian@cygnus.com>
2910 * resbin.c: New file.
2911 * rclex.l, rcparse.y, rescoff.c, resrc.c, windres.c, windres.h:
2912 Numerous fixes and improvements.
2913 * Makefile.in: Rebuild dependencies.
2914 (CFILES): Add resbin.c.
2915 (WINDRES_OBJS): Add resbin.o.
2917 Sun Jun 22 17:29:41 1997 Ian Lance Taylor <ian@cygnus.com>
2919 First stab at Windows resource compiler:
2920 * windres.h: New file.
2921 * windres.c: New file.
2922 * resrc.c: New file.
2923 * rcparse.y: New file.
2924 * rclex.l: New file.
2925 * rescoff.c: New file.
2926 * configure.in: Define and substitute BUILD_WINDRES.
2927 * configure: Rebuild.
2928 * Makefile.in: Rebuild dependencies.
2929 (WINDRES_PROG): New variable.
2930 (PROGS): Add @BUILD_WINDRES@.
2931 (HFILES): Add dlltool.h and windres.h.
2932 (CFILES): Add windres.c and resrc.c.
2933 (GENERATED_CFILES): Add rcparse.c and rclex.c.
2934 (WINDRES_OBJS): New variable.
2935 $(WINDRES_PROG): New target.
2936 (rcparse.c, rcparse.h, rclex.c): New targets.
2938 Thu Jun 12 12:27:51 1997 Ian Lance Taylor <ian@cygnus.com>
2940 * dlltool.c (export_type): Add data field.
2941 (def_exports): Add data parameter. Change all callers.
2942 (dump_def_info): Print data field.
2943 (gen_def_file): Likewise.
2944 (make_one_lib_file): Handle data field by not emitting simple
2945 label and not emitting anything in SEC_TEXT.
2946 (dtab): Print data field.
2947 (process_duplicates): Merge data field.
2948 * dlltool.h (def_exports): Update declaration.
2949 * defparse.y (expline): Accept opt_DATA. Pass it to def_exports.
2950 (opt_DATA): New non-terminal.
2952 Wed Jun 11 17:15:47 1997 Ian Lance Taylor <ian@cygnus.com>
2954 * dlltool.h: New file.
2955 * deflex.l: Include dlltool.h and libiberty.h. Don't declare
2956 strdup. Use xstrdup rather than strdup.
2957 * defparse.y: Include bfd.h, bucomm.h, and dlltool.h.
2958 * dlltool.c: Include dlltool.h and time.h. Make a lot of
2959 variables and functions static. Make a lot of char * variables
2960 and parameters const. Add declarations for static functions. Do
2961 some reindenting. Hide more PowerPC stuff inside DLLTOOL_PPC.
2963 Wed Jun 11 12:05:52 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2965 * ar.c (bfd_special_undocumented_glue): Add const.
2967 Mon May 12 22:09:35 1997 Bob Manson <manson@charmed.cygnus.com>
2969 * Makefile.in (check): Pass CC_FOR_TARGET and CFLAGS_FOR_TARGET
2972 Mon May 12 13:14:22 1997 Ian Lance Taylor <ian@cygnus.com>
2974 * configure.in: Don't clear OPCODES when --enable-commonbfdlib is
2976 * configure: Rebuild.
2978 Fri Apr 25 14:22:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2980 * Makefile.in (maintainer-clean realclean): Change *.info*
2981 to binutils.info* to save sysroff.info.
2983 Tue Apr 15 13:42:22 1997 Ian Lance Taylor <ian@cygnus.com>
2985 * Makefile.in (INSTALL): Set to @INSTALL@.
2986 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
2987 (install): Depend upon installdirs. Use $(program_transform_name)
2988 directly, rather than using $(INSTALL_XFORM) and
2990 (installdirs): New target.
2991 (install-info): Run mkinstalldirs.
2993 Mon Apr 14 11:52:39 1997 Ian Lance Taylor <ian@cygnus.com>
2995 * Makefile.in (INSTALL): Change install.sh to install-sh.
2997 From Thomas Graichen <graichen@rzpd.de>:
2998 * Makefile.in: Always use $(SHELL) when running move-if-change.
2999 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
3000 * configure: Rebuild.
3002 Fri Apr 4 13:28:02 1997 Ian Lance Taylor <ian@cygnus.com>
3004 * configure.in: Add AC_FUNC_ALLOCA.
3005 * configure, config.in: Rebuild.
3006 * bucomm.h: Add alloca handling, copied from gas/as.h.
3007 * dlltool.c: Add #pragma alloca for AIX to start of file.
3008 * nlmconv.c: Likewise.
3010 * Makefile.in (distclean): Remove site.exp and site.bak. Remove
3011 everything that clean removes.
3013 Thu Apr 3 13:18:39 1997 Ian Lance Taylor <ian@cygnus.com>
3015 * Makefile.in (VERSION): Set to 2.8.1.
3017 * Branched binutils 2.8.
3019 Tue Apr 1 16:21:44 1997 Klaus Kaempf <kkaempf@progis.de>
3021 * configure.com: New file.
3022 * config.h-vms: Remove file.
3023 * makefile.vms: Update for new configure scheme.
3025 Mon Mar 31 15:30:43 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3027 * objcopy.c (make_same_dates): Use statbuf, not buf, if not
3030 Fri Mar 28 17:57:53 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
3032 * Makefile.in ($(OBJDUMP_PROG)): Don't link against BFDLIB twice.
3033 * configure.in: Add AC_ARG_ENABLE for commonbfdlib. If it is set,
3034 set OPCODES to empty.
3035 * configure: Rebuild.
3037 Thu Mar 27 16:03:02 1997 Ian Lance Taylor <ian@cygnus.com>
3039 Based on patch from Marty Leisner <leisner@sdsp.mc.xerox.com>:
3040 * objcopy.c: Include <utime.h> or <sys/time.h>.
3041 (strip_options): Add "preserve-dates".
3042 (copy_options): Likewise.
3043 (copy_usage): Mention -p and --preserve-dates.
3044 (strip_usage): Likewise.
3045 (make_same_dates): New static function.
3046 (strip_main): Handle -p.
3047 (copy_main): Likewise.
3048 * binutils.texi, strip.1, objcopy.1: Document new option.
3050 addr2line.c contributed by Ulrich Lauther
3051 <Ulrich.Lauther@zfe.siemens.de>:
3052 * addr2line.c: New file.
3053 * Makefile.in: Rebuild dependencies.
3054 (ADDR2LINE_PROG): New variable.
3055 (MANPAGES): Add addr2line.
3056 (PROGS): Add $(ADDR2LINE_PROG).
3057 (CFILES): Add addr2line.c.
3058 ($(ADDR2LINE_PROG)): New target.
3059 * binutils.texi: Document addr2line.
3060 * addr2line.1: New file.
3062 * version.c (print_version): Update copyright date.
3064 Mon Mar 24 10:52:45 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3066 * objdump.c (disassemble_data): Don't exit if a file cannot be
3067 disassembled, instead just return.
3069 Thu Mar 20 21:16:51 1997 Jeffrey A Law (law@cygnus.com)
3071 * size.c (usage): Make definition match its prototype.
3072 (display_bfd, lprint_number, rprint_number): Likewise.
3073 (print_berkeley_format, sysv_internal_printer): Likewise.
3074 (print_sysv_format): Likewise.
3075 * nm.c (set_print_radix, set_output_format): Likewise.
3076 * objcopy.c (filter_bytes): Likewise.
3078 Tue Mar 18 16:39:55 1997 H.J. Lu <hjl@lucon.org>
3080 * Many files: Add function prototypes.
3081 * ar.c (mri_emul, get_pos_bfd): Make static.
3082 * arlex.l: Include "libiberty.h". Don't declare strdup. Use
3083 xstrdup rather than strdup.
3084 * arparse.y (yyerror): Make argument const. Correct typo.
3085 * arsup.c (strdup): Don't declare.
3086 (ar_save): Use xstrdup rather than strdup.
3087 * filemode.c: Include "bucomm.h".
3088 * nm.c (usage): Make static.
3089 (print_symname): Make format and name const.
3090 * objcopy.c (cat): Remove.
3091 (copy_archive): Make output_target const. Use concat, not cat.
3092 (copy_file, simple_copy, smart_rename): Make arguments const.
3093 * objdump.c (read_section_stabs): Likewise.
3094 (print_section_stabs): Likewise.
3095 (display_target_tables): Don't declare getenv.
3096 * strings.c (strings_object_file): Change file to const.
3097 (print_strings): Change filename to const.
3098 * Makefile.in: Rebuild dependencies.
3100 Tue Mar 18 11:37:24 1997 Ian Lance Taylor <ian@cygnus.com>
3102 * configure.in: Add BFD_NEED_DECLARATION(getenv).
3103 * acconfig.h: Add NEED_DECLARATION_GETENV.
3104 * bucomm.h (getenv): Declare if NEED_DECLARATION_GETENV.
3105 * configure, config.in: Rebuild.
3106 * nlmconv.c (getenv): Don't declare.
3108 * Makefile.in: Rebuild dependencies.
3110 Sat Mar 15 15:35:56 1997 Ian Lance Taylor <ian@cygnus.com>
3112 Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
3113 * objdump.c: Include "demangle.h".
3114 (do_demangle): New static variable.
3115 (usage): Mention -C/--demangle.
3116 (long_options): Add "demangle".
3117 (objdump_print_symname): New static function.
3118 (objdump_print_addr_with_sym): Use objdump_print_symname.
3119 (disassemble_bytes): Likewise.
3120 (dump_reloc_set): Likewise.
3121 (dump_symbols): Demangle symbol name.
3123 * binutils.texi, objdump.1: Document -C/--demangle.
3125 * objdump.c (usage): Mention --no-show-raw-insn.
3126 (long_options): Add "no-show-raw-insn".
3127 (disassemble_bytes): Handle --no-show-raw-insn.
3128 * binutils.texi, objdump.1: Document --no-show-raw-insn.
3130 Wed Mar 12 11:42:00 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3132 * rddbg.c (free_saved_stabs): Set the strings to NULL after being
3135 Fri Feb 28 17:18:45 1997 Ian Lance Taylor <ian@cygnus.com>
3137 * bucomm.c (set_default_bfd_target): New function.
3138 * bucomm.h (set_default_bfd_target): Declare.
3139 * ar.c (main): Call set_default_bfd_target.
3140 * nlmconv.c (main): Likewise.
3141 * nm.c (main): Likewise.
3142 * objcopy.c (main): Likewise.
3143 * objdump.c (main): Likewise.
3144 * size.c (main): Likewise.
3145 * strings.c (main): Likewise.
3146 * Makefile.in (bucomm.o): New target, to define TARGET.
3148 Tue Feb 25 21:28:38 1997 Ian Lance Taylor <ian@cygnus.com>
3150 * objdump.c (adjust_section_vma): New static variable.
3151 (usage): Mention --adjust-section-vma.
3152 (OPTION_ADJUST_VMA): Define.
3153 (long_options): Add "addjust-vma".
3154 (display_bfd): If adjust_section_vma is not 0, add it to all the
3156 (main): Handle OPTION_ADJUST_VMA.
3157 * binutils.texi, objdump.1: Document --adjust-vma.
3159 Fri Feb 14 18:46:47 1997 Ian Lance Taylor <ian@cygnus.com>
3161 * nm.c (print_symbol): Cache the BFD as well as the symbols and
3162 relocs, and don't try to use the symbols or relocs with a
3165 Thu Feb 13 21:34:43 1997 Klaus Kaempf (kkaempf@progis.de)
3167 * config.h-vms: sbrk() is provided on openVMS/Alpha.
3168 * makefile.vms: allow compiling with current gcc snapshot.
3170 Thu Feb 13 20:14:40 1997 Ian Lance Taylor <ian@cygnus.com>
3172 * arsup.c, coffgrok.c, dlltool.c, nlmconv.c: Use xmalloc rather
3175 Wed Feb 12 16:12:02 1997 Ian Lance Taylor <ian@cygnus.com>
3177 * objdump.c (disassemble_data): Correct VMA argument to
3178 find_symbol_for_address. Improve handling of code with no symbol
3179 followed by code with a symbol.
3181 Wed Feb 12 12:16:47 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3183 * objdump.c (disassemble_bytes): Make output of raw instructions
3184 work better for non-standard values of bytes_per_chunk and
3187 Thu Feb 6 14:14:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3189 * objdump.c (disassemble_bytes): Added code to allow some control
3190 over the way raw instructions are displayed.
3192 Thu Feb 6 12:36:03 1997 Ian Lance Taylor <ian@cygnus.com>
3194 * stabs.c (struct bincl_file): Add next_stack field.
3195 (push_bincl): Put the new file on both bincl_list and
3196 bincl_stack. Clear the file_types field.
3197 (pop_bincl): Use the next_stack field when popping the stack.
3198 Don't put the file on bincl_list.
3199 (find_excl): Include the file name when warning about an unfound
3202 * debug.c (debug_type_samep): Don't crash if we are passed NULL.
3204 Thu Feb 6 11:54:24 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
3206 * objcopy.1: Add missing space after .B.
3208 Fri Jan 31 10:33:07 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3210 * objdump.c (disassemble_data): Initialize `aux.require_sec'.
3212 Wed Jan 29 13:21:21 1997 Ian Lance Taylor <ian@cygnus.com>
3214 * objdump.c (objdump_print_value): Add skip_zeroes parameter.
3216 (objdump_print_addr_with_sym): Likewise. Call objdump_print_value
3218 (objdump_print_addr): New static function.
3219 (objdump_print_address): Just call objdump_print_addr.
3220 (disassemble_bytes): Print real address, not function offset.
3221 Skip a certain number of leading zeroes.
3223 * objdump.c (disassemble_zeroes): New static variable.
3224 (usage): Mention --disassemble-zeroes.
3225 (long_options): Add "disassemble-zeroes".
3226 (disassemble_bytes): Check disassemble_zeroes.
3228 Tue Jan 28 16:47:26 1997 Ian Lance Taylor <ian@cygnus.com>
3230 * objdump.c (disassemble_bytes): Don't skip zeroes if the
3231 disassembler has told us that we are in a branch delay slot.
3233 Mon Jan 20 14:24:04 1997 Ian Lance Taylor <ian@cygnus.com>
3235 * size.c (berkeley_sum): Rewrite. Skip sections which are not
3236 SEC_ALLOC. Count SEC_READONLY sections as text.
3238 Tue Jan 14 15:14:14 1997 Ian Lance Taylor <ian@cygnus.com>
3240 * Makefile.in (maintainer-clean realclean): Remove *.info*, not
3241 just *.info. From H.J. Lu <hjl@lucon.org>.
3243 Tue Dec 31 15:42:54 1996 Ian Lance Taylor <ian@cygnus.com>
3245 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
3247 Fri Dec 27 11:19:26 1996 Ian Lance Taylor <ian@cygnus.com>
3249 * configure.in: Work around bug in AC_FUNC_VFORK in autoconf 2.12.
3250 * configure: Rebuild.
3252 Thu Dec 19 13:11:20 1996 Ian Lance Taylor <ian@cygnus.com>
3254 Based on patch from Andrew J Klossner <andrew@pogo.wv.tek.com>:
3255 * objcopy.c (OPTION_WEAKEN): Define.
3256 (copy_options): Add "weaken".
3257 (copy_usage): Mention --weaken.
3258 (weaken): New static variable.
3259 (filter_symbols): Handle weaken.
3260 (copy_object): Call filter_symbols if weaken.
3261 (copy_main): Handle OPTION_WEAKEN.
3262 * binutils.texi, objcopy.1: Document --weaken.
3264 Wed Dec 18 22:49:13 1996 Stan Shebs <shebs@andros.cygnus.com>
3266 * mpw-make.sed: Use NewFolderRecursive for installation.
3268 Sat Dec 7 10:17:25 1996 Jeffrey A Law (law@cygnus.com)
3270 * Makefile.in (install): Add "else true" clause to cater to
3271 broken "make" on some systems.
3273 Fri Dec 6 17:21:41 1996 Ian Lance Taylor <ian@cygnus.com>
3275 * ieee.c (parse_ieee_bb): Always initialize namcopy to avoid gcc
3276 warning about uninitialized variable.
3277 (ieee_read_cxx_class): Likewise, for pf.
3278 (ieee_enum_type): Likewise, for i.
3280 Tue Nov 26 17:01:25 1996 Ian Lance Taylor <ian@cygnus.com>
3282 * wrstabs.c (stab_array_type): Add casts when printing
3283 bfd_signed_vma values.
3285 * configure: Rebuild with autoconf 2.12.
3287 Mon Nov 25 16:53:18 1996 Ian Lance Taylor <ian@cygnus.com>
3289 * objdump.c (disassemble_data): Don't crash if there is no
3292 Fri Nov 22 17:29:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3294 * ar.c (open_inarch): Don't call bfd_openr with a null name.
3296 Fri Nov 1 12:08:13 1996 Ian Lance Taylor <ian@cygnus.com>
3298 * binutils.texi: Add section on reporting bugs.
3300 Thu Oct 31 18:20:53 1996 Ian Lance Taylor <ian@cygnus.com>
3302 * stabs.c (struct stab_handle): Add bincl_list field.
3303 (parse_stab): Pass value to push_bincl. Call find_excl for
3305 (struct bincl_file): Add hash, file and file_types fields.
3306 (push_bincl): Add hash parameter. Save it in the new hash field.
3307 Save the file number in the new file field.
3308 (pop_bincl): Put the bincl_file on bincl_list, rather than freeing
3309 it. Save the file types in the new file_types field.
3310 (find_excl): New static function.
3312 * ieee.c (ieee_lineno): Don't compare line number addresses to
3313 info->highaddr (undo part of October 28 patch).
3315 Tue Oct 29 16:40:22 1996 Ian Lance Taylor <ian@cygnus.com>
3317 * objdump.c (objdump_print_value): Don't print the empty string
3320 Mon Oct 28 16:58:14 1996 Ian Lance Taylor <ian@cygnus.com>
3322 * stabs.c (struct stab_handle): Add function_end field.
3323 (start_stab): Initialize function_end.
3324 (finish_stab): Pass info->function_end to debug_end_function.
3325 (parse_stab): If info->function_end is set, use it as the address
3326 which ends a function.
3328 * ieee.c (ieee_array_type): Remember the correct size.
3330 * ieee.c (ieee_finish_compilation_unit): Permit coalescing ranges
3331 that are up to 0x1000 bytes apart, not just 64.
3332 (ieee_add_bb11_blocks): Don't bother to emit a BB11 that is less
3334 (ieee_lineno): Only emit line numbers that are less than
3337 Fri Oct 25 12:12:17 1996 Ian Lance Taylor <ian@cygnus.com>
3339 * ieee.c (struct ieee_defined_enum): Add defined field.
3340 (ieee_enum_type): If the enum tag has been seen before but not
3341 defined, reuse the same type index, and define it.
3342 (ieee_tag_type): If this enum has not been defined, add an
3343 undefined entry to the list of enums.
3345 * objdump.c (disassemble_bytes): Let the disassembler override the
3346 number of bytes printed on a line.
3348 Thu Oct 24 16:42:10 1996 Ian Lance Taylor <ian@cygnus.com>
3350 * objdump.c (prefix_addresses): New static variable.
3351 (long_options): Add "prefix-addresses".
3352 (compare_symbols): Sort BSF_FUNCTION symbols before other
3354 (find_symbol_for_address): New static function, broken out of
3355 objdump_print_address.
3356 (objdump_print_addr_with_sym): New static function, broken out of
3357 objdump_print_address.
3358 (objdump_print_address): Call new functions.
3359 (disassemble_bytes): New static function, broken out of
3360 disassemble_data. Change disassembly format, unless
3361 prefix_addresses is set.
3362 (disassemble_data): Call disassemble_bytes. Unless
3363 prefix_addresses is set, disassemble in chunks headed by a
3365 * binutils.texi, objdump.1: Document --prefix-addresses.
3367 * rddbg.c (read_section_stabs_debugging_info): Preserve the
3368 backslash when concatenating multiple stabs strings.
3370 Thu Oct 10 11:36:31 1996 Doug Evans <dje@canuck.cygnus.com>
3372 * dlltool.c (scan_open_obj_file): Fix loop exit test.
3373 Add missing parameter to def_exports.
3375 Tue Oct 8 12:06:17 1996 Ian Lance Taylor <ian@cygnus.com>
3377 * Makefile.in (LEX_OPTIONS): Set to empty string. -I -Cem is the
3378 default for flex, and is not recognized by lex.
3380 Thu Oct 3 17:41:23 1996 Ian Lance Taylor <ian@cygnus.com>
3382 * binutils.texi (Target Selection): Document that you can now
3383 specify targets using configuration triplets.
3385 * ar.c (usage): Declare. Make sure all callers pass an argument.
3387 Thu Oct 3 15:39:42 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3389 * Makefile.in (clean): Remove config.log.
3391 Wed Oct 2 15:49:16 1996 Klaus Kaempf <kkaempf@progis.de>
3393 * makefile.vms: Bump version date.
3395 Tue Oct 1 15:00:59 1996 Ian Lance Taylor <ian@cygnus.com>
3397 * version.c (print_version): New function.
3398 * bucomm.h (print_version): Declare.
3399 * ar.c (program_version): Don't declare.
3400 (do_show_version): Remove.
3401 (usage): Add help parameter. Print bug report address.
3402 (main): Set is_ranlib at start. Check for --help and --version.
3403 Call print_version, not do_show_version.
3404 * nlmconv.c (program_version): Don't declare.
3405 (main): Call print_version.
3406 (show_usage): Print bug report address.
3407 * nm.c (program_version, print_version): Don't declare.
3408 (usage): Print bug report address.
3409 (main): Call print_version.
3410 * objcopy.c (program_version): Don't declare.
3411 (copy_usage): Print bug report address.
3412 (strip_usage): Likewise.
3413 (strip_main): Call print_version.
3414 (copy_main): Likewise.
3415 * objdump.c (program_version): Don't declare.
3416 (usage): Print bug report address.
3417 (main): Call print_version.
3418 * size.c (program_version): Don't declare.
3419 (usage): Print bug report address.
3420 (main): Call print_version.
3421 * strings.c (program_version): Don't declare.
3422 (main): Call print_version.
3423 (usage): Print bug report address.
3424 * Makefile.in: Update dependencies.
3426 Thu Sep 19 14:53:15 1996 Ian Lance Taylor <ian@cygnus.com>
3428 * ieee.c: Revert Monday's reflocalp patch, and apply this patch
3430 (write_ieee_debugging_info): Write a dummy type at the end of the
3433 Mon Sep 16 15:30:54 1996 Ian Lance Taylor <ian@cygnus.com>
3435 * ieee.c (struct ieee_write_type): Add reflocalp field.
3436 (ieee_pointer_type): Set reflocalp after pushing type.
3437 (ieee_function_type): If reflocalp is set, make this type local.
3438 (ieee_range_type, ieee_array_type, ieee_set_type): Likewise.
3439 (ieee_const_type, ieee_volatile_type): Likewise.
3440 (ieee_struct_field, ieee_class_baseclass): Likewise.
3442 * ieee.c (struct ieee_info): Add global_types field.
3443 (parse_ieee_bb): When starting a BB1, initialize the types field
3444 to the global_types field.
3445 (parse_ieee_be): When ending a BB2, copy the types field to the
3448 Fri Sep 13 17:32:21 1996 Ian Lance Taylor <ian@cygnus.com>
3450 * objcopy.c (change_leading_char): New static variable.
3451 (OPTION_CHANGE_LEADING_CHAR): Define.
3452 (copy_options): Add "change-leading-char".
3453 (copy_usage): Mention --change-leading-char.
3454 (filter_symbols): Add obfd parameter. Change all callers.
3455 Implement change_leading_char.
3456 (copy_object): Call filter_symbols if change_leading_char.
3457 (copy_main): Handle OPTION_CHANGE_LEADING_CHAR.
3458 * binutils.texi, objcopy.1: Document --change-leading-char.
3460 Tue Sep 3 14:05:29 1996 Ian Lance Taylor <ian@cygnus.com>
3462 * ieee.c (ieee_enum_type): Don't check index into a NULL names
3464 * nm.c (sort_symbols_by_size): Always initialize next.
3465 * rdcoff.c (parse_coff_type): Warn about an incomprehensible
3466 type rather than crashing.
3467 * rddbg.c (read_symbol_stabs_debugging_info): Initialize f.
3468 * stabs.c (parse_stab_members): Set context in all cases.
3470 Thu Aug 29 16:56:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3472 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
3473 * configure: Regenerate.
3475 Thu Aug 29 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
3477 * objdump.c (L_tmpnam): Never define.
3478 (display_target_list): Use choose_temp_base instead of tmpnam.
3479 (display_info_table): Likewise.
3481 Tue Aug 27 18:15:01 1996 Ian Lance Taylor <ian@cygnus.com>
3483 * stabs.c (parse_stab): An N_FUN symbol with an empty string
3484 indicates the end of a function.
3486 Thu Aug 22 17:08:00 1996 Ian Lance Taylor <ian@cygnus.com>
3488 * wrstabs.c (struct string_hash_entry): Add next field.
3489 (struct stab_write_handle): Change strings to a pointer to
3490 string_hash_entry. Add last_strings field. Remove strings_alloc
3492 (string_hash_newfunc): Initialize next field.
3493 (stab_write_symbol): Copy string into hash table rather than into
3494 buffer. Keep a list of hash table entries.
3495 (write_stabs_in_sections_debugging_info): Initialize last_string.
3496 Copy strings from list of hash table entries in memory.
3497 (stab_modify_type): If the entry on the stack is a definition,
3498 make a new definition rather than failing an assert.
3499 (stab_array_type): The size is only zero if high is strictly less
3502 * ieee.c (struct ieee_info): Add saw_filename field.
3503 (parse_ieee): Initialize saw_filename.
3504 (parse_ieee_bb): Set saw_filename for a BB1 or BB2. In a BB1,
3505 discard the current variables and types. In a BB10, if no
3506 filename has been seen, call debug_set_filename.
3507 (parse_ieee_ty): In case 'g', the type is optional.
3509 * prdbg.c (pr_fix_visibility): Don't abort on
3510 DEBUG_VISIBILITY_IGNORE.
3512 * debug.c (debug_name_type): Correct error message.
3514 * configure.in: Substitute HLDENV.
3515 * configure: Rebuild.
3516 * Makefile.in (HLDENV): New variable. Use it whenever linking a
3519 Thu Aug 15 19:30:41 1996 Stan Shebs <shebs@andros.cygnus.com>
3521 * mpw-make.sed: Add symbolic doublequotes around the version
3524 Thu Aug 8 12:27:52 1996 Klaus Kaempf <kkaempf@progis.de>
3526 * makefile.vms: Add better support for DEC C compilation.
3527 Add new macros as in Makefile.in.
3529 Wed Aug 7 14:27:33 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
3531 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
3532 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
3533 (NEED_DECLARATION_SBRK): New macro.
3534 * configure, config.in: Rebuild.
3535 * bucomm.h (strstr): Declare if NEED_DECLARATION_STRSTR.
3536 (sbrk): Declare if HAVE_SBRK and NEED_DECLARATION_SBRK.
3538 * prdbg.c (pr_end_struct_type): Avoid using a string constant in
3539 assert, for the benefit of broken assert macros.
3541 Fri Jul 26 14:06:50 1996 Ian Lance Taylor <ian@cygnus.com>
3543 * objdump.c (disassemble_data): Set disasm_info.flavour from
3546 Tue Jul 23 13:59:54 1996 Ian Lance Taylor <ian@cygnus.com>
3548 * dlltool.c (secdata): In non DLLTOOL_PPC case, change alignment
3549 of .text section to 2.
3551 Mon Jul 22 08:46:15 1996 Stu Grossman (grossman@lisa.cygnus.com)
3553 * objdump.c (dump_section_stabs): Fix test for stabs sections
3554 ending with numbers. This fixes a problem with .stab being
3555 confused with .stab.index.
3557 Wed Jul 10 13:32:28 1996 Ian Lance Taylor <ian@cygnus.com>
3559 * stabs.c (stab_demangle_fund_type): Return a void * for a
3560 template, rather than simply aborting.
3562 Mon Jul 8 15:28:05 1996 Ian Lance Taylor <ian@cygnus.com>
3564 * ar.c (open_inarch): Add file parameter. Change all callers. If
3565 this is a newly created archive, set the target based on the
3567 * arsup.h (open_inarch): Update declaration.
3569 Thu Jul 4 12:00:55 1996 Ian Lance Taylor <ian@cygnus.com>
3571 * Makefile.in (VERSION): Set to cygnus-2.7.1.
3573 * Released binutils 2.7.
3575 * rdcoff.c (parse_coff): Get address to pass to debug_end_function
3576 from function size, not value of .ef symbol. From Ning
3577 Mosberger-Tang <ning@AZStarNet.com>.
3579 Sat Jun 29 21:18:09 1996 Ian Lance Taylor <ian@cygnus.com>
3581 * objcopy.c (strip_main): Add -o option, and handle it.
3582 (strip_usage): Mention -o.
3583 * binutils.texi, strip.1: Mention -o.
3585 Mon Jun 24 17:19:02 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3587 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
3588 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf set values.
3590 * configure.in (AC_PREREQ): Autoconf 2.5 or higher.
3592 Mon Jun 24 11:59:13 1996 Ian Lance Taylor <ian@cygnus.com>
3594 * objdump.c (endian): New static variable.
3595 (usage): Mention -EB/-EL/--endian.
3596 (long_options): Add "endian".
3597 (disassemble_data): If endianness was specified, replace
3598 abfd->xvec with a copy of itself with the given endianness.
3599 (main): Handle -EB/-EL/--endian.
3600 * binutils.texi, objdump.1: Mention -EB/-EL/--endian.
3602 * objdump.c: Make most variables and functions static.
3604 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
3605 using shared libraries.
3606 * configure: Rebuild with autoconf 2.10.
3608 Sun Jun 23 14:47:36 1996 Kim Knuttila <krk@cygnus.com>
3610 * dlltool.c (secdata): Changed .rdata to .reldata so .reloc will work.
3611 (make_one_lib_file): Removed cruft. (#if 1)
3613 Wed Jun 19 14:46:38 1996 Ian Lance Taylor <ian@cygnus.com>
3615 * objdump.c (stabs): Change from struct internal_nlist * to
3617 (print_section_stabs): Fetch stabs information directly, rather
3618 than assuming that struct internal_nlist is the right size.
3620 * binutils.texi: Document change to binary format: file position
3621 based on load address, not section VMA.
3623 * bucomm.h: Define SEEK_SET, SEEK_CUR, and SEEK_END if they are
3624 not already defined.
3626 Tue Jun 18 18:25:00 1996 Ian Lance Taylor <ian@cygnus.com>
3628 * Makefile.in (DISTSTUFF): Add deflex.c.
3630 Tue Jun 18 15:03:44 1996 Klaus Kaempf <kkaempf@progis.de>
3632 * config.h-vms, makefile.vms: New files.
3634 Mon Jun 17 09:47:31 1996 Ian Lance Taylor <ian@cygnus.com>
3636 * dlltool.c (make_one_lib_file): Use BFD_RELOC_RVA rather than
3637 BFD_RELOC_32 in IDATA7.
3639 Wed Jun 12 11:52:06 1996 Ian Lance Taylor <ian@cygnus.com>
3641 * nm.c (struct get_relocs_info): Define.
3642 (line_numbers): New static variable.
3643 (long_options): Add "line-numbers".
3644 (usage): Mention -l and --line-numbers.
3646 (print_symbol): Print line numbers if requested.
3647 (get_relocs): New static function.
3648 * binutils.texi, nm.1: Document -l/--line-numbers.
3650 Tue Jun 11 20:12:15 1996 Ian Lance Taylor <ian@cygnus.com>
3652 * objdump.c (dump_reloc_set): Add sec parameter. Change all
3653 callers. If with_line_numbers is set, display line numbers of
3655 * binutils.texi, objdump.1: Document -l with -r.
3657 Mon Jun 10 23:42:59 1996 Ian Lance Taylor <ian@cygnus.com>
3659 * ar.c (open_inarch): Report BFD error message if an archive can
3660 not be recognized. List matching formats if the file is
3661 ambiguously recognized.
3662 (ranlib_touch): Likewise.
3664 Thu Jun 6 13:56:14 1996 Ian Lance Taylor <ian@cygnus.com>
3666 * README: Add notes on how to build if you don't have ar.
3668 * Makefile.in: Remove old incorrect setting of CC.
3670 Tue Jun 4 10:52:49 1996 Tom Tromey <tromey@csk3.cygnus.com>
3672 * Makefile.in (install): Don't check to see if tooldir exists.
3673 Make $(tooldir) and $(tooldir)/bin.
3675 Mon Jun 3 17:40:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3677 * strings.c (main): Make main an int function, not void.
3679 Fri May 31 13:59:24 1996 Ian Lance Taylor <ian@cygnus.com>
3681 * nm.c (filter_symbols): Check for BSF_WEAK as well as
3683 * objcopy.c (filter_symbols): Likewise.
3685 Wed May 8 16:57:20 1996 Ian Lance Taylor <ian@cygnus.com>
3687 * objcopy.c (copy_object): Make clear that it is only a warning
3688 when the output file can not represent the architecture.
3690 Fri May 3 11:30:17 1996 Ian Lance Taylor <ian@cygnus.com>
3692 * objdump.c (disassemble_data): Don't refer to bytes past the end
3695 Wed Apr 24 14:10:21 1996 Ian Lance Taylor <ian@cygnus.com>
3697 * rddbg.c (read_symbol_stabs_debugging_info): Move call to
3698 free_saved_stabs outside the loop over the symbols.
3700 Tue Apr 23 12:56:11 1996 Ian Lance Taylor <ian@cygnus.com>
3702 * objdump.c (compare_symbols): Sort symbols whose names start with
3703 `.' after other symbols. If no other decision can be made, sort
3706 Thu Apr 18 16:02:11 1996 Ian Lance Taylor <ian@cygnus.com>
3708 * dep-in.sed: Substitute $(BFDDIR) for @BFDDIR@.
3709 * Makefile.in: Rebuild dependencies.
3710 (dep.sed): Substitute $(BFDDIR) for @BFDDIR@.
3712 Tue Apr 16 13:50:22 1996 Ian Lance Taylor <ian@cygnus.com>
3714 * rdcoff.c: New file.
3715 * rddbg.c (read_debugging_info): Read COFF symbols if COFF flavour
3716 and no stabs were found.
3717 * budbg.h (parse_coff): Declare.
3718 * Makefile.in: Rebuild dependencies.
3719 (CFILES): Add rdcoff.c.
3720 (DEBUG_OBJS): Add rdcoff.o.
3722 Mon Apr 15 15:55:01 1996 Doug Evans <dje@canuck.cygnus.com>
3724 * nlmconv.c (choose_temp_base{,_try}): Delete, in libiberty now.
3725 (link_inputs): Update call to choose_temp_base.
3727 Mon Apr 8 14:40:05 1996 Ian Lance Taylor <ian@cygnus.com>
3729 * configure.in: Permit --enable-shared to specify a list of
3731 * configure: Rebuild.
3733 Fri Mar 29 16:11:33 1996 Ian Lance Taylor <ian@cygnus.com>
3735 * objdump.c (dump_section_header): Print the SEC_LINK_ONCE flag
3736 and the SEC_LINK_DUPLICATES field.
3738 Fri Mar 29 11:35:55 1996 J.T. Conklin (jtc@lisa.cygnus.com)
3740 * nlmconv.1: Changed to be recognized by catman -w on Solaris.
3742 Thu Mar 28 14:17:02 1996 Ian Lance Taylor <ian@cygnus.com>
3744 * wrstabs.c (stab_enum_type): Set buf before using it.
3746 Fri Mar 22 15:49:08 1996 Ian Lance Taylor <ian@cygnus.com>
3748 * stabs.c (struct stab_handle): Add field abfd.
3749 (start_stab): Add abfd parameter.
3750 (parse_stab_string): Skip the symbol leading char when searching
3751 for the value of a global symbol.
3752 * budbg.h (start_stab): Update declaration.
3753 * rddbg.c (read_section_stabs_debugging_info): Pass abfd to
3755 (read_symbol_stabs_debugging_info): Likewise.
3757 Thu Mar 21 12:40:48 1996 Ian Lance Taylor <ian@cygnus.com>
3759 * wrstabs.c (stab_function_type): Output an empty typedef for an
3760 unused argument, rather than making up a meaningless name.
3761 (stab_variable): Use N_RSYM for a DEBUG_REGISTER variable.
3763 * ieee.c (struct ieee_info): Add global_vars field.
3764 (parse_ieee_be): When ending the global typedef block, copy the
3765 variables into info->global_vars.
3766 (parse_ieee_atn): Don't require an NN record for a pmisc ATN.
3767 (ieee_read_reference): Search the global variables after the local
3770 Wed Mar 20 18:08:19 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3772 * objdump.c (disassemble_data): Make sure sym_name is always set.
3773 (dump_section_header): Always put a space after the section name.
3774 (dump_bfd_header): Terminate output with newline.
3776 Wed Mar 20 16:35:20 1996 Ian Lance Taylor <ian@cygnus.com>
3778 * wrstabs.c: New file.
3779 * budbg.h (write_stabs_in_sections_debugging_info): Declare.
3780 * objcopy.c (write_debugging_info): For COFF or ELF, output stabs
3782 * Makefile.in: Rebuild dependencies.
3783 (CFILES): Add wrstabs.c.
3784 (WRITE_DEBUG_OBJS): New variable.
3785 ($(OBJCOPY_PROG)): Use $(WRITE_DEBUG_OBJS), not $(DEBUG_OBJS).
3786 ($(STRIP_PROG)): Likewise.
3788 * stabs.c (parse_stab_members): Make type stub detection more like
3791 * ieee.c (struct ieee_handle): Add fields complex_float_index and
3792 complex_double_index.
3793 (ieee_complex_type): Cache type index in complex_float_index and
3794 complex_double_index, depending upon size. Set size on type stack
3797 * ieee.c (ieee_empty_type): Use builtin_unknown, not 0.
3798 (ieee_void_type): Use builtin_void, not 1.
3800 * ieee.c (parse_ieee_ty): Handle 'V' type code.
3801 (parse_ieee_atn): Don't require two numbers for type 10.
3803 * ieee.c (parse_ieee_be): Add one to offset at end of function or
3806 * ieee.c (struct ieee_block): Add field skip.
3807 (parse_ieee_bb): Don't call debug_record_function for __XRYCPP
3808 function, and set skip field.
3809 (parse_ieee_be): Don't call debug_end_function if skip is set.
3811 * debug.c (struct debug_handle): Add fields current_write_lineno
3812 and current_write_lineno_index.
3813 (debug_write): Initialize current_write_lineno and
3814 current_write_lineno_index for each unit. Call
3815 debug_write_linenos rather than writing out the line numbers
3817 (debug_write_function): Call debug_write_linenos.
3818 (debug_write_block): Likewise.
3819 (debug_write_linenos): New static function.
3821 * debug.c (debug_write_type): For DEBUG_KIND_FUNCTION, push return
3822 type before arguments.
3824 Mon Mar 18 18:05:33 1996 Ian Lance Taylor <ian@cygnus.com>
3826 * configure.in: Add AC_FUNC_VFORK.
3827 * configure, config.in: Rebuild.
3828 * dlltool.c, nlmconv.c: Include <vfork.h> if HAVE_VFORK_H is
3831 * stabs.c (parse_stab_range_type): A complex type is defined as a
3832 subrange of itself with the high bound zero.
3833 * ieee.c (ieee_complex_type): Don't crash on sizes of 12 or 16.
3835 Tue Mar 12 12:09:43 1996 Ian Lance Taylor <ian@cygnus.com>
3837 * ieee.c (ieee_write_undefined_tag): Switch to global_types even
3839 (ieee_tag_type): For an enum, look through info->enums.
3841 * configure: Rebuild with autoconf 2.8.
3843 * debug.c (debug_type_samep): Don't loop endlessly in
3844 DEBUG_KIND_ENUM case. From Eric Baur <ecb@nexen.com>.
3846 Mon Mar 11 12:35:03 1996 Ian Lance Taylor <ian@cygnus.com>
3848 * rddbg.c (read_section_stabs_debugging_info): Call save_stab for
3849 each stab entry, call stab_context on an error, and call
3850 free_saved_stabs before rturning.
3851 (read_symbol_stabs_debugging_info): Likewise.
3852 (SAVE_STABS_COUNT): Define.
3853 (struct saved_stab): Define.
3854 (saved_stabs, saved_stabs_index): New static variables.
3855 (save_stab, stab_context, free_saved_stabs): New static functios.
3857 * objdump.c (stab_name): Remove.
3858 (struct stab_print): Remove.
3859 (stab_print): Remove.
3860 (dump_stabs): Don't initialize stab_name.
3861 (print_section_stabs): Call bfd_get_stab_name rather than using
3862 the stab_name array.
3864 Tue Feb 27 19:52:01 1996 Ian Lance Taylor <ian@cygnus.com>
3866 * prdbg.c (pr_int_constant): Initialize info correctly.
3867 (pr_float_constant): Likewise.
3869 Mon Feb 26 18:11:37 1996 Stan Shebs <shebs@andros.cygnus.com>
3871 * mpw-make.sed: Update to handle shared library support.
3873 Sat Feb 24 11:21:49 1996 Alan Modra <alan@spri.levels.unisa.edu.au>:
3875 * Makefile.in ($(OBJDUMP_PROG)): Search $(BFDLIB) before
3878 Thu Feb 15 12:44:45 1996 Ian Lance Taylor <ian@cygnus.com>
3880 * configure.in: Don't tamper with LDFLAGS. Call AC_PROG_CC before
3882 * configure: Rebuild.
3884 * configure.in: Substitute RPATH_ENVVAR.
3885 * configure: Rebuild.
3886 * Makefile.in (RPATH_ENVVAR): New variable.
3887 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
3889 * objcopy.c (smart_rename): Rather than doing chmod then chown, do
3890 chmod without setuid, then chown, then chmod with setuid.
3892 Wed Feb 14 16:46:42 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
3894 * arsup.c (map_over_list): Reindent. Don't assume that the
3895 function does not delete the BFD.
3896 (ar_addlib_doer): Don't set prev->next if prev is NULL.
3898 Wed Feb 14 15:12:17 1996 Ian Lance Taylor <ian@cygnus.com>
3900 * ieee.c (ieee_regno_to_genreg): Convert register numbers for m68k
3902 (ieee_genreg_to_regno): Likewise.
3904 Mon Feb 12 14:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
3906 * ieee.c: Extensive changes to write code to put types in the
3907 global type block when possible, to output ranges for all memory
3908 occupied by the module, and to improve efficiency.
3910 * debug.c (struct debug_handle): Remove class_mark field. Add
3911 id_list and compare_list fields.
3912 (struct debug_class_id): Define.
3913 (struct debug_type_compare_list): Define.
3914 (debug_write): Initialize info->id_list
3915 (debug_write_name): Remove reference to info->class_mark.
3916 (debug_write_type): Get id for all structs and classes. Simplify
3917 test for whether struct has already been written.
3918 (debug_write_class_type): Get id for all classes. Simplify test
3919 for whether class has already been written.
3920 (debug_write_block): Don't write out blocks other than the top
3921 level block if they have no local variables.
3922 (debug_set_class_id): New static function.
3923 (debug_type_samep): New static function.
3924 (debug_class_type_samep): New static function.
3925 * prdbg.c (pr_start_struct_type): Always print id.
3926 (pr_start_class_type): Likewise.
3927 (pr_tag_type): Likewise.
3929 * stabs.c (struct stab_handle): Add syms and symcount fields.
3930 (start_stab): Add syms and symcount parameters. Change all
3932 (parse_stab_string): Look up global variables in the symbol table
3933 to get the right value.
3934 * budbg.h (start_stab): Update declaration.
3935 * rddbg.c (read_section_stabs_debugging_info): Add syms and
3936 symcount parameters. Change all callers.
3938 * stabs.c (parse_stab_array_type): If the index type is 0, use
3941 Wed Feb 7 14:17:45 1996 Ian Lance Taylor <ian@cygnus.com>
3943 * ieee.c (ieee_start_compilation_unit): Clear modified and
3944 modified_alloc fields of info.
3946 * configure.in: Check for --enable-shared. Substitute new
3947 variables BFDLIB and OPCODES.
3948 * configure: Rebuild.
3949 * Makefile.in (BFDLIB): Set to @BFDLIB@.
3950 (OPCODES): Set to @OPCODES@.
3952 Mon Feb 5 16:18:42 1996 Ian Lance Taylor <ian@cygnus.com>
3954 Support for building bfd and opcodes as shared libraries, based on
3955 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
3956 * configure.in (HLDFLAGS): New substitution.
3957 * configure: Rebuild.
3958 * Makefile.in (HLDFLAGS): New variable. Make all links use
3959 $(HLDFLAGS) before $(CFLAGS) and $(LDFLAGS).
3960 (BFDLIB_DEP): New variable. Replace all occurrences of $(BFD) as
3961 a dependency with $(BFDLIB_DEP). Remove $(BFD) as a dependency if
3962 there is also a dependency on $(ADDL_DEPS).
3963 (BFDLIB): Rename from BFD; change all uses; set to -L../bfd -lbfd.
3964 (OPCODES_DEP): New variable. Replace all occurrends of $(OPCODES)
3965 as a dependency with $(OPCODES_DEP).
3966 (OPCODES): Set to -L../opcodes -lopcodes.
3967 (ADDL_DEPS): New variable. Replace all occurrences of
3968 $(ADDL_LIBS) as a dependency with $(ADDL_DEPS).
3969 (check): Set LD_LIBRARY_PATH in the environment.
3970 (config.status): Depend upon BFD configure.host and config.bfd.
3972 Fri Feb 2 17:02:59 1996 Doug Evans <dje@charmed.cygnus.com>
3974 * objdump.c: #include stdarg.h or varargs.h.
3975 (objdump_print_value): Change FILE* arg to struct disassemble_info*.
3976 All callers updated. Use fprintf_func.
3977 (objdump_print_address): Consistently use fprintf_func.
3978 (objdump_sprintf): New function.
3979 (disassemble_data): Print insn into a buffer, print raw insn ourselves,
3980 then print insn mnemonic.
3982 Fri Feb 2 16:48:55 1996 Ian Lance Taylor <ian@cygnus.com>
3984 * configure: Regenerate.
3986 Thu Feb 1 09:38:18 1996 Steve Chamberlain <sac@slash.cygnus.com>
3988 * configure.in (i[3-6]86-*-win32): Becomes i[3-6]86-*-cygwin32.
3989 (powerpc*-*-cygwin32): New.
3990 * configure: Regenerated.
3992 Wed Jan 31 13:22:03 1996 Richard Henderson <rth@tamu.edu>
3994 * Makefile.in (distclean): Remove $(DEMANGLER_PROG).1.
3996 Mon Jan 29 17:36:29 1996 Ian Lance Taylor <ian@cygnus.com>
3998 Based on patches from H J Lu <hjl@zoom.com>:
3999 * objcopy.c (remove_leading_char): New static variable.
4000 (OPTION_REMOVE_LEADING_CHAR): Define.
4001 (copy_usage): Mention --remove-leading-char.
4002 (filter_symbols): If remove_leading_char, and the first character
4003 of a global symbol matches the symbol leading char of the BFD,
4004 remove the first character.
4005 (copy_object): Filter the symbols if remove_leading_char is set.
4006 (copy_main): Handle --remove-leading-char.
4007 * binutils.texi, objcopy.1: Document --remove-leading-char.
4009 Sat Jan 27 15:40:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4011 * objdump.c (fprintf): Add prototype to avoid compiler warning on
4014 Fri Jan 26 11:53:42 1996 Ian Lance Taylor <ian@cygnus.com>
4016 * binutils.texi (nm): Improve documentation on symbol types.
4017 (objdump): Reference the stabs manual from the discussion of the
4020 Thu Jan 25 11:21:46 1996 Raymond Jou <rjou@mexican.cygnus.com>
4022 * mpw-make.sed: Add a "stamps" target.
4024 Thu Jan 25 13:51:44 1996 Ian Lance Taylor <ian@cygnus.com>
4026 * objdump.c (dump_headers, dump_section_header): Change objdump -h
4027 output to be simpler and to include section file offsets.
4029 Wed Jan 24 12:06:05 1996 Ian Lance Taylor <ian@cygnus.com>
4031 * stabs.c (parse_stab_members): Don't adjust voffset.
4033 * ieee.c (ieee_read_cxx_class): Don't multiply voffset by 4.
4034 (struct ieee_write_type): Add name field.
4035 (struct ieee_type_class): Remove name field. Change all uses to
4036 use new name field in type instead.
4037 (struct ieee_name_type): Likewise.
4038 (ieee_start_struct_type): Initialize name field of type.
4039 (ieee_start_class_type): Don't initialize classdef entry of tag.
4040 (ieee_class_method_var): Don't adjust voffset.
4041 (ieee_end_class_type): Likewise.
4042 (ieee_tag_type): Initialize new name field of type.
4043 (ieee_typdef): Set name after copying in type information.
4045 * debug.c (VOFFSET_STATIC_METHOD): Define as -1, not 1.
4047 * ieee.c (struct ieee_modified_type): Define.
4048 (struct ieee_handle): Add modified and modified_alloc fields.
4049 (ieee_get_modified_info): New static function.
4050 (ieee_pointer_type): Cache type index.
4051 (ieee_const_type): Likewise.
4052 (ieee_volatile_type): Likewise.
4054 * ieee.c (ieee_define_named_type): When creating a tag for an
4055 anonymous struct, copy the name into memory.
4056 (ieee_tag_type): Likewise.
4057 * debug.c (debug_write_type): Only check and set id field for an
4059 (debug_write_class_type): Likewise.
4061 * ieee.c: Various changes to write out types for functions and
4062 references, and to not write out unnecessary function types.
4064 * ieee.c (struct ieee_var): Remove variable field. Add kind
4065 field, and define some enum constants for it.
4066 (parse_ieee_ty): Set kind field of variable for 'x' and 'X' types.
4067 (parse_ieee_atn): Make an indirect slot for an external variable,
4068 although we otherwise don't record it. Set kind field rather than
4069 variable field of pvar.
4070 (ieee_read_cxx_class): Try to get the type of a static member.
4071 (ieee_read_reference): Check kind field rather than variable
4074 Tue Jan 23 15:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
4076 * ieee.c: Various changes to handle reading C++ reference type
4079 * debug.h (enum debug_var_kind): Add DEBUG_VAR_ILLEGAL.
4080 (enum debug_parm_kind): Add DEBUG_PARM_ILLEGAL.
4081 * debug.c (debug_get_parameter_types): Handle DEBUG_KIND_FUNCTION.
4083 * ieee.c: Various changes to write out definitions of C++ classes.
4085 * debug.c (debug_append_filename): Remove.
4086 * debug.h (debug_append_filename): Don't declare.
4088 * stabs.c (struct stab_handle): Remove last_type field. Add
4089 so_string and so_value fields.
4090 (finish_stab): Call stab_emit_pending_vars before calling
4091 debug_end_function. Don't warn about pending variables.
4092 (parse_stab): Accumulate N_SO strings until a non N_SO symbol is
4093 seen, rather than calling debug_append_filename. Call
4094 stab_emit_pending_vars before calling debug_end_function. Don't
4095 set info->last_type.
4097 Tue Jan 23 09:53:54 1996 Doug Evans <dje@charmed.cygnus.com>
4099 * objdump.c (disassemble_data): Handle unknown endianness.
4100 Pass fprintf to INIT_DISASSEMBLE_INFO.
4102 Mon Jan 22 16:46:43 1996 Doug Evans <dje@charmed.cygnus.com>
4104 Add new option --show-raw-insn.
4105 * objdump.c (show_raw_insn): New global.
4107 (long_options): Update.
4108 (disassemble_data): Set disasm_info.flags if --show-raw-insn.
4110 * objdump.c (disassemble_data): Set new arch,mach,endian fields in
4113 Mon Jan 22 19:29:36 1996 Ian Lance Taylor <ian@cygnus.com>
4115 * ieee.c: Extensive changes to pass a single info argument around
4116 in the reading routines, rather than several arguments. Add code
4117 to read C++ debugging records.
4119 * debug.h (debug_get_type_size): Declare.
4120 (debug_get_field_name): Declare.
4121 (debug_get_field_bitpos): Declare.
4122 (debug_get_field_bitsize): Declare.
4123 (debug_get_field_visibility): Declare.
4124 (debug_get_field_physname): Declare.
4125 * debug.c (debug_get_real_type): Handle DEBUG_KIND_TAGGED.
4126 (debug_get_type_size): New function.
4127 (debug_get_field_name): New function.
4128 (debug_get_field_bitpos): New function.
4129 (debug_get_field_bitsize): New function.
4130 (debug_get_field_visibility): New function.
4131 (debug_get_field_physname): New function.
4132 (debug_write_type): Make sure we pass the real kind, not INDIRECT,
4133 to tag_type. Pass the name recursively for INDIRECT.
4135 Fri Jan 19 12:31:57 1996 Ian Lance Taylor <ian@cygnus.com>
4137 * debug.h (struct debug_write_fns): Remove ellipsis_type. Add int
4138 and boolean parameters to function_type. Add boolean parameter to
4140 (debug_make_ellipsis_type): Don't declare.
4141 (debug_make_function_type): Add debug_type * and boolean
4142 parameters. Change all callers.
4143 (debug_make_method_type): Add boolean parameter. Change all
4145 (debug_get_parameter_types): Add boolean * parameter. Change all
4147 (debug_get_target_type): Declare.
4148 * debug.c (struct debug_function_type): Add fields arg_types and
4150 (struct debug_method_type): Add field varargs.
4151 (debug_ellipsis_type, ELLIPSIS_P): Remove.
4152 (debug_make_ellipsis_type): Remove.
4153 (debug_make_function_type): Add arg_types and varargs parameters.
4154 (debug_make_method_type): Add varargs parameter.
4155 (debug_get_parameter_types): Add pvarargs parameter.
4156 (debug_get_target_type): New function.
4157 (debug_write_type): In case DEBUG_KIND_FUNCTION, push argument
4158 types and pass count to function_type. In DEBUG_KIND_METHOD, use
4159 a signed int for the count, don't call ellipsis_type, and pass
4160 varargs to method_type.
4161 * stabs.c (struct stab_demangle_info): Add varargs field.
4162 (stab_demangle_argtypes): Add pvarargs parameter. Change all
4164 (stab_demangle_args): Likewise.
4165 (stab_demangle_type): In case 'F', pick up argument types.
4166 * prdbg.c (pr_ellipsis_type): Remove.
4167 (pr_function_type): Add argcount and varargs parameters.
4168 (pr_method_type): Add varargs parameter.
4169 * ieee.c (ieee_ellipsis_type): Remove.
4170 (ieee_function_type): Add argcount and varargs parameters.
4171 (ieee_method_type): Add varargs parameter. Remove most of
4172 function body, and just call ieee_function_type.
4174 * stabs.c: Include "demangle.h". Added several new static
4175 functions not listed below to demangle argument types; they are
4176 all called via stab_demangle_argtypes.
4177 (finish_stab): If the kind of an undefined tag is
4178 DEBUG_KIND_ILLEGAL, use DEBUG_KIND_STRUCT instead. Warn if there
4179 are any pending variable.
4180 (parse_stab): Don't close the function when the block depth goes
4181 to zero. Pass value to debug_end_function.
4182 (parse_stab_string): In case 'T', pass the name to
4184 (parse_stab_type): In case 'x', use stab_find_tagged_type. In
4185 case '#', handle functions with variable numbers of arguments.
4186 (parse_stab_struct_type): Add tagname parameter. Change all
4188 (parse_stab_members): Add tagname and typenums parameters. Change
4189 all callers. If the type of a method is a stub, call
4190 parse_stab_argtypes to demangle the argument types and get the
4191 physical name of the function.
4192 (parse_stab_argtypes): New static function.
4193 (stab_record_variable): For a DEBUG_GLOBAL or DEBUG_STATIC
4194 variable, call debug_record_variable immediately.
4195 (stab_find_tagged_type): New static function.
4197 * debug.h (enum debug_type_kind): Add DEBUG_KIND_ILLEGAL.
4198 (struct debug_write_fns): Add field ellipsis_type. Add id
4199 parameter to start_struct_type, start_class_type, and tag_type.
4200 (debug_make_ellipsis_type): Declare.
4201 (debug_find_named_type): Declare.
4202 (debug_get_type_kind): Declare.
4203 (debug_get_return_type): Declare.
4204 (debug_get_parameter_types): Declare.
4205 (debug_get_fields): Declare.
4206 (debug_get_field_type): Declare.
4207 * debug.c (struct debug_handle): Add fields class_id and base_id.
4208 (struct debug_class_type): Add field id.
4209 (struct debug_method_variant): Rename argtypes to physname.
4211 (debug_ellipsis_type): New static variable.
4212 (ELLIPSIS_P): New macro.
4213 (debug_make_ellipsis_type): New function.
4214 (debug_make_method_variant): Rename argtypes to physname.
4215 (debug_make_static_method_variant): Likewise.
4216 (debug_name_type): Always put types in the global namespace.
4217 (debug_find_named_type): New function.
4218 (debug_find_tagged_type): Treat DEBUG_KIND_ILLEGAL specially,
4219 rather than DEBUG_KIND_VOID.
4220 (debug_get_real_type): New static function.
4221 (debug_get_type_kind): New function.
4222 (debug_get_return_type): New function.
4223 (debug_get_parameter_types): New function.
4224 (debug_get_fields): New function.
4225 (debug_get_field_type): New function.
4226 (debug_write): Initialize base_id.
4227 (debug_write_type): Pass new id argument to tag_type. Handle
4228 DEBUG_KIND_ILLEGAL. Use id for DEBUG_KIND_STRUCT and
4229 DEBUG_KIND_UNION. Handle ellipsis for method arguments.
4230 (debug_write_class_type): Don't dereference kclass if it is NULL.
4232 * prdbg.c (pr_fns): Add pr_ellipsis_type.
4233 (pr_ellipsis_type): New static function.
4234 (pr_pointer_type): If this is a pointer to an array, parenthesize
4236 (pr_start_struct_type): Add id parameter.
4237 (pr_start_class_type): Likewise.
4238 (pr_tag_type): Likewise.
4239 (pr_fix_visibility): Add the visibility to the top of the stack,
4240 not the second element on the stack.
4241 (pr_struct_field): Pop the stack before calling pr_fix_visibility.
4242 (pr_class_static_member): Likewise.
4243 (pr_class_start_method): Don't push a type, just set the method
4244 name in the type on the top of the stack.
4245 (pr_class_end_method): Don't pop the stack.
4246 (pr_class_method_variant): Rename argtypes parameter to physname.
4247 Append const and volatile rather than prepending them. Add a
4248 space after the physname.
4249 (pr_class_static_method_variant): Likewise.
4250 * ieee.c (ieee_fns): Add ieee_ellipsis_type.
4251 (ieee_define_named_type): Use DEBUG_KIND_ILLEGAL rather than
4253 (write_ieee_debugging_info): Likewise.
4254 (ieee_typdef): Likewise.
4255 (ieee_ellipsis_type): New static function.
4256 (ieee_start_struct_type): Add id parameter.
4257 (ieee_start_class_type): Likewise.
4258 (ieee_tag_type): Likewise.
4259 (ieee_class_method_variant): Rename name to physname.
4260 (ieee_class_static_method_variant): Likewise.
4262 * Makefile.in (DEBUG_OBJS): Remove prdbg.o.
4263 ($(OBJDUMP_PROG)): Depend upon, and link against, prdbg.o.
4265 Thu Jan 18 17:35:06 1996 Kim Knuttila <krk@cygnus.com>
4267 * dlltool.c (make_tail): Changed the order of the sections to avoid
4268 an alignment problem.
4270 Wed Jan 17 14:23:00 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4272 * srconv.c (wr_du): Set du.stackfrmt to 0.
4273 (wr_un, wr_sc): Emit all sections, even those with 0 size.
4275 Tue Jan 16 16:15:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4277 * srconv.c (wr_hd): Space size within segment was being
4278 stored in segment identifier field.
4280 Tue Jan 16 12:07:25 1996 Stan Shebs <shebs@andros.cygnus.com>
4282 * mpw-config.in (BUILD_NLMCONV, BUILD_SRCONV, SYSINFO_PROG,
4283 BUILD_DLLTOOL): Put definitions for these into makefile when
4284 configuring, instead of always clearing in mpw-make.sed.
4285 * mpw-make.sed: Edit out any host_alias or target_alias settings,
4286 fix pathname to BFD internal include files, remove dependency
4289 Thu Jan 11 17:31:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4291 * objdump.c (dump_section_header): Add new section flags
4292 SEC_{EXCLUDE,SORT_ENTRIES}.
4294 Thu Jan 11 11:45:34 1996 Ian Lance Taylor <ian@cygnus.com>
4296 * objcopy.c (filter_symbols): NULL terminate the output symbols.
4297 (copy_object): Allocate space for a possible extra NULL pointer.
4299 * debug.c (debug_make_undefined_tagged_type): Make sure we are
4300 given a kind of type we can handle.
4301 (debug_write_type): Handle undefined enums and structs.
4302 (debug_write_class_type): Handle undefined classes.
4303 * prdbg.c (pr_enum_type): Handle an undefined enum.
4304 * ieee.c (ieee_enum_type): Likewise.
4306 Wed Jan 10 15:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
4308 * Makefile.in: Updated dependencies.
4309 (ALLOCA, MALLOC): Remove variables.
4310 (ADDL_LIBS): Remove $(MALLOC) from definition.
4311 * alloca.c, gmalloc.c: Remove.
4313 Mon Jan 8 18:02:29 1996 Ian Lance Taylor <ian@cygnus.com>
4315 * ieee.c: Add global function write_ieee_debugging_info and a
4316 bunch of static functions and structs used to write out IEEE
4317 debugging information.
4318 * budbg.h (write_ieee_debugging_info): Declare.
4320 * ieee.c (struct ieee_type): Add pslot field.
4321 (enum builtin_types): Define.
4322 (ieee_builtin_type): For a pointer, return a pointer to the named
4323 type. Use enum values rather than numbers.
4324 (ieee_alloc_type): New static function.
4325 (ieee_read_type_index): Use ieee_alloc_type.
4326 (parse_ieee_bb): Likewise.
4327 (parse_ieee_ty): Likewise. Use ieee_builtin_type for array range,
4328 rather than making a new integer type. Store the new type in the
4329 slot, if there is one.
4330 (parse_ieee_atn): Treat ATN10 as defining a register variable.
4331 (ieee_regno_to_genreg): Rename from ieee_regno_to_gen. Change all
4333 (ieee_genreg_to_regno): New static function.
4335 * stabs.c (parse_stab_type): Add new typename parameter. Change
4337 (parse_stab_range_type): Add new typename parameter. Change all
4340 * debug.h (struct debug_write_fns): Add tag parameter to
4341 enum_type, start_struct_type, and start_class_type.
4342 * debug.c (debug_write_type): Pass any tag name to
4343 start_struct_type, debug_write_class_type, and enum_type. If
4344 DEBUG_KIND_TAGGED, pass the name in the recursive call.
4345 (debug_write_class_type): Accept a new tag parameter, and pass it
4346 to start_class_type.
4347 * prdbg.c (pop_type): Don't remove '+' character.
4348 (pr_enum_type): Accept and use tag parameter.
4349 (pr_start_struct_type): Likewise.
4350 (pr_start_class_type): Likewise.
4351 (pr_class_baseclass): Adjust algorithm used to find where to put
4353 (pr_tag): Don't bother to insert the tag name.
4355 * objcopy.c: Include budbg.h.
4356 (convert_debugging): New static variable.
4357 (OPTION_DEBUGGING): Define.
4358 (copy_options): Add "debugging".
4359 (copy_usage): Mention --debugging.
4360 (is_strip_section): Skip debugging sections if convert_debugging.
4361 (setup_section, copy_section): Likewise.
4362 (filter_symbols): Skip debugging symbols if convert_debugging.
4363 (copy_object): If convert_debugging, read and write debugging
4365 (write_debugging_info): New static function.
4366 (copy_main): Handle --debugging.
4367 * Makefile.in (DEBUG_OBJS): New variable.
4368 ($(OBJCOPY_PROG)): Depend upon and link against $(DEBUG_OBJS).
4369 ($(STRIP_PROG)): Likewise.
4370 (OBJDUMP_OBJS): Remove variable.
4371 ($(OBJDUMP_PROG)): Use objdump.o $(DEBUG_OBJS) rather than
4373 * binutils.texi, objcopy.1: Document --debugging.
4375 Thu Jan 4 16:31:21 1996 Ian Lance Taylor <ian@cygnus.com>
4377 * ieee.c: New file with code to read IEEE debugging information.
4378 * budbg.h (parse_ieee): Declare.
4379 * rddbg.c (read_debugging_info): Handle IEEE flavour files.
4380 (read_ieee_debugging_info): New static function.
4381 * Makefile.in: Rebuild dependencies.
4382 (CFILES): Add ieee.c.
4383 (OBJDUMP_OBJS): Add ieee.o.
4385 * bucomm.h (xrealloc): Change type of first parameter from char *
4388 Tue Jan 2 17:44:07 1996 Ian Lance Taylor <ian@cygnus.com>
4390 * Makefile.in: Add targets to automatically rebuild dependencies.
4391 Remove targets which just listed dependencies of .o files.
4392 (DEP): New variable.
4393 (HFILES, GENERATED_HFILES): New variables.
4394 (CFILES, GENERATED_CFILES): New variables.
4395 (underscore.c): Don't do anything, just depend upon stamp-under.
4396 (stamp-under): New target; do what underscore.c used to do.
4397 (nlmconv.o): Depend upon sym.h and ecoff.h.
4398 (.dep, .dep1, dep.sed, dep, dep-in): New targets.
4399 (stage1, stage2, stage3, against, comparison): Remove.
4400 (de-stage1, de-stage2, de-stage3): Remove.
4401 (clean, distclean): Remove stamp-under and dep.sed.
4402 * dep-in.sed: New file.
4404 Implement generic debugging support. Implement a stabs reader and
4406 * budbg.h, debug.c, debug.h, prdbg.c, rddbg.c, stabs.c: New files.
4407 * objdump.c: Include "debug.h" and "budbg.h".
4408 (dump_debugging): New global variable.
4409 (usage): Mention --debugging.
4410 (long_options): Add "debugging".
4411 (display_bfd): Handle --debugging.
4412 * Makefile.in (OBJDUMP_OBJS): New variable.
4413 ($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
4414 * binutils.texi, objdump.1: Document --debugging.
4416 Sat Dec 30 09:59:51 1995 Jeffrey A Law (law@cygnus.com)
4418 * nm.c ( long_options): Add "--defined-only" option.
4419 (usage): Update for new "--defined-only" option.
4420 (filter_symbols): Handle "--defined-only".
4422 Fri Dec 29 16:04:56 1995 Ian Lance Taylor <ian@cygnus.com>
4424 * arparse.y: Include "bucomm.h", not <sysdep.h>.
4425 * nlmheader.y: Don't include "sysdep.h".
4427 Tue Dec 26 18:23:18 1995 Ian Lance Taylor <ian@cygnus.com>
4429 * nm.c (print_symdef_entry): Check return value of
4430 bfd_get_elt_at_index.
4432 Sat Dec 23 11:03:16 1995 Michael Meissner <meissner@tiktok.cgynsu.com>
4434 * configure.in (DLLTOOL_DEFS): Build dlltool for PowerPC if target
4435 is powerpc*-*-win* in addition to powerpc*-*-*pe*.
4437 Fri Dec 15 16:30:57 1995 Ian Lance Taylor <ian@cygnus.com>
4439 * objdump.c (endian_string): New static function.
4440 (display_target_list): Use it.
4441 * nlmconv.c (main): Use new bfd_big_endian macro.
4443 Fri Dec 15 07:51:34 1995 steve chamberlain <sac@slash.cygnus.com>
4445 * dlltool.c (fill_ordinals): Start from 1 if no other instructions
4448 Tue Dec 12 12:05:21 1995 Ian Lance Taylor <ian@cygnus.com>
4450 * Makefile.in (clean): Remove $(DEMANGLER_PROG).1. From Ronald
4451 F. Guilmette <rfg@monkeys.com>.
4453 Mon Dec 11 14:33:05 1995 Stan Shebs <shebs@andros.cygnus.com>
4455 * mac-binutils.r: Fix copyright and version strings.
4457 * Makefile.in (version): Remove, no longer used.
4459 Fri Dec 1 14:41:56 1995 Stan Shebs <shebs@andros.cygnus.com>
4461 * mpw-make.sed (install, install-only): Edit in Mac-specific
4464 Thu Nov 30 20:26:02 1995 Kim Knuttila <krk@cygnus.com>
4466 * dlltool.c (ppc_jtab): The binary glue for PowerPC dll linkage,
4467 including the return instruction.
4468 sinfo: added a preferred alignment field.
4469 (secdata): section data for the PowerPC version.
4470 (make_one_lib_file): More symbols, More sections (pdata, rdata)
4471 (make_tail): Use idata$6 instead of idata$7 for ppc. Also added a
4472 NULL idata$3 descriptor (temporary).
4474 Tue Nov 28 17:23:44 1995 Doug Evans <dje@canuck.cygnus.com>
4476 * dlltool.c (fill_ordinals): Don't reference d_export_vec if
4477 there are no exported functions.
4479 Mon Nov 27 13:05:59 1995 Ian Lance Taylor <ian@cygnus.com>
4481 * configure: Regenerate with autoconf 2.7.
4483 Wed Nov 22 13:17:15 1995 Ian Lance Taylor <ian@cygnus.com>
4485 * dlltool.c (fill_ordinals): Start assigning ordinals at 1.
4487 * Makefile.in (EXPECT): Use $$r, not $${rootme}.
4488 (check): Set r, not rootme.
4490 Tue Nov 21 18:04:09 1995 Ian Lance Taylor <ian@cygnus.com>
4492 * configure.in: Use BFD_NEED_DECLARATION.
4493 * acconfig.h: Put NEED_DECLARATION_FPRINTF in @TOP@ section.
4494 * configure, config.in: Rebuild with autoconf 2.6.
4496 Fri Nov 17 10:34:37 1995 Ian Lance Taylor <ian@cygnus.com>
4498 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
4499 $(host_canonical) and $(target_canonical).
4501 Thu Nov 16 03:39:20 1995 Ken Raeburn <raeburn@cygnus.com>
4503 Version 2.6 released.
4504 * Makefile.in (VERSION): Update to 2.6.
4506 Wed Nov 15 12:14:17 1995 Ian Lance Taylor <ian@cygnus.com>
4508 * Makefile.in (CC_FOR_TARGET): Define.
4509 (check): Pass CC and CFLAGS to runtest.
4511 * nm.c (display_rel_file): Don't require a DYNAMIC object when
4512 dumping the dynamic symbol table.
4514 * objdump.c (compare_symbols): Sort global symbols before local
4515 symbols before debugging symbols.
4516 (objdump_print_address): Don't futz around looking for a global
4517 symbol with the same value.
4519 Tue Nov 14 17:19:11 1995 Ian Lance Taylor <ian@cygnus.com>
4521 * dlltool.c: Use FOPEN_* macros rather than "r" or "w".
4523 * dlltool.c (fill_ordinals): Correct memset call.
4525 Sun Nov 12 12:56:05 1995 Stan Shebs <shebs@andros.cygnus.com>
4527 * mpw-make.sed (DEMANGLER_PROG): Edit out attempts to do anything
4530 Fri Nov 10 11:41:22 1995 Ian Lance Taylor <ian@cygnus.com>
4532 * objcopy.c (setup_section): Copy the section lma independently of
4535 Wed Nov 8 11:33:00 1995 Ian Lance Taylor <ian@cygnus.com>
4537 * arsup.c (ar_open): Cast malloc return value.
4539 Tue Nov 7 09:01:26 1995 Kim Knuttila <krk@cygnus.com>
4541 * configure.in, configure (DLLTOOL_DEFS): Added ppc target.
4542 * dlltool.c (MPPC): Added basic PPC definitions.
4544 Tue Nov 7 14:02:57 1995 Ian Lance Taylor <ian@cygnus.com>
4546 * configure.in: Don't treat rs6000-*-lynx* specially.
4547 * configure: Rebuild.
4548 * config/rslynx: Remove.
4549 * Makefile.in: Remove @target_makefile_fragment@.
4551 Mon Nov 6 15:00:50 1995 Ian Lance Taylor <ian@cygnus.com>
4553 * bucomm.h: Include <sys/types.h>.
4554 * ar.c: Don't include <sys/types.h> or <stdio.h>.
4555 * bucomm.c, dlltool.c, nlmconv.c, objcopy.c, objdump.c: Likewise.
4557 Fri Nov 3 12:38:09 1995 Ian Lance Taylor <ian@cygnus.com>
4559 * objdump.c: Include <sys/types.h>.
4561 Permit user to override DEMANGLER_PROG from command line. From
4562 Manfred Hollstein <manfred@lts.sel.alcatel.de>.
4563 * Makefile.in ($(DEMANGLER_PROG)): Depend upon
4564 $(DEMANGLER_PROG).1.
4565 (install): Don't depend upon $(DEMANGLER_PROG).1. Only install
4566 $(DEMANGLER_PROG).1 if $(DEMANGLER_PROG) is not empty.
4568 Wed Nov 1 15:04:57 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
4570 * Makefile.in (syslex.o): add -I$(srcdir) if compiling in a
4573 Mon Oct 30 14:24:18 1995 Ian Lance Taylor <ian@cygnus.com>
4575 * objdump.c (objdump_print_value): New static function.
4576 (objdump_print_address): Use it. If we need the right section for
4577 the symbol, and we can't find it, print an offset from the section
4578 rather than using a symbol from some other section.
4580 Thu Oct 26 10:23:14 1995 steve chamberlain <sac@slash.cygnus.com>
4582 * dlltool.c (no_idata4, no_idata5): New.
4583 (arm_jtab): Use correct encoding of jump instruction.
4584 (usage, main, make_head, make_tail): Act on no_idata4, no_idata5.
4586 Wed Oct 25 12:10:07 1995 Stan Shebs <shebs@andros.cygnus.com>
4588 * mpw-make.sed: Edit paths to generated y.tab.[ch] files.
4590 Fri Oct 20 18:40:34 1995 Ian Lance Taylor <ian@cygnus.com>
4592 * binutils.texi: Change --with-targets to --enable-targets.
4594 Thu Oct 19 17:47:41 1995 Fred Fish <fnf@cygnus.com>
4596 * Makefile.in: Remove extraneous tab on otherwise empty line,
4597 which confuses many non-GNU versions of "make".
4599 Wed Oct 18 16:31:58 1995 steve chamberlain <sac@slash.cygnus.com>
4601 * dlltool.c (i386_jtab, arm_jtab): New
4602 (gen_lib_file): Rewritten to use bfd.
4604 Fri Oct 13 16:10:07 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4606 * Makefile.in (install): Don't give error message if dlltool
4609 Fri Oct 13 11:04:37 1995 steve chamberlain <sac@slash.cygnus.com>
4611 * deflex.l: Allow quoting of IDs.
4612 * defparse.y (%union): string deleted.
4613 (command): DESCRIPTION takes ID.
4614 * dlltool.c (gen_def_file): Quote outgoing name if
4615 necessary. Preserve NONAME.
4616 (gen_lib_file): Run ranlib.
4617 (workout_prefix): Deleted.
4618 (main, usage, long_options): Add --as, --ranlib, --ar options.
4620 Wed Oct 11 13:36:13 1995 steve chamberlain <sac@slash.cygnus.com>
4622 * dlltool.c (mtable): HOW_ALIGN_LONG, new.
4624 (d_low_ord, d_high_ord, d_named_funcs): New.
4625 (gen_exp_file): Create noname entries correctly.
4626 (gen_lib_file): Dump exports alphabetically.
4627 (process_duplicates): Count nonamed functions.
4628 (fill_ordinals): Keep track of highest ord too.
4629 (mangle_defs): Create alphabetically ordered list of names.
4631 Tue Oct 10 09:39:09 1995 steve chamberlain <sac@slash.cygnus.com>
4633 * Makefile.in (TOOL_PROGS): Include DLLTOOL_PROG.
4635 Mon Oct 9 13:06:31 1995 steve chamberlain <sac@slash.cygnus.com>
4637 * dlltool.c (add_underscore): New.
4638 (xlate): Use new name.
4639 (main, usage): Update.
4641 Fri Oct 6 14:08:51 1995 Ken Raeburn <raeburn@cygnus.com>
4643 * sysinfo.y: Eliminate unused terminals "[" and "]" and unused
4644 nonterminal "name". One s/r conflict remains.
4646 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4648 * nm.c (print_symname): Don't try to demangle an empty
4650 * objdump.c (slurp_symtab): Reset symcount if there are
4652 (slurp_dynamic_symtab): Likewise, for dynsymcount.
4653 (disassemble_data): Fix memory leak: free sorted_syms when done.
4654 (display_bfd): Likewise, for syms and dynsyms.
4655 (dump_relocs): Don't print header before possibly generating an
4657 (dump_dynamic_relocs): Likewise.
4659 * ar.1, nm.1, objdump.1, size.1, strings.1, strip.1: Fix typos and
4662 Fri Oct 6 12:00:25 1995 Ian Lance Taylor <ian@cygnus.com>
4664 * ar.c (do_quick_append): Comment out.
4665 (replace_members): Add quick argument.
4666 (main): Don't call do_quick_append.
4667 (open_inarch): Don't call quick_append to create an empty archive.
4668 Instead call bfd_openw/bfd_set_format/bfd_close.
4670 Thu Oct 5 20:53:08 1995 Ken Raeburn <raeburn@cygnus.com>
4672 * bucomm.c: Always include time.h.
4674 Thu Oct 5 17:25:21 1995 Ian Lance Taylor <ian@cygnus.com>
4676 * objdump.c (compare_symbols): Sort gnu_compiled and gcc2_compiled
4677 symbols after other symbols with the same value. Likewise for
4678 symbols which look like file names.
4679 (objdump_print_address): Always chose the first reasonable symbol
4682 Tue Oct 3 22:38:55 1995 Ian Lance Taylor <ian@cygnus.com>
4684 * arsup.c (ar_save): Use rename, not unlink/link/unlink.
4686 Mon Oct 2 12:10:25 1995 Ian Lance Taylor <ian@cygnus.com>
4688 * strings.c (main): Exit with zero status if no files are given
4689 and standard input is read.
4691 Thu Sep 28 20:03:07 1995 Stan Shebs <shebs@andros.cygnus.com>
4693 * mpw-config.in: Calculate underscore and put into makefile
4694 fragment, generate config.h.
4695 * mpw-make.sed: New file, sed commands to edit Unix makefile
4697 * mpw-make.in: Remove.
4698 * mac-binutils.r: New file, Mac resources.
4700 Thu Sep 28 15:49:00 1995 steve chamberlain <sac@slash.cygnus.com>
4702 * dlltool.c: (gen_exp_file): Always emit a .reloc section if
4704 (imp_name_lab): New.
4705 (gen_def_file): New.
4706 (gen_lib_file): Use imp_name_lab.
4707 (main): Initialize imp_name_lab.
4709 Mon Sep 25 12:05:34 1995 Ian Lance Taylor <ian@cygnus.com>
4711 * configure.in: Call AC_HEADER_SYS_WAIT.
4712 * configure: Rebuild.
4713 * config.in: Rebuild.
4714 * dlltool.c: Include "libiberty.h" and "bucomm.h". Don't include
4715 <stdio.h>, <stdlib.h>, or <string.h>. Don't include <wait.h>.
4716 Include <sys/types.h>. Use HAVE_SYS_WAIT_H to control whether to
4717 include <sys/wait.h> or define the wait macros by hand. Don't
4719 (gen_lib_file): Don't assume that sprintf returns the number of
4720 characters; use strlen instead.
4722 Fri Sep 22 17:16:41 1995 Ian Lance Taylor <ian@cygnus.com>
4724 * objdump.c (disassemble_data): Don't use the old BFD based
4725 disassembler interface. Make info a const pointer.
4727 Wed Sep 13 18:33:44 1995 Ian Lance Taylor <ian@cygnus.com>
4729 * objdump.c (start_address): New variable.
4730 (stop_address): New variable.
4731 (usage): Mention --start-address and --stop-address.
4732 (OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define.
4733 (long_options): Add "start-address" and "stop-address".
4734 (disassemble_data): Handle start_address and stop_address.
4735 (dump_data, dump_reloc_set): Likewise.
4736 (main): Don't set seenflag for -l. Handle OPTION_START_ADDRESS
4737 and OPTION_STOP_ADDRESS.
4738 * objcopy.c (parse_vma): Move to bucomm.c.
4739 * bucomm.c (parse_vma): New function, moved in from objcopy.c.
4740 * bucomm.h (parse_vma): Declare.
4741 * binutils.texi, objdump.1: Document new objdump options.
4743 Tue Sep 12 12:37:39 1995 Ian Lance Taylor <ian@cygnus.com>
4745 * Makefile.in (maintainer-clean): New target.
4747 * ar.c (replace_members): Don't call write_archive if nothing
4750 * objdump.c (disassemble_data): Add casts to avoid gcc warnings.
4752 Thu Sep 7 12:12:17 1995 Ian Lance Taylor <ian@cygnus.com>
4754 * config.in: Rename from config.h.in.
4755 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
4756 Check for config.h:config.in when creating stamp-h.
4757 * configure: Rebuild.
4758 * Makefile.in (stamp-h): Depend upon config.in rather than
4759 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
4760 calling config.status.
4762 * Makefile.in (distclean): Remove config.h, stamp-h, and
4765 * nm.c (value_format): Initialize based on BFD64 and
4766 BFD_HOST_64BIT_LONG.
4767 (print_radix): New static variable.
4768 (set_print_radix): Set print_radix. Adjust changes to
4770 (print_value): New static function, to print 64 bit octal and
4771 decimal values correctly.
4772 (print_symbol_info_bsd): Check BFD64, not BFD_HOST_64_BIT. Use
4774 (print_symbol_info_sysv): Use print_value.
4775 (print_symbol_info_posix): Likewise.
4777 Wed Sep 6 15:02:55 1995 Ian Lance Taylor <ian@cygnus.com>
4779 * Makefile.in (*.o): Remove incorrect dependencies on
4780 $(BFDDIR)/hosts/std-host.h.
4782 * Makefile.in (INSTALL_DATA): Add -m 644.
4783 (INSTALL_XFORM1): Likewise.
4784 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@ rather than $(CC).
4785 (mostlyclean): Remove config.log.
4786 (distclean): Remove config.cache.
4788 * configure.in: Call BFD_CC_FOR_BUILD and BFD_BINARY_FOPEN.
4789 * configure: Rebuild.
4791 Tue Sep 5 20:22:42 1995 Ian Lance Taylor <ian@cygnus.com>
4793 * configure.in: Rewrite to use autoconf.
4794 * aclocal.m4: New file.
4795 * configure: New file, built by autoconf.
4796 * acconfig.h: New file.
4797 * config.h.in: New file, built by autoheader.
4798 * Makefile.in: Various changes for new configure script. Also:
4799 (PROGS): Remove $(SYSINFO_PROG).
4800 (ALL_CFLAGS): Remove $(TDEFINES).
4801 (version.o): Use $(ALL_CFLAGS).
4802 (cplus-dem.o, dlltool.o, nlmconv.o): Likewise.
4803 (sysdump.o): Depend upon bucomm.h and config.h.
4804 (srconv.o, arsup.o, strings.o): Depend upon config.h.
4805 (filemode.o): Don't depend upon ../bfd/sysdep.h.
4806 (bucomm.o): Depend upon config.h, not ../bfd/sysdep.h.
4807 (size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise.
4808 (nlmheader.o, nlmconv.o): Likewise.
4809 (distclean): Don't remove sysdep.h.
4810 * bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h".
4811 Include "fopen-same.h" or "fopen-bin.h", based on
4812 USE_BINARY_FOPEN. Include <errno.h>, and declare errno if it is
4813 not a macro. Include <unistd.h>, <string.h>, <strings.h>,
4814 <stdlib.h>, and <fcntl.h> if they are present. Declare strchr,
4815 strrchr, and strstr if no string header file exists. Include
4816 <sys/file.h> if it exists and <fcntl.h> does not. Define
4817 O_RDONLY and O_RDWR if necessary.
4818 * ar.c: Don't include "sysdep.h". Do include <sys/types.h> and
4819 <sys/stat.h>. Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME. Use
4820 HAVE_UTIMES rather than !USE_UTIME. Don't include <errno.h>, and
4821 don't declare errno.
4822 * arsup.c: Don't include <sysdep.h>.
4823 * bucomm.c: Don't include "sysdep.h". Include <stdio.h>,
4824 <sys/types.h>, and <sys/stat.h>. Include <time.h> if it defines
4825 time_t. Define time_t if necessary.
4826 * coffdump.c: Don't include "sysdep.h".
4827 * coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise.
4828 * srconv.c, strings.c: Likewise.
4829 * nm.c: Don't include "sysdep.h". Don't try to define HAVE_SBRK.
4830 * objcopy.c: Don't include "sysdep.h". Include <sys/types.h> and
4832 (simple_copy): Use creat rather than assuming that O_CREAT is
4834 * objdump.c: Don't include "sysdep.h". Use
4835 NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED.
4836 * sysdump.c: Include "bfd.h" and "bucomm.h". Don't include
4837 "sysdep.h" or <stdlib.h>.
4838 (dump_symbol_info): Rename from symbol_info. Change all callers.
4840 Mon Sep 4 14:30:00 1995 Ian Lance Taylor <ian@cygnus.com>
4842 * configure.in (host_makefile_frag): Don't set. Substitute for
4843 @CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
4844 * Makefile.in (AR_FLAGS): Set to rc rather than qv.
4845 (CC): Define as @CC@.
4846 (CFLAGS): Set to @CFLAGS@.
4847 (LDFLAGS): Define as @LDFLAGS@.
4848 (ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
4850 * configure.in: Don't bother to call config.bfd for each target.
4851 Just call it for the default target, and use the shell variable to
4852 decide whether underscores are used.
4854 Thu Aug 31 19:21:48 1995 Jason Molenda (crash@phydeaux.cygnus.com)
4856 * configure.in: match i[3-6]86-*-win32, not just i386-*-win32.
4858 Thu Aug 31 16:30:22 1995 steve chamberlain <sac@slash.cygnus.com>
4860 * dlltool.c (add_indirect): New.
4862 (gen_exp_file): Timestamp should be 0. Insert prefix when
4863 needed. New code for indirection.
4864 (gen_lib_file): Timestamp should be 0. Insert prefix
4866 (usage): Document --add-indirect.
4867 (main): Cope with new option.
4869 * objdump.c (dump_private_headers): New.
4870 (usage): Document new option.
4871 (long_option): Add private-headers.
4872 (dump_bfd_private_header): New.
4873 (main): Cope with new option.
4875 Thu Aug 31 04:09:16 1995 Doug Evans <dje@canuck.cygnus.com>
4877 * dlltool.c (run): Add missing 3rd arg to waitpid.
4879 Wed Aug 30 11:02:11 1995 steve chamberlain <sac@slash.cygnus.com>
4881 * Makefile.in (TOOL_PROGS): Include dlltool if needed.
4883 Tue Aug 29 13:25:21 1995 steve chamberlain <sac@slash.cygnus.com>
4885 * dlltool.c (rva): Deleted.
4886 (rvaafter, rva_before): Use new assembler pseudo.
4887 (flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing.
4888 (gen_exp_file): Don't generate .edata if no need.
4889 (gen_lib_file): Don't make timestamp.
4890 Put _iname in idata$7.
4891 (workout_prefix): Fix memory initialization bug.
4892 (usage): Tidy up, delete many single char options.
4893 (main): rva option is gone.
4895 Mon Aug 21 18:41:28 1995 steve chamberlain <sac@slash.cygnus.com>
4897 * dlltool.c (options): image-base is a synonym for rva.
4898 (gen_lib_file): Put dll name into ibase$7.
4900 Sun Aug 20 09:59:00 1995 steve chamberlain <sac@slash.cygnus.com>
4902 Modified to generate archives and objects rather than .s files.
4903 * dlltool.c (run) New function.
4904 (gen_exp_file, gen_lib_file): Use run.
4905 (workout_prefix): New.
4906 (usage): Document new options.
4907 (main): Parse new options.
4909 Wed Aug 16 16:26:52 1995 steve chamberlain <sac@slash.cygnus.com>
4911 * dlltool.c (gen_exp_file): Fix RVA handling.
4912 (rva_s, rva_n): Delete.
4914 Fri Aug 11 18:27:18 1995 Ian Lance Taylor <ian@cygnus.com>
4916 * nm.c (main): Ignore -e.
4918 Thu Aug 10 17:35:00 1995 Ken Raeburn <raeburn@cygnus.com>
4920 * Makefile.in (config.texi): New target. Write out a setting for
4921 texinfo variable VERSION.
4922 (binutils.dvi, binutils.info): Depend on it.
4923 * binutils.texi: Include it, and reference @value{VERSION} instead
4924 of explicitly specifying 2.2(!).
4926 Thu Aug 10 16:07:53 1995 Ian Lance Taylor <ian@cygnus.com>
4928 * coffgrok.c (do_type): Handle array dimensions the same way gdb
4931 Tue Aug 8 17:10:42 1995 steve chamberlain <sac@slash.cygnus.com>
4933 * dlltool.c (mtable): New fields.
4934 (ASM_RVA_BEFORE, ASM_RVA_AFTER): New.
4935 (flush_page): Use new macros.
4937 Sat Aug 5 00:16:37 1995 Jeff Law (law@snake.cs.utah.edu)
4939 * objcopy.c (mark_symbols_used_in_relocations): Handle sections
4940 with no relocations.
4941 * coffgrok.c (do_sections_p1): Likewise.
4943 Mon Jul 31 12:51:06 1995 Ian Lance Taylor <ian@cygnus.com>
4945 * strings.c (print_strings): For compatibility with existing
4946 strings programs, print strings which are not terminated with a
4947 null byte or a newline.
4948 * binutils.texi, strings.1: Update documentation accordingly.
4950 * ar.c (replace_members): For compatibility with existing ar
4951 programs, permit users to add the same file multiple times.
4953 Tue Jul 25 11:21:53 1995 Ian Lance Taylor <ian@cygnus.com>
4955 * strings.c (DATA_FLAGS): Remove SEC_DATA.
4956 (main): If no file names are given, scan standard input.
4957 * binutils.texi, strings.1: strings now scans non-data sections by
4960 Mon Jul 24 13:52:28 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4962 * srconv.c (wr_hd): Set afl field to 4 for bfd_arch_sh.
4963 (writeINT): When size == -2, use 2 bytes for the h8300 and 4 bytes
4966 * sysdump.c (fillup): Return size - 1, the last byte is a checksum
4967 and shouldn't be counted.
4968 * sysroff.info (hd): Changed segment identifier from a byte to a 1
4969 bit field. The sysroff 2.0-01 specification seems to be in error
4970 here. Reduce width of following "spare" field from 4 to 3 bits.
4971 (rl): Changed order and width of first 4 bitfields to correspond
4972 to sysroff specification.
4973 (dln_head, dln_inside, dln_tail): Removed.
4975 Tue Jul 18 23:00:03 1995 Fred Fish <fnf@cygnus.com>
4977 * nm.c (sort_symbols_by_size): Enclose expression being casted
4978 in parens so result is casted, not just first operand. Can't
4979 do pointer arithmetic on void* pointers.
4981 Fri Jul 14 13:42:42 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4983 * sysdump.c (dh): Changed format of output to be 16 hex digits
4984 followed by 16 ascii characters, similar to Emacs' hexl-mode,
4985 to make it easier to read.
4986 (xcalloc): fix typo.
4988 Thu Jul 13 15:27:44 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4990 * srconv.c (wr_tr): Write out handcrafted tr block.
4991 (walk_tree_symbol): Use evallen and evalue instead of
4992 vallen & value because of corresponding changes in
4995 * sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New
4998 * sysroff.info (tr): the tr block is a special case --- a block
4999 without contents --- which can't be handled by generated code.
5000 (den, dpp): only first byte is present for DENend, DPPend.
5001 (dsy): describe a conditional portion of block, rename some fields.
5002 (dps): describe a conditional portion of block.
5005 * sysinfo.y (yyerror): write error message to standard error.
5007 Thu Jul 13 10:43:59 1995 Ian Lance Taylor <ian@cygnus.com>
5009 * Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
5010 (mostlyclean): Remove y.output.
5011 (clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo.
5013 * nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t.
5014 * objcopy.c (copy_object): Likewise.
5016 * nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.
5017 (struct size_sym): Define.
5018 (show_stats): New static variable.
5019 (long_options): Add undocumented option "stats".
5020 (main): Print memory stats if requested.
5021 (sort_bfd, sort_dynamic, sort_x, sort_y): New static variables.
5022 (numeric_forward): Use minisymbols rather than asymbols.
5023 (non_numeric_forward): Likewise.
5024 (size_forward1): Rename from size_forward. Use minisymbols.
5025 (size_forward2): New static function.
5026 (sort_symbols_by_size): Take new arguments dynamic, size, and
5027 symsizep. Use minisymbols. Don't store the size back in the
5028 symbol; store in a newly allocate struct size_sym array.
5029 (display_rel_file): Read minisymbols rather than asymbols. Set
5030 sort_* variables. Call print_size_symbols if sorting by size.
5031 (filter_symbols): Take new arguments dynamic and size. Use
5033 (print_symbols): Likewise. Call print_symbol for actual printing.
5034 (print_size_symbols): New static function.
5035 (print_symbol): New static function.
5037 Wed Jul 12 10:43:05 1995 Ian Lance Taylor <ian@cygnus.com>
5039 * objdump.c (dump_section_stabs): Only print each stabs section
5041 (compare_relocs): Make it clear to gcc that this always returns a
5044 Wed Jul 12 10:40:23 1995 H.J. Lu <hjl@nynexst.com>
5046 * objcopy.c (simple_copy): Preserve errno on failure.
5047 (smart_rename): Print error mesage if simple_copy fails.
5049 Tue Jul 11 13:10:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
5051 * sysdump.c: re-indented file.
5052 (module): read blocks sequentially instead of trying to parse
5053 them, as that would require changing the parser recognize the
5054 difference between a DPSstart and DPSend block.
5055 (getone): Add break's between switch blocks as appropriate.
5056 (object_body_list): parse blocks according to sysroff spec.
5058 Mon Jul 10 12:37:25 1995 J.T. Conklin <jtc@poseidon.cygnus.com>
5060 * sysroff.info: re-indented file, prior formatting was confusing
5061 because it was indentation did not reflect nesting of conditional
5062 records. Change "space size within segment" record in hd record
5065 * sysinfo.y (cond_it_field): Use xcalloc instead of calloc.
5067 * srconv.c (wr_cs): Reformatted cs header array, tag each byte
5068 with a comment describing the field.
5069 (wr_unit_info): Use SEEK_SET macro instead of constant 0.
5070 (main): Use FOPEN_WB macro instead of literal "wb".
5071 * sysroff.info: Remove fdl (dfl) field from cs block. Compare
5072 ptr->type with ED_TYPE_CONST instead of constant 2 in ed block.
5074 Tue Jul 4 14:48:42 1995 Ian Lance Taylor <ian@cygnus.com>
5076 * nm.c (size_forward): Check yf against yn, not xn.
5078 * objcopy.c (copy_archive): Record all output BFD's, and close
5079 them before unlinking them and removing the temporary directory,
5080 to avoid NFS problems.
5082 * ar.c (replace_members): In verbose messages, use 'r' when
5083 replacing a member, and 'a' when adding one.
5085 * ar.c (ar_truncate): New static variable.
5086 (normalize): Change return type to const char *. Add abfd
5087 argument. Change all callers. If ar_truncate, chop the filename
5088 to abfd->ar_max_namelen.
5089 (main): For the 'f' modifier, set ar_truncate to true. Don't
5090 change quick_append to replace if ar_truncate is true.
5091 (do_quick_append): If ar_truncate, set BFD_TRADITIONAL_FORMAT.
5092 (write_archive): Likewise.
5093 * binutils.texi, ar.1: Document 'f' modifier.
5095 * objcopy.c (enum strip_action): Define strip_unneeded.
5096 (OPTION_STRIP_UNNEEDED): Define.
5097 (strip_options): Add "strip-unneeded".
5098 (copy_options): Likewise.
5099 (copy_usage): Mention --strip-unneeded.
5100 (strip_usage): Likewise.
5101 (is_strip_section): Strip debugging sections if strip_unneeded.
5102 (filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
5103 (copy_object): If strip_all, discard symbols without checking
5105 (copy_object): Call filter_symbols if strip_unneeded.
5106 (setup_section): Strip debugging sections if strip_unneeded.
5107 (copy_section): Likewise.
5108 (strip_main): Handle OPTION_STRIP_UNNEEDED.
5109 (copy_main): Likewise.
5110 * binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
5112 Mon Jul 3 14:16:47 1995 Steve Chamberlain <sac@slash.cygnus.com>
5114 * configure.in (i386-*-win32): New configuration.
5115 * dlltool.c (killat, xlate, usage, long_options, main):
5116 Understand and cope with -k option.
5118 Sat Jul 1 12:25:15 1995 Fred Fish <fnf@cygnus.com>
5120 * ar.c: (extract_file): Change "#if POSIX_UTIME" to
5121 "#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME
5122 and avoid lossage when POSIX_UTIME is not defined at all.
5124 Wed Jun 28 17:51:24 1995 Steve Chamberlain <sac@slash.cygnus.com>
5126 * ar.c: (print_contents.c, extract_file, do_quick_append):
5127 Malloc buffers rather than allocate on stack (so it works
5129 * deflex.l: Names can have an @ in them.
5130 * dlltool.c: Loads of stuff. Can now generate .imp files which
5133 Thu Jun 22 19:10:50 1995 Stan Shebs <shebs@andros.cygnus.com>
5135 * mpw-make.in (demangle.c.o): Remove.
5136 (arparse.h): Depend on arparse.c instead of arparse.y.
5138 Wed Jun 21 17:32:45 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5140 * Makefile.in (DISTSTUFF): Don't include info here.
5141 (diststuff): Include it here.
5142 (realclean): Remove *.info.
5144 * objdump.c (compare_relocs): If relocation entries have the same
5145 address, keep them in file order.
5147 Mon Jun 19 09:06:49 1995 Steve Chamberlain <sac@slash.cygnus.com>
5149 * dlltool.c: Change names of generated files. .*.s-> -*.s
5151 * objdump.c (dump_section_stabs): Check for names
5152 which are supersets of selected names.
5154 Wed Jun 14 19:43:52 1995 Doug Evans <dje@canuck.cygnus.com>
5156 * dlltool.c (mtable, ARM jump): Must redirect via pc offsetable ptr.
5158 Wed Jun 14 13:27:22 1995 Steve Chamberlain <sac@slash.cygnus.com>
5160 * deflex.l, defparse.y, dlltool.c: New files.
5161 * Makefile.in, configure.in: Support for them.
5163 Mon Jun 12 11:27:54 1995 Steve Chamberlain <sac@slash.cygnus.com>
5165 * sysdump.c: Include sysdep.h
5166 (main): Open input with FOPEN_RB.
5168 Fri Jun 9 17:26:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5170 * objdump.c (wide_output): New flag variable.
5171 (usage): Print new -w, --wide options.
5172 (long_options): Add --wide support.
5173 (dump_section_header): If --wide, don't print a newline between
5174 the section's first line and the flags.
5175 (objdump_print_address): Use unsigned comparisons for the binary
5177 (disassemble_data): If --wide, don't put a \n between the
5178 disassembly output and relocation information.
5179 (main): Support -w option being the same as --wide.
5181 Thu Jun 1 17:09:27 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5183 Sat May 6 08:52:24 1995 H.J. Lu (hjl@nynexst.com)
5185 * objcopy.c (smart_rename): make it smarter, clean up
5188 Tue May 30 14:24:15 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5190 * Makefile.in: Delete lines with lots of #### because four or more
5191 indicate a point for makefile fragment substitution.
5193 Tue May 9 17:17:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5195 * configure.in: Don't build nlmconv on PowerPC eabi any more, it
5198 Thu Apr 27 20:21:24 1995 Doug Evans <dje@canuck.cygnus.com>
5200 * Makefile.in (EXPECT): Define.
5201 (RUNTEST): Use one in source tree if present.
5202 (check): Set `rootme' for $(EXPECT).
5204 Wed Apr 26 18:26:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
5206 * srconv.c (main): Add support for -n option which disables
5207 prescan of common symbols.
5208 (wr_ob): If reading past the end of a section, fill with zeros.
5210 Tue Apr 25 19:14:37 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5212 * objdump.c (dump_section_header): Display load address after
5213 virtual memory (run-time) address.
5215 Wed Apr 19 09:44:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
5217 * Makefile.in (cplus-dem.o): Pass -DVERSION='"$(VERSION)"' to the
5219 (DEMANGLER_PROG): No longer uses version.o.
5221 Mon Apr 10 13:29:49 1995 Stan Shebs <shebs@andros.cygnus.com>
5223 Merge in support for Mac MPW as a host.
5224 (Old change descriptions retained for informational value.)
5226 * mpw-config.in (TDEFINES): Define as empty in makefile frag.
5228 * mpw-config.in: Create mk.tmp, define ARCHDEFS in it.
5230 * mpw-config.in: New file, MPW configure fragment for binutils.
5231 * mpw-make.in (install-only): New target.
5232 (install): Also depend on install-only.
5234 * mpw-make.in (cplusfilt): Renamed from c++filt.
5235 (INCLUDES): Add more paths.
5237 * mpw-make.in: New file, MPW makefile fragment for binutils.
5238 (Normally automatically generated from Makefile.in.)
5240 Mon Mar 27 11:52:57 1995 Ian Lance Taylor <ian@cygnus.com>
5242 * ar.c (write_archive): Call make_tempname to get output file
5243 name, rather than using a fixed name based on the input file.
5245 * objcopy.c (make_tempname): Copy from here...
5246 * bucomm.c (make_tempname): ...to here, and make global.
5247 * bucomm.h (make_tempname): Declare.
5249 Fri Mar 24 11:47:42 1995 Ian Lance Taylor <ian@cygnus.com>
5251 * strings.c: Include "bfd.h" before other headers. Include
5253 * bucomm.c (print_arelt_descr): Cast st_uid and st_gid to long,
5254 and print them with %ld.
5256 Fri Mar 10 13:09:42 1995 Ian Lance Taylor <ian@cygnus.com>
5258 * objcopy.c (strip_options): Add --keep-symbol.
5259 (copy_options): Likewise.
5260 (copy_usage): Mention --keep-symbol and -K.
5261 (strip_usage): Likewise.
5262 (keep_symbols): New static variable.
5263 (is_strip_symbol): Adjust the return value according to
5265 (strip_main): Handle -K. For -N, check that -K was not given.
5266 (copy_main): Likewise.
5267 * binutils.texi, objcopy.1, strip.1: Document -K.
5269 Mon Mar 6 13:33:47 1995 Stan Shebs <shebs@andros.cygnus.com>
5271 * objcopy.c (copy_archive): Check result of mkdir.
5272 (copy_main): Cast an xmalloc result.
5274 * objdump.c (usage): Break long format string into shorter ones.
5276 Mon Mar 6 13:46:12 1995 Ian Lance Taylor <ian@cygnus.com>
5278 * bucomm.c (list_supported_targets): New function.
5279 * bucomm.h (list_supported_targets): Declare.
5280 * ar.c (usage): Call list_supported_targets.
5281 * nm.c (usage): Likewise.
5282 * objcopy.c (copy_usage, strip_usage): Likewise.
5283 * objdump.c (usage): Likewise.
5284 * size.c (usage): Likewise.
5285 * strings.c (usage): Likewise.
5287 Tue Feb 28 15:13:58 1995 Ian Lance Taylor <ian@cygnus.com>
5289 * bucomm.c (print_arelt_descr): Cast st_size to long before
5290 passing it to fprintf.
5292 Fri Feb 17 13:36:45 1995 Ian Lance Taylor <ian@cygnus.com>
5294 * objcopy.c (struct section_list): Add fields remove, set_flags,
5295 and flags. Change adjust from boolean to enum.
5296 (remove_sections): Remove static variable.
5297 (sections_removed): New static variable.
5298 (copy_options): Add --set-section-flags.
5299 (copy_usage): Mention --set-section-flags.
5300 (parse_flags): New static function.
5301 (find_section_list): New static function.
5302 (is_strip_symbol): Change return type from int to boolean.
5303 (is_strip_section): New static function.
5304 (filter_symbols): Call is_strip_section.
5305 (copy_object): When adding sections, check for specified flags or
5306 VMA. Call filter_symbols if any sections are being removed.
5307 (setup_section): Use find_section_list function rather than
5308 looking through remove_sections and adjust_sections. Handle
5309 --set-section-flags.
5310 (copy_section): Use find_section_list rather than looking through
5312 (strip_main): Use find_section_list instead of adding items to
5314 (copy_main): Use find_section_list instead of adding items to
5315 sections_removed and adjust_sections. Handle --set-section-flags.
5316 * binutils.texi, objcopy.1: Document --set-section-flags.
5318 Tue Feb 14 18:03:03 1995 Ian Lance Taylor <ian@cygnus.com>
5320 * objdump.c (with_source_code): New global variable.
5321 (usage): Mention -S/--source.
5322 (long_options): Add --source.
5323 (prev_functionname, prev_line): New static variables.
5324 (struct print_file_list): Define.
5325 (print_files): New static variable.
5326 (skip_to_line, show_line): New static functions.
5327 (disassemble_data): Call show_line to handle -l and -S.
5329 * binutils.texi, objdump.1: Document -S/--source.
5331 Thu Feb 9 16:11:53 1995 Ian Lance Taylor <ian@cygnus.com>
5333 * objcopy.c (copy_usage): Rename parameter to avoid shadowing.
5334 (strip_usage): Likewise.
5336 * objcopy.c (struct section_add): Define.
5337 (add_sections): New static variable.
5338 (copy_options): Accept --add-section.
5339 (copy_usage): Mention --add-section.
5340 (copy_object): Add sections from the add_sections list.
5341 (copy_main): Handle --add-section.
5342 * binutils.texi, objcopy.1: Document --add-section.
5344 Wed Feb 1 15:04:57 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5346 * objdump.c (disassemble_data): Pass section offset, not absolute
5347 address, to bfd_find_nearest_line.
5349 * nlmconv.c (powerpc_mangle_relocs): Don't use const with
5352 Thu Jan 26 18:50:06 1995 Ian Lance Taylor <ian@cygnus.com>
5354 * objdump.c (compare_symbols): Use bfd_asymbol_value (VAR) rather
5356 (objdump_print_address): Likewise.
5357 (disassemble_data): Don't change the symbol values. It can
5358 confuse bfd_canonicalize_reloc.
5360 Thu Jan 26 12:03:56 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5362 * configure.in: Add support for powerpc-*-ebai.
5364 Wed Jan 18 10:02:12 1995 Steve Chamberlain <sac@splat>
5366 * coffdump.c: Include sysdep.h.
5367 (dump_coff_type): Handle coff_secdef_type.
5368 * coffgrok.c : Include sysdep.h.
5369 * srconv.c: Include libiberty.h
5370 (absolute_p, dty_start, dty_end, dump_tree_structure): Remove.
5372 Wed Jan 18 12:24:14 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
5374 * coffdump.c (dump_coff_scope): Cast pointer to unsigned long for
5376 * coffgrok.c: Include bucomm.h. Don't declare xmalloc.
5377 (push_scope): Declare type of parameter link.
5378 * size.c: Include libiberty.h.
5379 * srconv.c: Include bucomm.h.
5380 (find_base): Declare at top of file.
5381 (wr_hd): Add default case to architecture switch.
5382 (wr_dps_start): Declare type of parameter nest.
5383 (wr_du): Comment out variables used only in commented out blocks.
5384 (wr_dus): Remove unused variable i.
5385 (wr_sc): Remove unused variables myinfo, low, and high.
5386 * strings.c: Include libiberty.h.
5387 * sysdump.c: Include <ctype.h>.
5389 Tue Dec 20 19:13:44 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5391 * ar.c (main): Ignore 'f' modifier used on HP/UX 9.
5393 Thu Dec 15 17:34:12 1994 Stan Shebs <shebs@andros.cygnus.com>
5395 * ar.c, nm.c, objcopy.c, objdump.c: Include progress.h.
5396 * ar.c, nm.c, objcopy.c, objdump.c (main): Add START_PROGRESS
5398 * ar.c (map_over_members, open_inarch): Call PROGRESS.
5399 * nm.c (main, display_archive, filter_symbols, print_symbols):
5402 * objcopy.c (copy_usage): Break up long usage string.
5404 Wed Dec 14 15:51:56 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
5406 * objcopy.c (copy_object): Don't bother setting status after
5407 nonfatal() "call", because it won't return.
5409 Fri Dec 9 00:22:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5411 * nlmconv.c (powerpc_mangle_relocs): Don't switch a reloc to use
5412 the section symbol if the symbol is undefined.
5414 Thu Dec 8 14:45:50 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
5416 * objcopy.c (add_strip_symbol): Cast return value of xmalloc.
5418 Wed Nov 30 11:05:43 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
5420 * ar.c (replace_members): Pass current->filename to normalize when
5421 checking for duplicates, because the filename of a newly added
5422 file will not have been normalized yet.
5424 Thu Nov 17 15:00:13 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5426 * ar.c (main): Don't call do_quick_append if any of the archive
5427 names are longer than 14 characters.
5429 * objcopy.c (main): Fix is_strip test. From
5430 pirker@eiunix.tuwien.ac.at (Martin Pirker).
5432 Thu Nov 17 15:37:19 1994 Mark W. Eichin <eichin@cygnus.com>
5434 * objcopy.c (add_strip_symbol): New function, adds a name to an
5435 explicit list of symbols to strip.
5436 (is_strip_symbol): New function, reports whether the name argument
5437 is in the explicit list.
5438 (filter_symbols): Check against is_strip_symbol above all.
5439 (strip_main): Recognize -N option. If used, don't default to
5441 (copy_main): Recognize -N option.
5442 (strip_usage): Document -N and --strip-symbol options.
5443 (copy_usage): Ditto.
5444 * objcopy.1, strip.1, binutils.texi: Document -N and
5445 --strip-symbol options.
5447 Tue Nov 8 13:12:54 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5449 * objdump.c (display_target_list, display_info_table): Pass an
5450 array to tmparg, rather than NULL, since some systems can't handle
5453 * objcopy.c (copy_archive): Keep a list of the names of the
5454 temporary files we created. Close each input BFD after we open
5457 Mon Nov 7 15:48:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
5459 * Makefile.in (VERSION): Bump to 2.5.3.
5461 Thu Nov 3 19:04:34 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
5463 * Makefile.in (install-info): Install info files from whatever
5464 directory they were found in.
5466 Patch from DJ Delorie:
5467 * configure.bat: do c++filt -> cxxfilt right
5469 * sysinfo.y: Include system header files early, so any potential
5470 declaration of abort() occurs before its use.
5472 * strings.c (strings_file): Try opening the file in binary mode
5475 Wed Nov 2 15:44:13 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5477 * ar.c (main): Treat ar qs like ar rs.
5479 Tue Oct 25 16:19:25 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5481 * objcopy.c (gap_fill): Explicitly initialize, for clarity.
5482 (pad_to_set, pad_to): New static variables.
5483 (copy_options): Accept --pad-to.
5484 (copy_usage): Mention --pad-to.
5485 (copy_object): Support --pad-to.
5486 (compare_section_vma): Sort non loadable sections to the front.
5487 Sort sections with the same VMA by size.
5488 (copy_main): Handle --pad-to.
5489 * binutils.texi, objcopy.1: Document --pad-to.
5491 Thu Oct 20 13:51:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5493 * objcopy.c (gap_fill_set, gap_fill): New static variables.
5494 (copy_options): Accept --gap-fill.
5495 (copy_usage): Mention --gap-fill.
5496 (copy_object): Support --gap-fill.
5497 (get_sections, compare_section_vma): New static functions.
5498 (copy_main): Handle --gap-fill.
5499 * binutils.texi, objcopy.1: Document --gap-fill.
5501 Wed Oct 19 14:09:16 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5503 * Makefile.in (check): Add a dummy else clause to the if
5506 * objcopy.c (copy_object): Revert yesterday's change.
5507 * binutils.texi, objcopy.1: Remove special mention of --set-start
5508 and `binary' output format.
5510 Tue Oct 18 11:12:01 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5512 * objcopy.c (copy_object): If the output file format is `binary',
5513 and the start address was not set using --set-start, default the
5514 start address to zero. This hack is because the `binary' output
5515 file format uses the start address to set the virtual address of
5516 the first byte in the file.
5517 * binutils.texi, objcopy.1: Add some notes on generating S-records
5520 * nm.c (print_symdef_entry): Call print_symname to print the
5521 symbol name, so that --demangle works.
5523 * Makefile.in (mostlyclean): Remove tmpdir.
5525 * objcopy.c (struct section_list): Add fields used, adjust, val.
5526 (adjust_start, set_start_set, set_start): New static variables.
5527 (adjust_section_vma, adjust_sections): New static variables.
5528 (copy_options): Add --adjust-start, --adjust-vma,
5529 --adjust-section-vma, --adjust-warnings, --no-adjust-warnings,
5531 (parse_vma): New static function.
5532 (copy_usage): Mention new options.
5533 (copy_object): Handle --set-start and --adjust-start.
5534 (setup_section): Correct type of last argument to PTR. Set used
5535 field if section is removed. Handle --adjust-vma and
5536 --adjust-section-vma.
5537 (copy_section): Correct type of last argument to PTR.
5538 (mark_symbols_used_in_relocations): Likewise.
5539 (strip_main): Clear used field when handling -R.
5540 (copy_main): Handle new options.
5541 * binutils.texi (objcopy): Document new options.
5542 * objcopy.1: Document new options.
5544 Fri Oct 14 14:38:13 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5546 * configure.in (configdirs): Remove definition--testsuite is no
5548 * Makefile.in (testsuite): Remove target.
5549 (site.exp): New target.
5551 (clean, distclean): Don't recur into testsuite directory.
5553 Thu Oct 13 19:24:09 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
5555 * Makefile.in (VERSION): Updated to 2.5.
5556 * Version 2.5 released.
5558 Tue Oct 11 15:26:42 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5560 * Makefile.in (sysdump.o): Depends upon sysroff.c.
5562 Mon Oct 10 13:50:30 1994 J.T. Conklin (jtc@rtl.cygnus.com)
5564 * nlmconv.c (link_inputs): Pass -Ur flag to ld so that the
5565 ctor/dtor tables needed by C++ programs are built.
5567 Sun Oct 9 18:04:00 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
5569 * Makefile.in (srconv.o): Add dependence on sysroff.c.
5571 Tue Oct 4 12:19:51 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5573 * configure.in: Use ${config_shell} when running config.bfd.
5575 * Makefile.in (sysroff.h): Split target away from sysroff.c.
5576 (srconv.o, sysdump.o): New targets.
5577 (srconv, sysdump): Don't depend upon sysroff.c.
5579 Wed Sep 28 13:04:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5581 * Makefile.in (arparse.c): Don't ignore errors from mv.
5582 (sysinfo.c): Likewise. Also, depend upon arparse.c, to prevent a
5583 parallel make from trying to build both arparse.c and sysinfo.c
5585 (nlmheader.c): Similar change.
5586 (arparse.h): Separate target from arparse.c, so that a parallel
5587 make does not try to build both at once. Depend upon arparse.c.
5588 (sysinfo.h): Similar change.
5590 * objdump.c (disassemble_data): Pass the reloc buffer to free, not
5591 the pointer used to loop over the relocs.
5593 Sat Sep 24 16:16:57 1994 Stan Shebs (shebs@andros.cygnus.com)
5595 * objdump.c (disassemble_data): Cast result of xmalloc.
5597 Wed Sep 21 19:30:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5599 * objdump.c (sorted_syms, sorted_symcount): New global variables.
5600 (objdump_print_address): Use sorted_syms and sorted_symcount
5601 instead of syms and symcount.
5602 (disassemble_data): Don't bother to get the relocs before looping
5603 over the sections. Before filtering and sorting the symbol table,
5604 copy it into sorted_syms.
5606 Fri Sep 16 11:27:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5608 * objdump.c (struct objdump_disasm_info): Add field require_sec.
5609 (objdump_print_address): If aux->require_sec, require that the
5610 symbol be in aux->sec even if HAS_RELOC is not set. If we can't
5611 find a smaller symbol in the right section, look for a larger one.
5612 (disassemble_data): Set aux.require_sec around the
5613 objdump_print_address call for the instruction address.
5615 Thu Sep 15 21:43:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5617 * ar.c: Call xexit rather than exit.
5618 (output_filename, output_file, output_bfd): New static variables.
5619 (remove_output): New static function.
5620 (main): Call xatexit (remove_output). Call xexit rather than
5622 (extract_file): Set output_filename and output_file while output
5624 (write_archive): Likewise, but use output_bfd, not output_file.
5625 * arsup.c: Include libiberty.h. Call xexit rather than exit.
5626 * bucomm.c: Likewise.
5628 * objdump.c (disassemble_all): New global variable.
5629 (usage): Document --disassemble-all.
5630 (long_options): Add disassemble-all as a synonym for -D.
5631 (compare_symbols): Make pointers const.
5632 (compare_relocs): New static function.
5633 (disassemble_data): Rename disassemble to disassemble_fn to avoid
5634 shadowing. If dump_reloc_info, print relocs along with
5635 disassembly. Skip sections which are not SEC_CODE unless
5636 disassemble_all or only is set.
5637 (display_bfd): Don't call dump_relocs if disassemble is set.
5638 (main): Accept and handle -D.
5639 * binutils.texi: Document -D/--disassemble-all.
5640 * objdump.1: Likewise.
5642 Wed Sep 14 12:19:07 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5644 * objdump.c (disassemble_data): Initialize prevline to 0. Make
5645 prev_function non const. Copy functionname into an malloc buffer
5646 when setting prev_function, instead of assuming that the string
5649 * nm.c: Include libiberty.h.
5650 (sort_by_size): New static variable.
5651 (long_options): Add --size-sort.
5652 (usage): Mention --size-sort.
5653 (numeric_forward): Make static. Change from void * to PTR.
5654 (numeric_reverse): Likewise.
5655 (non_numeric_forward, non_numeric_reverse): Likewise.
5656 (sorters): Change declaration from void * to PTR.
5657 (size_forward, sort_symbol_by_size): New static functions.
5658 (display_rel_file): Handle sort_by_size.
5659 (filter_symbols): If sort_by_size, discard absolute and undefined
5661 * binutils.texi (nm): Document --size-sort.
5662 * nm.1: Document --size-sort.
5664 Tue Sep 13 21:06:06 1994 Jeff Law (law@snake.cs.utah.edu)
5666 * objcopy.c (copy_main): Initialize input_filename and
5667 output_filename to NULL.
5669 Tue Sep 13 14:17:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5671 * Makefile.in (version.o): Depend upon Makefile, so that version.o
5672 gets rebuilt when make variable VERSION is changed.
5674 * objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.
5676 Wed Aug 24 12:40:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5678 * configure.in: Change i[34]86 to i[345]86.
5680 Tue Aug 23 11:00:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5682 * ar.c (ranlib_touch): Don't update the archive map if there isn't
5685 Mon Aug 22 16:02:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5687 * ar.c: Include libiberty.h.
5688 (inarch): Remove variable.
5689 (map_over_members): Make static. Add arch argument, and use it
5690 instead of inarch. Change all callers.
5691 (main): Treat --version as -v. Accept -t argument. Accept any
5692 number of archive arguments. Catch and use open_inarch return
5693 value, rather than using inarch.
5694 (open_inarch): Return newly opened BFD, rather than using inarch.
5695 (do_quick_append): Make archive_filename const.
5696 (write_archive): Add iarch argument, and use it instead of inarch.
5698 (delete_members, move_members, replace_members): Likewise.
5699 (ranlib_only): Don't exit on success. Catch and use open_inarch
5701 (ranlib_touch): New function.
5702 * arsup.h (map_over_members): Don't declare.
5703 (ar_end, ar_extract): Declare.
5704 (open_inarch): Change return value in declaration to bfd *.
5705 * arsup.c (map_over_list): Make static. Always pass two arguments
5706 to function. Add arch argument, and use it instead of inarch.
5708 (ar_directory_doer): Make static. Add ignored second argument.
5710 (ar_directory): Use open_inarch return value rather than inarch.
5711 (ar_addlib_doer): Make static.
5712 (ar_addlib): Use open_inarch return value rather than inarch.
5713 (ar_extract): Remove unused local variable abfd.
5715 Thu Aug 11 14:55:57 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5717 Add support for removing named sections to objcopy and strip.
5718 * objcopy.c (struct section_list): Define.
5719 (remove_sections): New static variable.
5720 (strip_options, copy_options): Add remove-section.
5721 (copy_usage, strip_usage): Mention -R and --remove-section.
5722 (setup_section): If section is in remove_sections list, ignore it.
5723 (copy_section): Likewise.
5724 (strip_main, copy_main): Handle -R.
5725 * binutils.texi, objcopy.1, strip.1: Document new options.
5727 Wed Aug 10 10:19:55 1994 Stan Shebs (shebs@andros.cygnus.com)
5729 * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
5730 so as not to conflict with the symvalue typedef in bfd.h.
5732 Mon Aug 1 13:19:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5734 * nlmheader.y: Per current NetWare docs, accept a revision number
5735 of 0 and treat a revision number greater than 26 as 0.
5737 Mon Jul 25 12:58:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5739 * objdump.c (objdump_print_address): Correct handling of end of
5740 symbols when looking for next symbol with a different value.
5742 Fri Jul 22 16:48:34 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5744 * nm.c (numeric_forward): Treat undefined symbols as "less than"
5745 defined symbols with zero values. If numeric values are equal, or
5746 both symbols are undefined, sort alphabetically. Don't assume
5747 that the difference of two bfd_vma values will truncate to "int"
5748 and still have the same sign.
5749 (numeric_reverse): Call numeric_forward and negate the result.
5750 (print_symbol_info_bsd): For undefined symbols, print leading
5751 spaces equivalent to the width of a printed bfd_vma, rather than
5752 assuming that 8 will look right.
5754 Fri Jul 22 10:36:50 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5756 * coffgrok.c (doit): Zero all fields of new structure.
5757 * srconv.c (sysroff_swap_*_out): Remove redundant trailing arg.
5758 * sysinfo.y: Generate sysroff_swap_*_out without requiring extra
5761 Fri Jul 22 10:09:53 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
5763 * nlmheader.y: Make "stack" and "stacksize" synonyms in the lexer
5764 rather than the parser.
5766 Thu Jul 21 10:25:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5768 * config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:
5771 Sat Jul 16 22:34:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5773 * objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbols
5774 even if the bfd is not marked DYNAMIC. ELF executables are not
5775 marked DYNAMIC, but do have dynamic symbols.
5777 Fri Jul 15 01:41:35 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5779 * coffgrok.c (do_where): Make data with no type 'int'.
5780 (do_define): Keep info on source file of a symbol.
5781 * coffgrok.h (coff_symbol): New field.
5782 * srconv.c (PROGRAM_VERSION): Now 1.3
5783 (wr_rl): Use external ref number for symbol.
5784 (wr_dus): Only keep one source file per debug unit.
5785 (wr_dln): Always emit line numbers for first source file,
5786 (wr_globals): Emit globals in the du of their owning source file.
5788 Mon Jul 11 15:59:03 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
5790 * nlmheader.y: Null terminate var_hdr->threadName.
5792 Fri Jul 8 17:33:22 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5794 * Makefile.in (syslex.o, sysinfo.o): Permit C source files to be
5795 in $(srcdir), as they will be for FSF releases.
5797 Wed Jul 6 01:13:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5799 * nlmconv.c (setup_sections): Preserve existing section flags when
5800 copying in flags from a new section.
5802 Tue Jul 5 15:56:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5804 * objcopy.c: Include libiberty.h.
5805 (copy_file): If output_target is NULL, set it to the target of the
5808 Wed Jun 29 17:17:14 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
5810 * nlmconv.c (link_inputs): Fixed memory allocation bug.
5812 Thu Jun 23 12:52:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
5814 * configure.in: Change --with-targets to --enable-targets.
5816 Tue Jun 21 12:53:21 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5818 * Makefile.in (sysinfo): Does not depend upon $(ADDL_LIBS).
5820 * nlmconv.c (powerpc_build_stubs): Don't generate the PowerPC
5821 NetWare custom header; no longer needed.
5822 (powerpc_mangle_relocs): Convert relocs against the uninitialized
5823 data section into relocs against the data section.
5825 * configure.in: Set nlmconv_defs to -DNLMCONV_cputype for all the
5826 netware targets. Write it into Makefile as NLMCONV_DEFS.
5827 * Makefile.in (nlmconv.o): Pass $(NLMCONV_DEFS) to $(CC).
5828 * nlmconv.c: Only compile code for specific CPU types if
5829 NLMCONV_cputype is defined.
5831 * nlmconv.c (main): Change uses of bfd_abs_section, etc., to use
5832 bfd_abs_section_ptr or bfd_is_abs_section, etc.
5833 (i386_mangle_relocs, alpha_mangle_relocs): Likewise.
5834 (powerpc_build_stubs): Likewise.
5835 * nm.c (filter_symbols, print_symbols): Likewise.
5836 * objcopy.c (filter_symbols): Likewise.
5837 (mark_symbols_used_in_relocations): Likewise.
5838 * objdump.c (remove_useless_symbols, dump_relocs): Likewise.
5839 * size.c (sysv_internal_printer): Likewise.
5841 Mon Jun 20 16:43:03 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5843 * Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG).
5844 (install): Install it explicitly, from build dir, not srcdir.
5846 Mon Jun 20 16:29:54 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
5848 * objdump.c: Don't include elf/internal.h.
5849 (bfd_elf_find_section): Don't declare.
5850 (read_section_stabs): No special handling for ELF. Always read
5853 Thu Jun 16 17:25:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5855 * configure.in: Set UNDERSCORE in Makefile based on result of
5856 invoking config.bfd with a second argument of ``_''.
5857 * Makefile.in (underscore.c): Depend upon Makefile. Don't try to
5858 run $(CC) and $(NM), just use $(UNDERSCORE). Create via temporary
5860 (demangle.o): Remove target.
5861 ($(NM_PROG)): Don't depend upon demangle.o, and don't link against
5862 demangle.o. It's in libiberty anyhow.
5863 (cplus-dem.o): Don't depend upon demangle.o.
5864 * binutils.texi: Mention -n and --no-strip-underscores arguments
5867 Wed Jun 15 12:10:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5869 * nm.c (long_options): Add --no-demangle to turn off --demangle,
5870 and --no-cplus for Linux compatibility.
5871 (usage): Mention --no-demangle.
5872 * binutils.texi: Document --no-demangle.
5874 Fri Jun 10 15:41:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5876 * nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.
5878 * objcopy.c (copy_archive): Make the temporary directory in the
5879 same directory as the output BFD, since we may not have write
5880 permission on the current directory. Set the permissions of the
5881 new directory to 0700, not 0777.
5883 Mon Jun 6 21:36:43 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
5885 * configure.in: if this is an rs6000 (and we're not building for
5886 any other bfd targets) then build only nm (collect needs it on
5889 * Makefile.in: define TOOL_PROGS which the list of programes to
5890 install in $tooldir -- replaces a hard-coded list.
5892 Fri Jun 3 10:59:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5894 * objdump.c (display_target_list): Remove unused local ok.
5896 Thu May 26 18:05:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5898 * config/mh-alphaosf (CFLAGS): Don't specify both -g and -O;
5899 they're not compatible under native cc. Use -O1 instead.
5901 * Makefile.in (VERSION): Updated to cygnus-2.4.1.
5903 Changes from binutils-2.4 net release:
5905 * Makefile.in (MANPAGES): Use $(DEMANGLER_PROG).
5906 ($(DEMANGLER_PROG).1): Build from cxxfilt.man, using sed.
5907 * cxxfilt.man: Renamed from c++filt.1, replaced "c++filt" with
5908 magic token to be replaced by sed.
5910 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
5912 * configure.bat: update for latest makefile.in
5914 Fri May 13 23:25:13 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5916 * bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.
5918 Tue May 10 18:22:06 1994 Jason Molenda (crash@sendai.cygnus.com)
5920 * objcopy.c (copy_section): Set section size correctly if using
5923 Sat May 7 16:49:36 1994 Steve Chamberlain (sac@cygnus.com)
5925 * Makefile.in: Add rule for sysinfo.h
5927 Fri May 6 12:18:33 1994 Steve Chamberlain (sac@cygnus.com)
5929 * Makefile.in (SRCONV_PROG): Define.
5930 (PROGS): Use $(SRCONV_PROG) too.
5932 Thu May 5 19:41:43 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5934 * Makefile.in (DISTSTUFF): Add sysinfo.c, syslex.c, in case
5935 someone configures with `targets=all'.
5936 (distclean): Remove y.*.
5937 (syslex.o): Depend on sysinfo.h.
5938 (sysinfo.c): Rename y.tab.h to sysinfo.h.
5939 (install-info): Don't try to install into $(infodir)/$(srcdir).
5940 * syslex.l: Include sysinfo.h, not y.tab.h.
5942 Thu May 5 11:50:55 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
5944 * syslex.l (yywrap): Define as function if not defined as a macro.
5946 * Makefile.in (objdump.o): Deleted special rule.
5947 * configure.in: Don't bother building ARCHDEFS variable for
5949 * objdump.c (ARCH_*): Deleted handling.
5950 (disassemble_data): Call `disassembler' from opcodes library.
5952 Thu May 5 13:28:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5954 * Makefile.in (install): Correct handling of $(tooldir) and
5955 $(bindir) being on different devices.
5957 Fri Apr 29 09:50:38 1994 Steve Chamberlain (sac@cygnus.com)
5959 * sysdump.c (h8300, sh): Add declarations.
5961 Wed Apr 27 11:25:18 1994 Steve Chamberlain (sac@cygnus.com)
5963 * Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
5964 * coffdump.c, coffgroc.c, coffgrog.h, srconv.c, sysdump.c,
5965 sysroff.info: Major changes.
5967 Tue Apr 26 18:18:24 1994 Stan Shebs (shebs@andros.cygnus.com)
5969 * objdump.c (print_section_stabs): Indicate the stab header symbol
5970 more clearly, print numbers of unrecognized stab n_type values.
5972 Tue Apr 26 16:22:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5974 * nlmconv.c (copy_sections): Copy arelent pointers, not arelents.
5976 Mon Apr 25 16:14:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5978 * Makefile.in (distclean): Remove $(PROGS) and underscore.c.
5980 Fri Apr 22 11:14:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5982 * nlmconv.c (setup_sections): Remove special handling of .reginfo
5984 (copy_sections): Likewise.
5985 (alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the
5986 special ECOFF .reginfo section.
5988 * objcopy.c (copy_object): Call bfd_copy_private_bfd_data after
5989 copying everything else, to let it fiddle with the file in its
5992 * objdump.c: Include libiberty.h.
5993 (display_target_list): If a format fails, just go on to the next
5994 one. Check return value of bfd_set_format.
5995 (display_info_table): Likewise. Don't increment loop variable in
5996 for loop test, since that skips the first element.
5997 (display_target_tables): Rewrite loop for clarity. Ensure that it
5998 always prints at least one element.
6000 * nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs for
6001 sections header. Rename from cygnus_sections to cygnus_ext.
6003 Thu Apr 21 12:12:26 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6005 * objdump.c (_DUMMY_NAME_): Don't define.
6006 (display_target_list): Use tmpnam to get a file name rather than
6007 using _DUMMY_NAME_. Unlink it when done.
6008 (display_info_table): Likewise.
6010 * nlmconv.c (secsec): New static variable.
6011 (main): Create .nlmsections section in output BFD. Store
6012 information about it in sections header.
6013 (setup_sections): Allocate space in sections header.
6014 (copy_sections): Copy zero sized sections. Put information about
6015 each section in the sections header.
6017 Wed Apr 20 14:34:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6019 * nlmconv.c (powerpc_build_stubs): Take new outbfd argument.
6020 Change caller. Create custom header for new PowerPC NetWare
6023 * Makefile.in (nlmheader.o, nlmconv.o): Update dependencies.
6024 * nlmconv.c: Include bfd.h and libiberty.h with "", not <>.
6025 * nlmheader.y: Include bfd.h with "", not <>.
6027 Wed Apr 13 10:52:50 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6029 * objdump.c: Do an ifdef on __GO32__, not unix.
6031 Wed Apr 6 21:54:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6033 Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -R
6034 (--dynamic-reloc) arguments to objdump.
6035 * nm.c (dynamic): New static variable.
6036 (long_options): Added "dynamic".
6037 (usage): Mention -D and --dynamic.
6038 (main): Add D to getopt string. Handle -D by setting dynamic.
6039 (display_rel_file): If dynamic is non-zero, read dynamic symbols
6040 rather than normal symbols.
6041 * nm.1: Updated for -D (--dynamic) option.
6042 * objdump.c (dump_dynamic_symtab): New global variable.
6043 (dump_dynamic_reloc_info): New global variable.
6044 (dynsyms, dynsymcount): New global variables.
6045 (usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc.
6046 (long_options): Added "dynamic-reloc" and "dynamic-syms".
6047 (slurp_symtab): If no symbols, return rather than exit.
6048 (slurp_dynamic_symtab): New function.
6049 (display_bfd): Handle dump_dynamic_symtab and
6050 dump_dynamic_reloc_info.
6051 (dump_symbols): Take new dynamic argument, indicating whether to
6052 display dynamic symbols.
6053 (dump_relocs): Move most printing into dump_reloc_set.
6054 (dump_dynamic_relocs): New function.
6055 (dump_reloc_set): New function, extracted from dump_relocs.
6056 (main): Add R and T to getopt string. Handle -T by setting
6057 dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info.
6058 * objdump.1: Updated for -R (--dynamic-reloc) and -T
6059 (--dynamic-syms) options.
6060 * binutils.texi: Updated for new nm and objdump options.
6062 Wed Mar 30 15:52:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6064 Update for recent BFD changes to symbol and reloc reading. Rename
6065 all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound.
6067 * coffgrok.c (symcount): Change to long.
6068 (do_sections_p1): Check for error return from
6069 bfd_get_reloc_upper_bound. Change relcount to long, and check for
6070 error from bfd_canonicalize_reloc.
6071 (coff_grok): Change storage to long. Check for error from
6072 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
6073 * nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and
6074 i to long. Check for error from bfd_get_symtab_upper_bound and
6075 bfd_canonicalize_symtab.
6076 (copy_sections): Change reloc_size and reloc_count to long. Check
6077 for error from bfd_get_reloc_upper_bound and
6078 bfd_canonicalize_reloc.
6079 (mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change
6080 reloc_count_ptr argument to long *. Make corresponding changes to
6081 variables loaded from *reloc_count_ptr.
6082 * nm.c (display_rel_file): Change storage and symcount to long.
6083 Check for errors from bfd_get_symtab_upper_bound and
6084 bfd_canonicalize_symtab.
6085 * objcopy.c (filter_symbols): Change symcount, src_count and
6087 (copy_object): Change symcount to long. Pass another argument to
6088 fprintf. Check for errors from bfd_get_symtab_upper_bound and
6089 bfd_canonicalize_symtab.
6090 (copy_section): Change relcount to long. Check for errors from
6091 bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
6092 (mark_symbols_used_in_relocations): Change relcount and i to long.
6093 Check for errors form bfd_get_reloc_upper_bound and
6094 bfd_canonicalize_reloc.
6095 * objdump.c (storage): Remove global variable.
6096 (symcount): Changed to long.
6097 (slurp_symtab): New local variable storage. Check for errors from
6098 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
6099 (remove_useless_symbols): Change return value and count to long.
6100 (objdump_print_address): Change min, max, thisplace and i to long.
6101 (disassemble_data): Change i to long.
6102 (dump_symbols): Change count to long.
6103 (dump_relocs): Change relcount to long. Check for errors from
6104 bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc.
6105 (display_info_table): Add casts when passing LONGEST_ARCH for
6108 Tue Mar 29 14:59:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6110 * nm.c (display_archive): Close each archive element after it has
6112 * objdump.c (display_file): Likewise.
6114 Mon Mar 28 13:04:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6116 * configure.in: Change error message to refer to bfd/config.bfd
6117 rather than bfd/configure.in.
6119 Sun Mar 27 16:23:39 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
6121 * More fixes for object formats which allow multiple sections
6123 * objcopy.c (setup_section): Make a new output section even if
6124 one already exists with the given name.
6125 (copy_section): Use isection->output_section rather than trying
6126 to look the output section up by its (possibly non-unique) name.
6128 * Makefile.in (install-info): Look for binutils.info in the
6129 current directory, then in $(srcdir). Don't use $<.
6131 Mon Mar 21 12:55:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6133 * objdump.c (objdump_print_address): Make static. Declare with
6134 prototype. Change vardiff from int to bfd_signed_vma. Correct
6135 binary search termination condition. When looking for same
6136 section symbol in relocatable file, handle final symbol correctly.
6138 Sun Mar 20 11:26:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
6140 * Makefile.in: Avoid bug in hpux sed.
6142 * objcopy.c: Changes to keep it from stripping symbols used
6143 in output relocations.
6144 (mark_symbols_used_in_relocations): New function. Mark symbols
6145 used in output relocations with BSF_KEEP.
6146 (filter_symbols): Do not strip symbols marked with BSF_KEEP.
6147 (copy_object): Reorder actions. First setup sections, then
6148 build the output symbol table, then copy the section contents.
6150 Fri Mar 18 10:53:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6152 * ar.c (write_archive): Allocate space for the null byte. From
6153 Robert Lipe <robertl@arnet.com>.
6155 Thu Mar 17 16:20:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6157 * Makefile.in: Built nm.new and strip.new to avoid problems with
6158 collect when . is in PATH.
6159 (STRIP_PROG): Change from strip to strip.new.
6160 (NM_PROG): Change from nm to nm.new.
6161 (install): Remove the .new when installing.
6163 Wed Mar 16 16:27:05 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6165 * nlmconv.c (powerpc_build_stubs): Set BSF_DYNAMIC flag for each
6166 symbol for which we build a stub.
6167 (powerpc_mangle_relocs): Only reset TOC pointer for a call to a
6168 symbol with BSF_DYNAMIC flag set.
6170 Tue Mar 15 23:04:13 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
6172 * objcopy.c (filter_symbols): Use bfd_is_local_label to determine
6173 if a symbol represents a compiler-generated local label.
6174 (copy_object): Give the BFD backends a chance to copy any private
6175 bfd data from the input BFD to the output BFD.
6176 (setup_section): Give the BFD backends a chance to copy any private
6177 section data from the input section to the output section.
6179 Mon Mar 14 11:15:58 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
6181 * objcopy.c (mangle_section): Delete unused function.
6182 (setup_section): Set osection here instead of calling
6183 mangle section to do it.
6185 Mon Mar 14 12:11:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6187 * ar.c (write_archive): Close inarch before unlinking it.
6189 Fri Mar 11 22:20:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6191 * nlmconv.c (main): For PowerPC, call powerpc_build_stubs and
6192 powerpc_resolve_stubs. Use __GOT0, not __toc_start. Handle it if
6193 the start and end symbols are not in the text section.
6194 (struct powerpc_stub): New struct definition.
6195 (powerpc_stubs, powerpc_stub_insns): New static variables.
6196 (powerpc_initial_got_size): New static variable.
6197 (powerpc_build_stubs): New function.
6198 (powerpc_resolve_stubs): New function.
6199 (powerpc_mangle_relocs): Clear extraneous data in .got section.
6200 Rearrange reloc handling to handle ELF relocs that are not
6201 partial_inplace. Resolve PC relative relocs.
6203 Wed Mar 9 13:48:11 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6205 * ar.c (move_members): Fix it so that the abi positional modifiers
6206 don't delete all archive members following the insert point.
6208 Tue Mar 8 13:14:43 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6210 * coffgrok.[ch]: New files, understand coff objects.
6211 * coffdump.c: Uses coffgrok to dump out the debug info of a coff
6213 * sysroff.info: Description of a SYSROFF object file.
6214 * sysinfo.y, syslex.l: Parse info file, generate a reader, writer,
6215 header files and a printer.
6216 * srconv.c: Uses coffgrok.c and sysroff.info to convert a coff
6217 file to a SYSROFF file.
6219 Sat Feb 26 13:35:26 1994 Stan Shebs (shebs@andros.cygnus.com)
6221 * ar.c (do_quick_append): Pad with a genuine character 10,
6222 rather than whatever '\n' might happen to be.
6224 Tue Feb 22 18:25:52 1994 Ian Lance Taylor (ian@cygnus.com)
6226 * nlmconv.c (main): Ignore debugging symbols when looking for
6227 special symbols by name.
6229 Sun Feb 20 18:47:42 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
6231 * nlmconv.c: Include libiberty.h.
6233 Support for PowerPC NetWare.
6234 * nlmconv.c (main): For PowerPC NetWare, automatically define the
6235 special symbols __toc_start.
6236 (select_output_format): Handle bfd_arch_powerpc.
6237 (mangle_relocs): Likewise.
6238 (powerpc_mangle_relocs): New function.
6240 Thu Feb 17 09:28:23 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6242 * ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
6243 size.c: Use bfd_get_error and bfd_set_error and new error names.
6245 Fri Feb 11 15:54:51 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6247 * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
6249 Mon Feb 7 19:45:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6251 * objdump.c (disassemble_data): Handle bfd_arch_powerpc.
6253 Sun Feb 6 22:08:20 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6255 * strings.c objdump.c nlmconv.c objcopy.c nm.c ar.c size.c (main):
6256 Call xmalloc_set_program_name.
6258 Fri Feb 4 10:46:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6260 * objcopy.c (filter_bytes): Make MEMHUNK a char *, not PTR, so we
6261 can do arithmetic on it.
6263 Thu Feb 3 14:06:41 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6265 * objdump.c (dump_section_stabs, read_section_stabs,
6266 print_section_stabs): Functions broken out of dump_stabs_1.
6267 Free the stabs and strings when done with them.
6269 Wed Feb 2 13:42:23 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6271 * nlmconv.c (main): Use bfd_get_flavour instead of struct member.
6272 * ar.c (print_contents, extract_file), size.c
6273 (print_berkeley_format, print_sysv_format): Use bfd_get_filename and
6274 bfd_my_archive instead of dereferencing the structs directly.
6276 * ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.
6277 Indent. Remove DEFUNs.
6279 * nlmconv.c (main), objcopy.c (copy_file): Print matching formats
6281 * nm.c (display_file, display_archive), size.c (display_bfd):
6283 Print matching formats if there is an ambiguous match. Use
6284 bfd_nonfatal instead of hardcoded error message if nothing matches.
6286 * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of
6289 * nm.c (display_archive): New function, from code in display_file.
6290 (display_rel_file): Renamed from do_one_rel_file.
6293 (display_archive): New function from code in display_file.
6294 (display_file): Check bfd_close error return.
6296 * strings.c (strings_object_file): Check bfd_check_format
6299 * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror.
6301 * bucomm.c: Delete references to exit_handler. It wasn't set
6302 anywhere, and now that we're using the libiberty xmalloc, it
6303 wouldn't always get called before exiting.
6304 (list_matching_formats): Function moved from objdump.c.
6305 * bucomm.h: Declare it.
6307 * objdump.c (disassemble_data): Move some variable decls closer to
6308 their use. Add some comments. Replace a nested block with a
6311 Mon Jan 31 18:50:41 1994 Stan Shebs (shebs@andros.cygnus.com)
6313 * objdump.c (display_target_list, display_info_table): Check that
6314 the bfd of the dummy output file is not null.
6316 Wed Jan 26 13:13:18 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6318 * objcopy.c (filter_bytes): New function.
6319 (copy_section): Call it.
6320 (copy_options, copy_usage, copy_main): Add --byte option to
6321 activate it. Appropriate the -b option (which was an undocumented
6322 synonym for -F) for it, also. Add --interleave, -i option for
6324 (setup_section, copy_section, mangle_section): Renamed with no `s'
6326 * objcopy.1, binutils.texi: Document the new options.
6328 * objdump.c (display_target_tables, display_target_list):
6329 New functions broken out of display_info.
6330 Eliminate some magic constants. Use more meaningful variable names.
6331 (dump_bfd_header): New function broken out of display_bfd.
6332 (dump_section_header): New function broken out of dump_headers.
6333 (remove_useless_symbols): Don't shadow global variable name with
6335 (objdump_print_address): Fix backward test.
6337 Tue Jan 25 19:40:54 1994 Stan Shebs (shebs@andros.cygnus.com)
6339 * bucomm.c (print_arelt_descr): Change decl of `when' to time_t.
6340 * objdump.h: Removed.
6342 Mon Jan 24 13:29:02 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6344 * objdump.c (display_file): Remove call to list_matching_formats.
6345 It would never be called.
6346 (list_matching_formats): Take an arg giving the list of matching
6348 (display_bfd): Pass the arg, and get it filled in by calling
6349 bfd_check_format_matches instead of bfd_check_format.
6350 (display_info, display_info_table): target_vector was renamed to
6353 * binutils.texi (objdump): Note some limitations of -h section
6356 Sat Jan 22 16:20:46 1994 Stan Shebs (shebs@andros.cygnus.com)
6358 * Makefile.in (MALLOC): Set to emptiness by default.
6359 (ALL_CFLAGS): Add and use.
6360 (arparse.h): Make it depend on arparse.y.
6361 * ar.c (libbfd.h): Don't require to be in ../bfd.
6362 * objdump.c (comp): Rename to compare_symbols.
6364 Fri Jan 21 20:22:30 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6366 * objdump.c (list_matching_formats): If the file format is ambiguous,
6367 print the matching names so the user can choose one.
6368 (display_bfd): Call it.
6369 (display_file): Call it.
6371 Fri Jan 21 19:17:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6373 * objdump.c (disassemble_data): Support bfd_arch_rs6000.
6375 Mon Jan 17 13:57:25 1994 Stan Shebs (shebs@andros.cygnus.com)
6377 * objdump.c (stab_name): Allocate dynamically.
6378 (stab_print): Use pointers to strings instead of char arrays.
6379 (dump_stabs): Change alloc and init of arrays appropriately.
6380 (dump_stabs_1): Always decide whether to print stab_name or
6381 the stab's type number, if unnamed.
6383 Fri Jan 14 14:42:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6385 * objcopy.c (strip_main, copy_main): Don't clobber the input file
6388 * nlmconv.c (main): Warn about an attempt to use a shared library
6389 with uninitialized data.
6391 * nlmconv.c (setup_sections): Make sure that we align the
6392 output_offset of each input section appropriately.
6394 Thu Jan 13 17:32:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6396 * objdump.c (dump_relocs): Don't crash if section name is NULL.
6398 Tue Jan 11 19:46:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6400 * filemode.c (filemodestring): Commented out; not used.
6401 (mode_string): Use POSIX definitions.
6402 (ftypelet): Likewise.
6403 (rwx): Removed; no longer used.
6404 * bucomm.c: Include bucomm.h.
6405 (bfd_nonfatal, bfd_fatal): Argument is const.
6406 (fatal): Make __STDC__ version.
6407 * bucomm.h (mode_string): Declare.
6408 * Makefile.in (bucomm.o): Depend upon bucomm.h
6410 Sun Jan 9 12:03:20 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
6412 * bucomm.c (xmalloc, xrealloc): Deleted.
6413 * bucomm.h (xmalloc, xrealloc): Fix prototypes, to correspond to
6414 libiberty version of functions.
6416 Thu Jan 6 06:18:15 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6418 * binutils.texi: Add a chapter summarizing the ways to select
6419 aspects of the target for each program.
6421 * objdump.c (long_options, usage): Add long equivalents for all
6422 remaining short options that lacked them.
6423 * binutils.texi objdump.1: Document them.
6425 * size.c (usage): Tweak usage message.
6426 * size.1: Add missing `=' in examples.
6428 * binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c:
6429 Use "--target=bfdname" as the option to select the BFD target,
6430 like nm and size already do.
6431 Reserve "--format=format" for textual output selection options, but
6432 for now keep old option names as obsolete for backward compatibility.
6434 * strings.c (main, strings_object_file, usage): Add --target option.
6435 * binutils.texi strings.1: Document it.
6437 Sat Jan 1 13:58:24 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6439 * ar.c (main): Add \n in error message.
6441 Thu Dec 23 12:23:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6444 * ar.c (main): Put parens around assignment used as truth value.
6445 * objcopy.c (strip_main): Remove unused variables. Return 0.
6446 (copy_main): Remove unused variables. Return 0.
6447 * objdump.c (display_bfd): Declare return value as void.
6448 (stab_print): Use "" instead of 0 to initialize array.
6449 (dump_stabs_1): Print vma using printf_vma.
6450 (display_info): Put parens around assignment used as truth value.
6451 * strings.c (print_strings): Cast printf arguments.
6453 * objcopy.c (copy_main): Use copy_options, not strip_options.
6455 * nlmheader.y (command): Warn about illegal date values.
6457 Wed Dec 15 11:18:03 1993 David J. MacKenzie (djm@frosty.eng.umd.edu)
6459 * bucomm.c bucomm.h: Run through indent. De-ansidecl-ify.
6460 (bfd_nonfatal): New function.
6461 (bfd_fatal): Call it.
6463 * objcopy.c (smart_rename): Do a copy if the dest file has
6464 multiple hard links. Remove source file on successful copy.
6465 Try to preserve mode and owner on successful rename.
6467 * objcopy.c: Run through indent. Clean up a bit.
6468 Make global variables static.
6469 Make {input,output}_{target,filename}, show_version local
6470 to various functions.
6471 New global variable `status' for exit status.
6472 (strip_main, copy_main): New functions with code from main.
6473 (nonfatal): New macro. Use it globally instead of bfd_perror and
6476 (copy_object): Call mangle_sections with bfd_map_over_sections.
6477 (mangle_sections): Adjust for new calling convention.
6479 Fri Dec 10 11:28:11 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
6481 * nlmheader.y (command): Accept MAP and FULLMAP without arguments.
6482 * nlmconv.c (main): Change error message for MAP and FULLMAP.
6484 Thu Dec 9 17:47:19 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
6486 * nlmconv.c (main): Warn about imported symbols that are not in
6487 the IMPORT list even if the IMPORT keyword is not used.
6489 * nlmconv.c (debug, unlink_on_exit): New static variables.
6490 (long_options): Add "debug" and "linker".
6491 (main): Handle -d and -l arguments. Make command line input and
6492 output files optional. Parse the command file before opening the
6493 BFD's, which requires storing more information in local variables.
6494 If INPUT names multiple files, link them together. Use OUTPUT for
6495 the output file name if not named on command line.
6496 (show_usage): Changed for new options.
6497 (link_inputs): New function to automatically invoke linker to
6498 handle multiple INPUT files.
6499 (choose_temp_base_try, choose_temp_base, pexecute): New functions,
6500 mostly copied from gcc/gcc.c.
6501 * nlmconv.h (input_files, output_file): Declare.
6502 * nlmheader.y (input_files, output_file): Define.
6503 (command): Support INPUT with a string_list argument. Support
6505 (string_list): Renamed from module_list.
6506 * Makefile.in (nlmconv.o): Define LD_NAME based on
6507 program_transform_name.
6509 Wed Dec 8 10:09:04 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
6511 * nlmheader.y (nlmheader_identify): New function. Use it to print
6512 the program name just once, instead of with every error message.
6514 Mon Dec 6 16:11:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6516 * nlmconv.c (long_options): Changed --header-info to --header-file
6517 to match documentation and usage message.
6519 Sun Dec 5 01:31:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6521 * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
6524 Thu Dec 2 16:00:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6526 * nlmconv.c (main): Change various types from bfd_size_type to
6527 size_t, since they have to be arguments to fread and fwrite.
6528 Change set from char * to unsigned char *.
6529 (select_output_format): Make mach argument unsigned. Handle
6531 (setup_sections): Don't copy the .reginfo section of an ECOFF
6532 file. Call bfd_set_reloc to initialize the relocation fields.
6533 (copy_sections): Don't copy the .reginfo section of an ECOFF file.
6534 Combine all relocs for a section.
6535 (mangle_relocs): Change type of relocs to permit specific
6536 functions to change it. Call alpha_mangle_relocs for alpha,
6537 default_mangle_relocs for other architectures.
6538 (default_mangle_relocs): New function. Adjust the address of all
6539 relocs by the output_offset.
6540 (i386_mangle_relocs): Change type of relocs argument. Cast length
6541 argument to memmove to size_t.
6542 (alpha_mangle_relocs): New function.
6544 Wed Nov 17 17:38:58 1993 Sean Eric Fagan (sef@cygnus.com)
6546 * nlmconv.c (select_output_format): Use nlm32-sparc for
6549 Wed Nov 17 14:41:35 1993 Jeffrey Osier (jeffrey@thepub.cygnus.com)
6551 * nlmconv.1: added man page
6552 * objcopy.1: fixed format errors
6554 Wed Nov 17 12:03:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6556 * Makefile.in: Use CFLAGS as well as LDFLAGS when linking.
6558 Wed Nov 17 04:50:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6560 * strings.1: Fix typo.
6562 Mon Nov 15 12:03:20 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
6564 * Makefile.in (DISTSTUFF): Build "info".
6565 (VERSION): Updated to cygnus-2.3.1; 2.3 has gone out.
6567 Sun Nov 14 00:27:24 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
6569 * objdump.c (dump_stabs): Handle stabs-in-som as implemented
6570 by the new BFD SOM assembler.
6572 Sat Nov 13 07:14:05 1993 David J. Mackenzie (djm@rtl.cygnus.com)
6574 * ar.1 c++filt.1 nm.1 objcopy.1 objdump.1 ranlib.1 size.1
6575 strings.1 strip.1: Replace \(em in NAME section with \- so
6576 makewhatis can grok it.
6578 Tue Nov 9 15:22:12 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6580 * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
6581 section output_offset.
6583 Fri Nov 5 12:11:52 1993 Jeffrey Osier (jeffrey@thepub.cygnus.com)
6585 * binutils.texi: added nlmconv chapter
6587 Wed Nov 3 16:10:50 1993 Jeffrey Wheat (cassidy@cygnus.com)
6589 * Makefile.in: Change RUNTESTFLAGS to RUNTEST_FLAGS
6591 Wed Nov 3 15:09:23 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6593 * Makefile.in (distclean): Don't get rid of dvi or info files.
6595 Tue Nov 2 13:29:59 1993 David J. Mackenzie (djm@rtl.cygnus.com)
6597 * objcopy.c (S_ISLNK): Define as 0 if there's no S_IFLNK.
6599 Fri Oct 29 16:02:34 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6601 * binutils.texi: Move objcopy docs into alphabetical order.
6603 * objdump.c: Use xmalloc instead of malloc.
6605 Fri Oct 29 11:11:14 1993 Stan Shebs (shebs@rtl.cygnus.com)
6607 * objdump.c (info): Rename to formats_info.
6608 (dump_stabs_1): Better comments and formatting.
6610 Thu Oct 28 19:43:16 1993 Stan Shebs (shebs@rtl.cygnus.com)
6612 * ar.c (main): Always create the archive when quick appending,
6613 even if no input files have been given.
6615 Wed Oct 27 12:03:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6617 * nlmconv.c (main): Set sharedDebugRecordOffset and
6618 sharedDebugRecordCount fields in extended header.
6620 * nlmconv.c (main): Force moduleName field to upper case.
6622 Mon Oct 25 16:45:42 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6624 * objcopy.c (main): Give a usage message if there are too many
6627 Mon Oct 25 10:37:08 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6629 * Makefile.in (install-info): Rewrite to take advantage of VPATH,
6630 so FSF distributions (with info files in $(srcdir)) install
6632 (DISTSTUFF): Build nlmheader.c too.
6634 Fri Oct 22 11:43:23 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6636 * ar.c (program_name): Don't define here.
6637 * objdump.c: Include "bucomm.h".
6638 (xmalloc): Don't declare here.
6639 (program_name): Don't define here.
6640 (program_version): Fixed type in declaration.
6641 * size.c: Include "bucomm.h".
6642 (program_name): Don't declare here.
6644 Fri Oct 22 14:10:41 1993 Mark Eichin (eichin@cygnus.com)
6646 * objdump.c (fprintf): hide declaration in FPRINTF_ALREADY_DECLARED
6648 Fri Oct 1 12:43:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6650 * nlmconv.c (i386_mangle_relocs): Resolve and remove PC relative
6651 relocs against defined symbols in the same section.
6653 Thu Sep 30 16:46:26 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
6655 * Makefile.in (binutils.dvi): use TEXIDIR to find texinfo.tex
6657 Sat Sep 25 18:09:29 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6659 * objcopy.c (simple_copy, smart_rename): New functions.
6662 Fri Sep 24 15:38:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6664 * Makefile.in (clean, distclean): Recurse into testsuite.
6666 Thu Sep 23 01:05:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6668 * objcopy.c (setup_sections, copy_sections): If stripping, don't
6669 copy SEC_DEBUGGING sections.
6670 * objdump.c (dump_headers): Print SEC_DEBUGGING flag.
6672 * objdump.c (usage): Mention --stabs.
6674 * objcopy.c (copy_object): Copy all applicable file flags.
6675 (copy_file): Don't copy EXEC_P specially here.
6677 Mon Sep 20 19:28:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6679 * nlmconv.c (main): Adjust data section size to correspond to bss
6680 alignment adjustment. Clear BSF_SECTION_SYM if symbol is moved to
6681 a different section. Use time_t for time variable.
6682 (setup_sections): Only put sections with contents in output NLM.
6683 (i386_mangle_relocs): No symbols are common at this point. Add
6684 casts to avoid warnings.
6686 Fri Sep 10 11:00:40 1993 Stan Shebs (shebs@rtl.cygnus.com)
6688 * objdump.c: Made the --stabs option work for stabs-in-coff.
6689 (ELF_STAB_DISPLAY): Removed.
6690 (dump_elf_stabs): Renamed to dump_stabs, changed to run for
6691 any object file format.
6692 (dump_elf_stabs_1): Renamed to dump_stabs_1, added calls to
6693 generic BFD routines for non-ELF case, changed format of message
6694 for no-section-found case.
6695 (display_bfd): Always call dump_stabs if requested.
6696 (dump_data): Call bfd_section_size to get section size.
6698 Fri Sep 10 08:12:23 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6700 * Makefile.in (install): Don't put strings in tooldir/bin.
6702 Mon Sep 6 15:39:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6704 * nlmconv.c (total_bss_size): Removed.
6705 (main): Set the bss vma to always follow the data section. Move
6706 symbols into new sections, and adjust values by output_offset.
6707 (setup_sections): Don't copy all sections, but instead point all
6708 text sections to .text, all data sections to .data, and all bss
6710 (copy_sections): Adjust accordingly.
6712 Thu Sep 2 12:34:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6714 Only build nlmconv if configured for a NetWare target.
6715 * configure.in: If we have some *-*-netware* target, or are using
6716 all targets, set BUILD_NLMCONV to $(NLMCONV_PROG) in Makefile.
6717 * Makefile.in (PROGS): Use $(BUILD_NLMCONV) rather than
6720 Tue Aug 31 14:13:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6722 * objdump.c (ARCH_all): Define ARCH_hppa too.
6723 (dump_headers): Don't test for SEC_BALIGN if it's not defined by
6726 Tue Aug 31 13:29:12 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6728 * nlmconv.c (main): Force creation of .bss section. Set up the
6729 sections before looking at the symbols. Move all common symbols
6730 into .bss section. Automatically define _edata and _end. Only
6731 export symbols in the export list, with multiple prefixes if
6732 necessary. Warn if no version. Always create extended header.
6733 Set date automatically if not already set.
6734 (setup_sections): Count size of bss sections.
6735 (mangle_relocs, i386_mangle_relocs): Accept section argument, and
6736 take reloc_count as a changeable pointer; changed callers.
6737 (i386_mangle_relocs): Remove PC relative relocs within a section,
6738 as they require no adjustment.
6739 * nlmheader.y: Fixed memory allocation throughout: token STRING is
6740 now allocated on the heap, and freed if not needed. Null
6741 terminated copyright message. Accept version with only two
6743 (symbol_list_opt): New nonterminal, either symbol_list or empty.
6744 (symbol_list): Use left recursion to avoid overflowing parser
6746 (yylex): Rearranged beginning of line check. Accept quoted
6747 strings using single quotes. End generic argument at comment
6748 character or parentheses.
6749 (string_list_append): Fixed.
6750 (string_list_append1): New function.
6752 * bucomm.h: The first argument to xrealloc is PTR, not char *.
6753 * bucomm.c (xrealloc): Use PTR rather than char *.
6754 * Makefile.in (objdump.o): Depend upon config.status to notice
6755 --with-targets changes.
6756 (nlmconv.o): Depend upon bucomm.h.
6758 Tue Aug 17 09:46:01 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6760 * configure.in: Don't pass cpu to config.bfd.
6762 Thu Aug 12 16:43:04 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6764 * Makefile.in ($(NM_PROG)): Depend on demangle.o.
6765 (demangle.o): New target.
6766 (cplus-dem.o): Depend on it, to force compilation order when doing
6769 * nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
6770 (struct output_fns print_symbol_info): Ditto.
6771 (long_options, usage, main): Add -C --demangle option.
6772 (print_symname): New function, demangling if requested.
6773 (print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
6775 Wed Aug 11 22:57:23 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6777 * Makefile.in: Put CFLAGS last in compilation rules and omit from
6778 linking rules. Use ARCHDEFS to compile objdump.c.
6779 Update dependencies.
6780 * configure.in: Construct ARCHDEFS based on the BFD target makefile
6782 * objdump.c: Conditionalize calls to the print_insn_ARCH functions
6783 according to ARCHDEFS.
6785 Thu Aug 12 08:06:15 1993 Ian Lance Taylor (ian@cygnus.com)
6787 * ar.c: Removed obsolete and non-functional GNU960 code.
6789 Wed Aug 11 13:08:26 1993 Ian Lance Taylor (ian@cygnus.com)
6791 * size.c (berkeley_sum): New function.
6792 (bsssize, datasize, textsize): New global variables.
6793 (bss_section_name, data_section_name, text_section_name): Removed.
6794 (print_berkeley_format): Map berkeley_sum over all the sections,
6795 rather than only reporting sizes of specifically named sections.
6796 * Makefile.in ($(OBJDUMP_PROG)): Removed dependency on size.o.
6798 Tue Aug 10 10:46:01 1993 Ian Lance Taylor (ian@cygnus.com)
6800 * nlmconv.c, nlmconv.h, nlmheader.y: New files for program to
6801 convert object files into NetWare Loadable Modules.
6802 * Makefile.in (NLMCONV_PROG): New macro, define to be nlmconv.
6803 (PROGS): Add NLMCONV_PROG.
6804 (nlmheader.c, nlmheader.o, nlmconv.o, $(NLMCONV_PROG)): New
6807 Thu Aug 5 15:48:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6809 * Makefile.in: define MAKEOVERRIDES to an empty string
6811 Wed Aug 4 17:08:08 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6813 * objcopy.c (copy_file): Make failures to process a file nonfatal.
6815 Mon Aug 2 11:28:23 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6817 * nm.c: Add -B option, like --format=bsd.
6819 Tue Jul 27 16:29:54 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6821 * objcopy.c (copy_file): If the file is neither an object nor an
6822 archive, give an error rather than returning success.
6824 Mon Jul 19 16:13:40 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
6826 * objdump.c (objdump_print_address): Prefer non-local symbols over
6827 local ones, and especially discriminate against debugging symbols.
6828 Also, for relocateable files, try to find a symbol in the current
6829 section, instead of picking one from some random section with a
6830 convenient value (read, section offset).
6831 (disassemble_data): Cast argument to malloc to size_t first.
6832 (dump_data): Likewise.
6833 (dump_relocs): If a single section name is specified, show relocs
6834 only for that section. Otherwise, silently omit sections without
6835 relocs. Format table nicely even if values are printed using 16
6836 digits instead of 8.
6838 Fri Jul 16 15:19:59 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6840 * nm.c: Changes for final version of POSIX.2.
6841 (print_symbol_filename_{bsd,sysv,posix}): New functions.
6842 (formats): Add an element for a pointer to them.
6843 (print_symbols): Call it.
6844 (print_object_filename_posix, print_archive_member_posix): Produce
6845 output according to new POSIX.2 spec.
6847 * strings.c (print_strings): Handle STREAM being NULL.
6848 (strings_a_section): Pass a NULL.
6849 (main): Don't open /dev/null.
6851 Thu Jul 15 12:44:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6853 * objdump.c (disassemble_data): Handle the m88k.
6854 (display_bfd): Use bfd_errmsg, rather than just claiming that the
6855 bfd is not an object file.
6857 Mon Jul 12 17:55:34 1993 K. Richard Pixley (rich@cygnus.com)
6859 * Makefile.in (TAGS): make work again by naming directories
6860 explicitly rather than depending on undefined macros.
6861 (INSTALL_XFORM): correct bad install target.
6863 Fri Jul 2 16:58:34 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6865 * strings.c: Doc fixes.
6867 Sun Jun 27 13:35:24 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6869 * Makefile.in: Note dependencies on bucomm.h.
6870 (cplus-dem.o): Link c++filt with version.o.
6872 * strings.c: Include bucomm.h and add prototypes to other decls.
6875 * bucomm.h: Declare xrealloc.
6877 * nm.c, objcopy.c, objdump.c, size.c, strings.c (main, usage): Add
6878 --help option. Put "GNU" in the version message.
6879 (usage): Take stream and exit status as args.
6880 (main): Pass new args to usage.
6882 Fri Jun 25 23:12:12 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6884 * strings.c, strings.1: New files.
6885 * binutils.texi: Document strings.
6886 * Makefile.in: Add rules for it.
6888 Fri Jun 25 20:44:43 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
6890 * objdump.c: Use size-independent bfd elf section names.
6892 Sun Jun 20 23:09:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
6894 * objdump.c (objdump_print_address): Handle wide offsets by
6895 calling sprintf_vma.
6897 Fri Jun 18 14:29:12 1993 Per Bothner (bothner@deneb.cygnus.com)
6899 * objdump.c (syms2): Removed unused variable.
6900 * objdump.c (remove_useless_symbols): New function.
6901 * objdump.c (comp): Simplify.
6902 * objdump.c (dis-assemble_data): Make simpler and more
6903 efficient how we filter out useless symbols: Just filter
6904 BEFORE the sort (using remove_useless_symbols).
6905 * objdump.c (objdump_print_address): Simplify.
6906 Change output syntax to match gdb.
6908 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
6910 * Makefile.in: canonicalize install.sh; for use within
6911 this directory (and subdirs)
6913 Mon Jun 14 12:13:22 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
6915 * Makefile.in (install, install-info): remove parentdir support,
6916 use INSTALL_XFORM; define INSTALL_XFORM
6918 Thu Jun 10 17:29:21 1993 Per Bothner (bothner@cygnus.com)
6920 * objcopy.c (copy_object): Fix bad size passed to xmalloc().
6922 Mon Jun 7 12:41:12 1993 Per Bothner (bothner@rtl.cygnus.com)
6924 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
6925 * configure.in: No longer need to configure to get sysdep.h.
6926 * objcopy.c (copy_object): Fix symbol table handling.
6928 Fri Jun 4 17:20:03 1993 Per Bothner (bothner@cygnus.com)
6930 * objcopy.c (filter_symbols): Cannot filter the symbols
6931 in place, because that confuses the relocs, so take separate
6932 parameter for output array.
6933 * objcopy.c (sympp): Make two variables: isympp and osympp.
6934 * objcopy.c (copy_object): Allocate separate array (osympp)
6935 for filtered symbols.
6937 Fri Jun 4 10:51:44 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6939 * Makefile.in: change recursion test to presence of a configured
6942 Thu Jun 3 14:05:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6944 * Makefile.in (underscore.c): Hack the backquoted command so it
6945 doesn't cause Solaris make to bomb.
6947 Thu Jun 3 10:40:19 1993 Jeffrey Osier (jeffrey@cygnus.com)
6949 * Makefile.in: added c++filt and objcopy to MANPAGES variable
6951 Thu Jun 3 00:32:52 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6953 * Makefile.in: rename LOADLIBES to EXTRALIBS
6955 Wed Jun 2 18:30:24 1993 Jeffrey Osier (jeffrey@cygnus.com)
6957 * c++filt.1, objcopy.1: new man pages
6959 Fri May 28 15:01:24 1993 Per Bothner (bothner@rtl.cygnus.com)
6961 * Makefile.in (install): Also install ar and ranlib in
6962 $(tooldir)/bin; needed for building libgcc.a.
6963 * objdump.c (objdump_print_address): Fix the check
6964 "coincidental" label matches by dis-allowing undefined
6967 Thu May 27 16:58:31 1993 Jeffrey Osier (jeffrey@cygnus.com)
6969 * biutils.texi: revised c++filt chapter
6971 Wed May 26 17:24:17 1993 Ian Lance Taylor (ian@cygnus.com)
6973 * Makefile.in (FLAGS_TO_PASS): Pass down CC and CFLAGS.
6975 Tue May 25 00:26:47 1993 Ken Raeburn (raeburn@cygnus.com)
6977 * objdump.c (slurp_symtab): Print warning for bad symbol table.
6978 (bfd_elf32_find_section, Elf32_Internal_Shdr): Updated
6979 declarations and uses.
6981 * Makefile.in (DISTSTUFF): Don't build binutils.mm.
6983 Fri May 21 10:51:19 1993 David J. Mackenzie (djm@rtl.cygnus.com)
6985 * nm.c: Add -f/--format, -P/--portability, -t/--radix options.
6986 Make global variables static.
6987 (main): Make -v like -n, not -V, and make -A like -o, for POSIX.2.
6988 (set_print_radix, set_output_format,
6989 print_{object_filename,archive_filename,archive_member,symbol_info}
6990 {bsd,sysv,posix}): New functions.
6991 (display_file, print_symbols): Call them.
6993 * ar.c: Improve error messages.
6995 * nm.c (main): Handle long options that just set a flag.
6997 * nm.c (main), ar.c (do_show_version), objcopy.c (main), size.c
6998 (main): Exit after printing the version number, per the GNU coding
7001 Mon May 17 13:20:25 1993 Per Bothner (bothner@cygnus.com)
7003 * README, Makefile.in: Minor updates for 2.2.
7005 Fri May 14 11:12:26 1993 Per Bothner (bothner@cygnus.com)
7007 * Makefile.in (underscore.c): Automatically generate
7008 (using nm) a file with the variable prepends_underscore.
7009 * Makefile.in (c++filt): Link underscore.o with cplus-dem.o
7010 so that initial underscores get removed iff appropriate.
7011 * binutils.texi: Preliminary documentation for c++filt.
7012 * Makefile.in, binutils.texi: Set to version 2.2.
7014 * NEWS: Mention copy->objcopy renaming and new c++filt program.
7016 Wed May 12 12:05:36 1993 Ian Lance Taylor (ian@cygnus.com)
7018 * Makefile.in (cplus-dem.o, $(DEMANGLER_PROG)): Build the
7019 demangler via cplus-dem.o, rather than directly from the .c file.
7021 * objcopy.c: Renamed from copy.c, updated comments accordingly.
7022 * Makefile.in, binutils.texi: Renamed copy to objcopy.
7023 * is-strip.c, maybe-strip.c, not-strip.c: Updated comments for
7024 rename of copy to objcopy.
7026 Mon May 10 17:20:18 1993 Per Bothner (bothner@cygnus.com)
7028 * binutils.texi (strip, -v option): Fix typo.
7030 Fri May 7 13:57:50 1993 Ian Lance Taylor (ian@cygnus.com)
7032 * Makefile.in (RUNTEST): Define.
7033 (FLAGS_TO_PASS): Pass down RUNTEST.
7035 Tue May 4 10:06:50 1993 Ian Lance Taylor (ian@cygnus.com)
7037 * Makefile.in (DEMANGLER_PROG): Name it c++filt.
7038 (PROG): Also build and install COPY_PROG.
7040 Mon May 3 19:11:48 1993 Per Bothner (bothner@cygnus.com)
7042 * Makefile.in: Change definition of $(tooldir) to match FSF.
7044 Wed Apr 28 23:41:32 1993 David J. Mackenzie (djm@rtl.cygnus.com)
7046 * size.c (usage): Add missing options.
7047 (main): Clean up option parser.
7049 * objdump.c (usage): Add missing options.
7050 (display_file): Print program name before calling
7053 * nm.c (usage): Add missing options.
7054 (main): Clean up option parser.
7055 (display_file): Print program name before calling
7058 * copy.c (copy_usage, strip_usage): Add missing options.
7060 * ar.c (usage): New function.
7062 (open_inarch, do_quick_append): Print program name before calling
7065 Thu Apr 22 15:01:35 1993 Ian Lance Taylor (ian@cygnus.com)
7067 * nm.c (main): Accept and ignore -A and -B for MIPS compatibility.
7069 Mon Apr 19 14:06:59 1993 Rob Savoye (rob@cygnus.com)
7071 * Makefile.in: Added FLAGS_TO_PASS so tests get run on freshly
7072 built binaries if they exist. (otherwise the path)
7074 Wed Apr 7 22:22:50 1993 Rob Savoye (rob@cygnus.com)
7076 * Makefile.in: Changed check target to use DejaGnu.
7078 Thu Apr 1 12:37:13 1993 Jim Kingdon (kingdon@cygnus.com)
7080 * Makefile.in: Remove am29k-pinsn.c, i960-pinsn.c.
7081 objdump.c: a29k and i960 are `disassemble' not `print'.
7083 * objdump.c: Rename print_address to objdump_print_address
7084 and change parameters.
7085 (disassemble_data): Use objdump_print_address.
7087 Wed Mar 31 10:25:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
7089 * objdump.c (disassemble_data): print_insn_sparc is now a
7090 `disassemble' not a `print'.
7091 Makefile.in: Remove sparc-pinsn.c (now in libopcodes.a).
7093 * objdump.c (disassemble_data): Use new read_memory_func stuff.
7095 Thu Mar 25 10:38:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7097 * objdump.c (fprintf): Declaration of variadic function had better
7098 be a prototype for ANSI C systems.
7100 Mon Mar 22 23:19:46 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7102 * Makefile.in: rename test-install to install-check
7104 Fri Mar 19 14:40:08 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7106 * objdump.c (disassemble_data): Add H8500.
7108 Fri Mar 19 10:56:51 1993 Jim Kingdon (kingdon@cygnus.com)
7110 * objdump.c (usage): Mention long options.
7112 Thu Mar 18 14:22:17 1993 Per Bothner (bothner@rtl.cygnus.com)
7114 * nm.c: Modify behavior of -o flag for archives to match
7115 BSD4.4 and Sunos 4: Prefix archive name before each line.
7117 * m68k-pinsn.c: Removed. Subsumed by ../opcodes/m68k-dis.c.
7118 * i386-pinsn.c: Removed. Subsumed by ../opcodes/i386-dis.c.
7119 * Makefile.in: Adjust accordingly.
7120 * objdump.c: Support new-style disassemblers (ones that use
7121 the interface of ../include/dis-asm.h).
7123 Thu Feb 25 15:57:00 1993 Per Bothner (bothner@rtl.cygnus.com)
7125 * Makefile.in: When making tar file, remove texinfo/*,
7126 except for texinfo/texinfo.tex.
7127 * ardup.c: Add extern declaration of strdup.
7128 * Makefile.in (testsuite): Add 'else true' since otherwise
7129 Ultrix /bin/sh complains.
7131 Wed Feb 24 19:44:18 1993 Per Bothner (bothner@rtl.cygnus.com)
7133 * Makefile.in: Set VERSION to 2.1.
7134 * README, NEWS: Updates.
7135 * nm.c: Add -v as a synonym for -V.
7137 Tue Feb 23 19:00:50 1993 Mike Werner (mtw@poseidon.cygnus.com)
7139 * configure.in: added testsuite to configdirs.
7140 * Makefile.in: added support for building testsuite.
7142 Mon Feb 22 22:52:10 1993 Per Bothner (bothner@rtl.cygnus.com)
7144 * objdump.c (disassemble_data): Print function names when
7145 given by bfd_find_nearest_line. If not - still print
7148 Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
7150 * binutils/testsuite: made modifications to testcases, etc., to allow
7151 them to work properly given the reorganization of deja-gnu and the
7152 relocation of the testcases from deja-gnu to a "tool" subdirectory.
7154 Mon Feb 22 10:27:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
7156 * objdump.c (dump_data): Free up section contents each time
7157 through the loop. Reported by minyard@bnr.ca.
7159 Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
7161 * binutils/testsuite: Initial creation of binutils/testsuite.
7162 Migrated dejagnu testcases and support files for testing nm to
7163 binutils/testsuite from deja-gnu. These files were moved "as is"
7164 with no modifications. This migration is part of a major overhaul
7165 of dejagnu. The modifications to these testcases, etc., which
7166 will allow them to work with the new version of dejagnu will be
7167 made in a future update.
7169 Fri Feb 12 10:05:20 1993 Fred Fish (fnf@cygnus.com)
7171 * Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
7172 * Makefile.in (LIBIBERTY): Use LIBIBERTY_BIN_DIR.
7173 * Makefile.in (DEMANGLER_PROG): New program to build. Add macro
7175 * Makefile.in (PROGS): Add DEMANGLER_PROG.
7177 Tue Jan 26 11:56:33 1993 Ian Lance Taylor (ian@cygnus.com)
7179 * copy.c, nm.c, objdump.c, size.c: Use new bfd_is_com_section
7180 macro rather than checking for equality to bfd_com_section.
7182 Fri Jan 8 15:50:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7184 * objdump.c (disassemble_data): Fix code to find first useless
7187 Thu Jan 7 13:13:31 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7189 * objdump.c (disassemble_data): Use mips_print_insn for MIPS.
7190 Don't core dump if bfd_find_nearest_line returns false.
7192 Wed Jan 6 17:14:01 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7194 * objdump.c (disassemble_data): know how to disassemble z8000s
7197 Wed Jan 6 15:16:27 1993 Per Bothner (bothner@cygnus.com)
7199 * arsup.h (interactive), bucomm.h (program_name): Prefix
7200 with 'extern', to avoid warnings from some compilers.
7202 Wed Jan 6 15:14:11 1993 Per Bothner (bothner@rtl.cygnus.com)
7204 * arparse.y: fix unnecessary shift/reduce
7206 Tue Dec 22 15:46:56 1992 Per Bothner (bothner@rtl.cygnus.com)
7208 * Makefile.in: Make check depend on all.
7209 * Makefile.in (distclean): Remove sysdep.h.
7210 * size.c: Use %u format where appropriate.
7211 * objdump.c: Standardize: L_SET -> SEEK_SET.
7212 * objdump.c: Use new macro bfd_asymbol_bfd.
7213 * configure.in: Allow std-host as the default ${mys_host}.
7215 Thu Dec 17 19:38:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7217 * Makefile.in: added dvi target, define and use TEXI2DVI
7219 Tue Dec 15 18:05:07 1992 Per Bothner (bothner@cygnus.com)
7221 * Makefile.in (dist): Fix permissions before release.
7222 * size.c: Use bfd_size_type (and long) where appropriate.
7223 * ar.c: Make writing a map the default, to be compatible
7224 with SYSV and Posix.2. Remove some bogus kludges that
7225 handled __.SYMDEF directly.
7228 Mon Nov 9 13:36:53 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7230 * Makefile.in: flex no longer needs the -S flag
7232 Sat Nov 7 15:06:13 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7234 * ar.c (extract_file): utime needs a pointer to a utimbuf
7236 * Makefile.in: handle -I includes better, adding $(BASEDIR)/bfd to
7237 the list (since some of the bfd/hosts/*.h files include other
7238 files from that directory)
7240 Fri Nov 6 00:12:51 1992 John Gilmore (gnu@cygnus.com)
7242 * i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper bound properly.
7244 Thu Nov 5 03:37:15 1992 John Gilmore (gnu@cygnus.com)
7246 Clean up some old BFD ansification macros.
7248 * arsup.h, bucomm.h, objdump.h: Remove EXFUN from binutils.
7249 It still remains as a local macro in gmalloc.c, which is derived
7250 from some other copy of GNU Malloc somewhere (FIXME).
7252 * ar.c, objdump.c, size.c: Replace EXFUN with PROTO. Make static
7254 * arsup.h: Declare extract_files.
7256 Mon Nov 2 12:42:11 1992 Ian Lance Taylor (ian@cygnus.com)
7258 * ar.c (extract_file): instead of checking USG: if POSIX_UTIME,
7259 use utime and utimbuf structure, otherwise if USE_UTIME use utime
7260 and array of two longs, otherwise use utimes.
7262 Thu Oct 15 13:57:35 1992 Per Bothner (bothner@cygnus.com)
7264 * binutils.tex: Document yesterday's changes to strip and copy.
7266 Wed Oct 14 13:22:14 1992 Per Bothner (bothner@cygnus.com)
7268 * copy.c: Re-do command-line parsing to use getopt_long().
7269 Add long option names. Re-think option letters to be more
7271 * copy.c: New function filter_symbols() for stripping only
7272 debug-symbols and/or local symbols. Use these to support
7273 the previously-missing options of the old FSF strip.
7275 Tue Oct 13 01:24:20 1992 John Gilmore (gnu@cygnus.com)
7277 * configure.in (host): Use ${srcdir}/../bfd/configure.host rather
7278 than repeating a copy of it here.
7280 Wed Oct 7 12:53:52 1992 Ken Raeburn (raeburn@cygnus.com)
7282 * copy.c (main): Even if is_strip, accept -d argument indicating
7283 alternate output format. Needed by gdb for Nindy.
7285 * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
7287 Tue Oct 6 16:33:56 1992 Jeffrey Osier (jeffrey@cygnus.com)
7289 * binutils.texi: added documentation for "copy"
7291 Tue Oct 6 14:22:56 1992 Per Bothner (bothner at PersSony)
7293 * Makefile.in (*clean rules): Some cleaning up.
7294 * Makefile.in (dist): Make diststuff in gprof for a dist.
7296 * ar.c (do_show_version): New function.
7297 * ar.c (main): Fix so "ar -V" works.
7299 Thu Oct 1 22:44:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7301 * configure.in: now uses the cpu-vendor-os triple instead of
7304 Fri Sep 25 22:41:08 1992 John Gilmore (gnu@cygnus.com)
7306 * i960-pinsn.c: Change bzero to memset.
7307 * sparc-pinsn.c: Change index to strchr.
7309 Mon Sep 21 14:39:56 1992 Ian Lance Taylor (ian@cygnus.com)
7311 * m68k-pinsn (print_insn_arg, fetch_arg): added support for
7312 operands to memory management instructions, from WRS.
7314 Tue Sep 15 15:26:38 1992 Ian Lance Taylor (ian@cygnus.com)
7316 * Makefile.in (install): if $(tooldir) exists, install nm and
7317 strip in $(tooldir)/bin.
7319 Thu Sep 3 11:57:40 1992 Per Bothner (bothner@rtl.cygnus.com)
7321 * Makefile.in: Let's call it version 2.0.
7323 Wed Sep 2 00:25:13 1992 Per Bothner (bothner@rtl.cygnus.com)
7325 * Makefile.in: Bump to version 0.98.
7326 * TODO, README: Minor updates.
7328 * Makefile.in: Added mostlyclean, distclean rules,
7329 and cleaned up clean, realclean.
7331 Sun Aug 30 21:18:59 1992 Ian Lance Taylor (ian@cygnus.com)
7333 * Makefile.in: map program names through program_transform_name
7336 Sun Aug 30 18:09:03 1992 Per Bothner (bothner@rtl.cygnus.com)
7338 * Makefile.in: Bump to versions 1.97.90.
7339 * cplus-dem.c: Removed. Was nowhere used - and if some
7340 programs are changed to to demangling should now use the
7341 versions in libiberty.
7343 Thu Aug 27 12:58:09 1992 Brendan Kehoe (brendan@cygnus.com)
7345 * configure.in: add we32k
7347 Mon Aug 24 14:53:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7349 * ar.c (map_over_members): if the element of the archive has a
7350 null name, fill it in.
7352 * nm.c (do_one_rel_file): only warn if a bfd's flags say there
7353 will be symbols and there aren't any.
7355 Wed Aug 19 11:20:25 1992 Ian Lance Taylor (ian@cygnus.com)
7357 * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
7359 Tue Aug 18 20:45:48 1992 Rob Savoye (rob@cygnus.com)
7361 * nm.c objdump.c: Added support for a +version (-V)
7362 to print the version number.
7364 * ar.c, copy.c: Added support for a -V option to print
7367 Tue Aug 18 13:28:44 1992 Ian Lance Taylor (ian@cygnus.com)
7369 * config/mh-apollo68v: removed -g from CC definition.
7371 * Makefile.in: always create installation directories.
7373 Mon Aug 17 18:33:41 1992 Per Bothner (bothner@rtl.cygnus.com)
7375 * m68k-pinsn.c: Minor fix in style of output (don't use
7376 range to indicate floating point control registers).
7378 Tue Aug 11 23:42:21 1992 Per Bothner (bothner@cygnus.com)
7380 * ar.c (main): Don't *always* set the verbose flag!
7382 Wed Aug 5 11:25:27 1992 Per Bothner (bothner@rtl.cygnus.com)
7384 * copy.c: When is_strip (because it is invoked as the strip
7385 program), follow traditional argv processing:
7386 'strip file1 file2' now strips file1 and file2, rather
7387 than stripping file1 (as input), leaving output in file2.
7389 Mon Jul 27 16:28:08 1992 Per Bothner (bothner@rtl.cygnus.com)
7391 * objdump.c (display_info, display_info_table): Call
7392 bfd_set_format() on dummy bfd before using it (twice).
7393 * ar.c: Make sure archive is created on command 'r'
7394 even when no elements are inserted. (Clean up and
7395 simplify some non-working related code.)
7397 Mon Jul 20 02:48:38 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
7399 * configure.in: hppa support doesn't assume hp OS (from sef).
7401 Sat Jul 18 14:35:22 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7403 * configure.in: recognize hppa hosts (bsd & hpux), error messages
7404 to stderr, not stdout
7406 Fri Jul 17 18:39:44 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7408 * ar.1, binutils.texi, i960-pinsn.c, nm.1, objdump.1, ranlib.1,
7409 size.1, sparc-pinsn.c, strip.1: removed rcsid's.
7411 Thu Jul 16 16:55:24 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7413 * Makefile.dos: removed rcsid.
7415 Thu Jul 16 08:23:07 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7417 * objdump.c (display_bfd): print state of BFD_IS_RELAXABLE too
7419 Tue Jun 30 20:26:15 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
7421 * Makefile.in: Add program_suffix (parallel to program_prefix)
7423 Thu Jun 25 04:52:45 1992 John Gilmore (gnu at cygnus.com)
7425 * nm.c (sorters): Lint. Remove excess whitespace.
7427 Wed Jun 24 13:48:07 1992 Per Bothner (bothner@cygnus.com)
7429 * nm.c (valueof macro): Add missing parentheses.
7430 (Their lack screwed up numeric_forward().)
7432 Sun Jun 14 10:33:27 1992 John Gilmore (gnu at cygnus.com)
7434 * objdump.c (dump_elf_stabs): Also dump .stab.index and
7435 .stab.excl sections.
7436 (dump_elf_stabs_1): Split out main body of old dump_elf_stabs.
7437 * objdump.1, binutils.texi: Document new sections dumped.
7439 Fri Jun 12 22:23:35 1992 John Gilmore (gnu at cygnus.com)
7441 * size.c, objdump.c, bucomm.c: Lint.
7443 Thu Jun 11 01:19:06 1992 John Gilmore (gnu at cygnus.com)
7445 * objdump.c (dump_elf_stabs): New feature: --stabs prints out a
7446 .stab section from an ELF file. Installed under #ifdef
7447 ELF_STAB_DISPLAY so it can be easily disabled, since it requires
7448 bfd-internals header files and such.
7449 * objdump.1, binutils.texi: Update for --stabs. Also fix
7450 objdump's doc to use -- rather than + for long options.
7451 (FIXME: Not yet fixed everywhere in binutils.texinfo.)
7453 Wed Jun 10 07:53:24 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7455 * objdump.c(display_info), patches from
7456 mohring@informatik.tu-muenchen.de to print the table much more
7459 Thu May 28 13:36:16 1992 Per Bothner (bothner@rtl.cygnus.com)
7461 * objdump.c: Add another enum->int cast, for the sake of
7462 old compilers (such as PCC).
7464 Wed May 27 13:01:44 1992 Per Bothner (bothner@rtl.cygnus.com)
7466 * arlex.l: Don't include <sysdep.h> (unneeded conflicts).
7467 Add declaration of strdup().
7469 Fri May 22 13:40:37 1992 Per Bothner (bothner@cygnus.com)
7471 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
7472 rules, since these are used when building a distribution.
7473 * Makefile.in (arlex.c): Don't re-direct output, since that
7474 leaves a bogus output files if it fails.
7476 * arlex.l: Make work with lex, for what it's worth.
7477 * Makefile.in: Better lex support.
7478 * Makefile.in (dist): Generate flex and bison outputs
7481 Thu May 14 17:17:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7483 * Makefile.in: get BISON definition right.
7485 Fri May 8 07:47:08 1992 K. Richard Pixley (rich@cygnus.com)
7487 * sanity.sh: default TMPDIR to ".".
7489 Thu May 7 12:34:50 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
7491 * binutils.texi: add doc for ar command language.
7493 Wed May 6 18:05:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7495 * arparse.y: make END call ar_end
7496 * arsup.c (ar_end): added, deletes temp file if archive session
7500 Wed May 6 11:08:53 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7502 * Makefile.in: use bison & flex from ../ if they exist. Also,
7505 * sanity.sh: remove temporary directory when finished.
7507 Tue May 5 12:00:58 1992 Per Bothner (bothner@rtl.cygnus.com)
7509 * Makefile.in: Bump to version 1.97.
7510 * ar.c: Declare errno for machines that need it.
7512 Mon May 4 23:29:51 1992 John Gilmore (gnu@cygnus.com)
7514 * objdump.c (display_info): Handle error cases without coredump.
7515 Close the dummy temporary file we open in the loop.
7516 * Makefile.in (arsup.o): Add kludge to build with Sun Make.
7518 Fri May 1 16:20:23 1992 K. Richard Pixley (rich@cygnus.com)
7520 * Makefile.in: added test-install target.
7522 * sanity.sh: new file.
7524 * Makefile.in: use sanity test on make check.
7526 Tue Apr 21 13:38:37 1992 K. Richard Pixley (rich@cygnus.com)
7528 * Makefile.in: rework CFLAGS so that they can be passed on the
7529 command line to make. Remove MINUS_G. Default CFLAGS to -g.
7531 Wed Apr 15 14:33:07 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7533 * arsup.c, arsup.h, arparse.y, arlex.l: support for archive
7536 Fri Mar 6 21:54:53 1992 K. Richard Pixley (rich@cygnus.com)
7538 * Makefile.in: added check target.
7540 Thu Mar 5 21:35:49 1992 K. Richard Pixley (rich@cygnus.com)
7542 * Makefile.in: added clean-info target.
7544 Tue Mar 3 15:36:37 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7546 * Makefile.in: remove $(COPY_PROG) from PROGS. It shouldn't be
7547 installed. added tooldir and program_prefix.
7549 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
7551 * Makefile.in, configure.in: removed traces of namesubdir,
7552 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
7553 copyrights to '92, changed some from Cygnus to FSF.
7555 Sun Feb 16 12:53:02 1992 Per Bothner (bothner at cygnus.com)
7557 * Makefile.in: Bump version to 1.96, and remove -beta
7558 suffix from distribution name.
7559 * m68k-pinsn.c: New macro COERCE_SIGNED_CHAR to extract
7560 the signed value of a character (even if chars are unsigned).
7561 * sparc-pinsn.c: Add new operand types.
7563 Thu Feb 6 12:14:19 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7565 * objdump.c (disassemble_data): don't print a section's contents
7566 if it's not loadable (eg bss)
7568 Tue Jan 28 11:11:06 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7570 * m68k-pinsn.c (print_insn_arg): fixed so that -ve branch
7571 displacements don't get printed as large +ve ones.
7573 Fri Jan 24 14:47:53 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7575 * copy.c, nm.c, objdump.c, size.c : changed to use the
7579 Mon Dec 30 18:34:41 1991 Per Bothner (bothner at cygnus.com)
7581 * bucomm.c (print_arelt_descr): Tweek the output format
7582 so that 'ar tv' output follows Posix 1003.2/D11.
7583 Output is now also identical to Sun's (except __.SYMDEF).
7585 Mon Dec 30 06:09:53 1991 John Gilmore (gnu at cygnus.com)
7587 * Makefile.in: Make `make' output more readable.
7589 Wed Dec 18 15:04:45 1991 Per Bothner (bothner at cygnus.com)
7591 * Makefile.in: Bump to version 1.94.
7593 Wed Dec 11 16:48:09 1991 Steve Chamberlain (sac at cygnus.com)
7595 * ar.c: added "b" to fopens for dos
7596 * configdj.bat, makefile.dos new files from DJ
7598 Tue Dec 10 04:07:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
7600 * Makefile.in: infodir belongs in datadir.
7602 Sat Dec 7 17:09:37 1991 Steve Chamberlain (sac at rtl.cygnus.com)
7604 * bucomm.h: created to hold prototypes of bucomm.c
7605 * objdump.h: created to hold prototyes of objdump.c
7606 * am29k-pinsn.c: include objdump.h
7607 * ar.c: include bucomm.h, get ar.h from the right place and
7609 * bucomm.c: defunize bfd_fatal
7610 * copy.c: include bucomm.h, lint.
7611 * i960-pinsn.h: include bucomm.h
7612 * m68k-pinsn.h: lint
7613 * nm.c: include bucomm.h, lint
7615 * sparc-pinsn.c: include objdump.h
7619 Fri Dec 6 23:02:14 1991 K. Richard Pixley (rich at rtl.cygnus.com)
7621 * Makefile.in: added standards.text support. install using
7622 INSTALL_PROGRAM and INSTALL_DATA.
7624 * configure.in: configure now does all of it's work from objdir so
7625 make file existence tests against ${srcdir}.
7627 Thu Dec 5 22:46:22 1991 K. Richard Pixley (rich at rtl.cygnus.com)
7629 * Makefile.in: idestdir and ddestdir go away. Added copyrights
7630 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
7631 and mandir now keyed off datadir by default.
7633 Wed Dec 4 22:42:03 1991 Per Bothner (bothner at cygnus.com)
7635 * Makefile.in: Bump to version 1.93.
7636 * Makefile.in: Add make-strip.o:maybe-strip.c dependency
7637 for make versions that provide half-baked VPATH-support (e.g. Sun's).
7638 * size.c: Improvements suggested by
7639 "david d [zoo] zuhn" <zoo@aps1.spa.umn.edu>:
7640 - Don't emit (Berkeley) headers if no files were found.
7641 - Return a non-zero return code on failure.
7643 Sat Nov 30 21:34:19 1991 Steve Chamberlain (sac at rtl.cygnus.com)
7645 Changes due to include file renaming:
7646 * am29k-pinsn.c: a29k-opcode.h -> opcode/a29k.h
7647 * sparc-pinsn.c: sparc-opcode.h -> opcode/sparc.h
7648 * m68k-pinsn.c: m68k-opcode.h -> opcode/m68k.h
7649 * nm.c: stab.gnu.h -> aout/stab_gnu.h
7651 Tue Nov 19 19:20:43 1991 Per Bothner (bothner at cygnus.com)
7653 * README: Mention MINIMIZE flag for bfd's make.
7655 Mon Nov 18 12:05:37 1991 Per Bothner (bothner at cygnus.com)
7657 * README: Various improvements.
7659 Sun Nov 17 23:40:59 1991 Per Bothner (bothner at cygnus.com)
7661 * Makefile.in: Bump to version 1.92.
7662 * version.c, Makefile.in: Get version string from Makefile.
7663 * copy.c, is-strip.c, not-strip.c, maybe-strip.c, Makefile.in:
7664 Make the same change that we earlier did for ar/ranlib:
7665 Generate two different binaries for strip and copy and use
7666 a global variable with different values to distinguish
7667 ostrip from copy. (-1 means to use argv[0] to decide,
7668 so you can get the old behavior, but it is no longer the default).
7669 * copy.c (copy_file): Set EXEC_P of output bfd if input is so.
7670 * copy.c (main): If is_strip==-1, compare last 5 chars
7671 of argv[0], not the whole path.
7672 * copy.c (main): Return 0, not 1.
7673 * copy.c (setup_sections): Fix due to change in bfd_make_section
7674 now failing if asked for a duplicate section.
7675 * strip.c, ostrip.c: Removed obsolete files.
7676 * ar.c, not-ranlib.c, maybe-ranlib.c:
7677 Change encoding of is_ranlib variable to be consistent
7678 with is_strip for strip.copy (i.e -1 to means use argv[0]).
7680 Thu Nov 14 20:11:02 1991 Per Bothner (bothner at cygnus.com)
7682 * version.c (program_version): Update to version 1.92.
7684 Tue Nov 12 16:17:53 1991 Per Bothner (bothner at cygnus.com)
7686 * ar.c (get_pos_bfd): Previous fix was missing a "break".
7688 Thu Nov 7 08:55:56 1991 Steve Chamberlain (sac at cygnus.com)
7690 * am29k-pinsn.c: Fixed bug in mtacc, dmac and fmac instruction
7691 encodings. (Thaks to David Wood)
7693 Sun Nov 3 14:50:23 1991 Per Bothner (bothner at cygnus.com)
7695 * Makefile.in ($(DIST_NAME).tar.Z), TODO: Various fixes.
7696 * ar.c (get_pos_bfd): Fix to handling of before/after
7697 positioning options.
7698 * bucomm.c (fatal): MISSING_VFPRINTF is no longer an issue,
7699 since libiberty contains vfprintf etc if otherwise missing.
7700 * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL
7701 type operands, as used by branch instructions.
7702 * nm.c: Delegate printing of symbols to BFD,
7703 by using bfd_print_symbol to do the formatting.
7705 Mon Oct 28 11:20:47 1991 Steve Chamberlain (steve at cygnus.com)
7707 * ar.c (write_archive.c): added unlink before rename since some
7708 systems can't rename onto an existant file.
7710 Mon Oct 21 09:47:23 1991 Steve Chamberlain (steve at rtl.cygnus.com)
7712 * nm.c: now doesn't crash if a symbol with no section and no
7715 Thu Oct 17 15:25:50 1991 Per Bothner (bothner at cygnus.com)
7717 * Makefile.in, version.c: Bump to version 1.91.
7719 Wed Oct 16 11:45:36 1991 Per Bothner (bothner at cygnus.com)
7721 * Makefile.in, ar.c, bucomm.c, copy.c, cplus-dem.c, filemode.c,
7722 i960-pinsn.c, m68k-pinsn.c, nm.c, objdump.c, size.c, sparc-pinsn.c,
7723 * strip.c: Add or update Copyright notice.
7724 * TODO: Add note on 'nm -a'.
7725 * version.c: Update version number to 1.90.
7726 * Makefile.in: Fix making of documentation for dist.
7728 Tue Oct 15 00:17:17 1991 Per Bothner (bothner at cygnus.com)
7731 * Makefile.in: New kludgy rules for making a tarfile.
7732 * Makefile.in: Fix bindir path.
7734 Mon Oct 14 17:34:29 1991 Roland H. Pesch (pesch at cygnus.com)
7736 * Makefile.in: add targets binutils.mm, binutils.me
7738 Fri Oct 11 22:44:21 1991 John Gilmore (gnu at cygnus.com)
7740 * Makefile.in: Avoid Sun Make VPATH bugs by adding dependencies.
7742 Fri Oct 11 12:51:33 1991 Roland H. Pesch (pesch at cygnus.com)
7744 * Makefile.in: add target "binutils.ms"
7746 * binutils.texinfo: minor restructuring for texi2roff comfort.
7748 Fri Oct 11 04:12:28 1991 John Gilmore (gnu at cygnus.com)
7750 Restructure configuration scheme for bfd, binutils, ld.
7752 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
7753 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
7754 Change some config names to match other dirs.
7755 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
7757 * Makefile.in: Use -I. to get sysdep.h.
7759 Wed Oct 9 22:42:56 1991 Per Bothner (bothner at cygnus.com)
7761 * nm.c (print_symbols): Handle NULL name field of symbol.
7762 * Makefile.in: Removed spurious comment.
7764 Tue Oct 8 16:55:03 1991 Roland H. Pesch (pesch at cygnus.com)
7766 * binutils.texinfo: minor typos, phrasing, formatting fixes.
7768 Tue Oct 8 15:13:20 1991 Per Bothner (bothner at cygnus.com)
7770 * configure.in: Get host file from ../bfd/config, not config.
7771 * config/*: Remove config directory and its files.
7773 Tue Oct 8 13:58:59 1991 Roland H. Pesch (pesch at cygnus.com)
7775 * Makefile.in: new targets binutils.dvi, binutils.info
7777 * binutils.texinfo: remove most remaining FIXME's, delete
7778 references to __.SYMDEF by name
7781 Tue Oct 8 10:23:44 1991 Steve Chamberlain (steve at cygnus.com)
7783 * objdump.c (print_address) Print addresses nicely.
7785 Mon Oct 7 11:31:05 1991 Per Bothner (bothner at cygnus.com)
7787 * ar.c, Makefile.in, new files {is,not,maybe}-ranlib.c:
7788 Make two different binaries for ar and ranlib, instead of
7789 distinguishing them at run time using argv[0].
7790 (Old behavior is still available if you "make ar_with_ranlib",
7791 but it is not the default.)
7792 * ranlib.sh (new): An alternative one-line
7793 shell implementation of ranlib.
7795 Fri Oct 4 21:49:44 1991 John Gilmore (gnu at cygnus.com)
7797 * objdump.c: Cope with renames of a few BFD types & enums.
7799 Fri Oct 4 19:08:09 1991 Roland H. Pesch (pesch at cygnus.com)
7801 * binutils.texinfo: add new file (rudimentary docn)
7803 Mon Sep 30 12:30:39 1991 Per Bothner (bothner at cygnus.com)
7805 * config/hmake-news: Add new file (for Sony NEWSOS3).
7806 * bucomm.c (fatal): Conditionally compile fatal() depending on
7807 MISSING_VFPRINTF, and don't confuse the issue with NO_VARARGS.
7808 * objdump.c (dump_headers): Trivial output format change.
7809 * objdump.c (display_info): Loop over integers, not enums,
7810 to appease old compilers.
7812 Mon May 20 16:14:07 1991 Steve Chamberlain (steve at cygint.cygnus.com)
7814 *objdump.c *nm.c *copy.c: Changed some types to work with 64 bit
7817 Thu May 16 16:06:55 1991 Steve Chamberlain (steve at cygint.cygnus.com)
7819 * objdump.c (print_address): Make disasembled output more
7820 consistent with gdb and as: Add 0x when printing hex.
7821 Don't print extra leading zeros.
7822 Attempt to not print "filename.o".
7823 * objdump.c: Add some enum-to-int casts to accomodate old compilers.
7826 Fri May 3 22:21:44 1991 John Gilmore (gnu at cygint.cygnus.com)
7828 * copy.c: Change =& constructs to = &, since they confuse older
7836 version-control: never