aboutsummaryrefslogtreecommitdiff
path: root/binutils
AgeCommit message (Collapse)AuthorFilesLines
1995-10-04 * arsup.c (ar_save): Use rename, not unlink/link/unlink.Ian Lance Taylor1-0/+4
1995-10-02 * binutils-all/ar.exp: New file.Ian Lance Taylor3-12/+30
* binutils-all/bintest.s: Make text_symbol and data_symbol global. Add new static symbols static_text_symbol and static_data_symbol. * binutils-all/nm.exp: Adjust accordingly. * config/default.exp (AR): Set if not set. (binutils_remove): New procedure. * lib/utils-lib.exp (default_binutils_run): Call prune_system_crud on program output. Use verbose -log instead of both verbose and send_log. (default_binutils_remove): New procedure.
1995-10-02 * lib/utils-lib.exp (default_binutils_assemble): CallIan Lance Taylor2-1/+39
prune_system_crud on assembler output.
1995-10-02 * strings.c (main): Exit with zero status if no files are givenIan Lance Taylor1-1/+16
and standard input is read.
1995-09-29Comings and goings of Mac-specific files.Stan Shebs1-1/+2
1995-09-29 * mpw-config.in: Calculate underscore and put into makefileStan Shebs4-554/+123
fragment, generate config.h. * mpw-make.sed: New file, sed commands to edit Unix makefile into MPW syntax. * mpw-make.in: Remove. * mac-binutils.r: New file, Mac resources.
1995-09-28 * dlltool.c: (gen_exp_file): Always emit a .reloc section if relocatable.Steve Chamberlain1-0/+8
(imp_name_lab): New. (gen_def_file): New. (gen_lib_file): Use imp_name_lab. (main): Initialize imp_name_lab.
1995-09-25 * configure.in: Call AC_HEADER_SYS_WAIT.Ian Lance Taylor3-13/+84
* configure: Rebuild. * config.in: Rebuild. * dlltool.c: Include "libiberty.h" and "bucomm.h". Don't include <stdio.h>, <stdlib.h>, or <string.h>. Don't include <wait.h>. Include <sys/types.h>. Use HAVE_SYS_WAIT_H to control whether to include <sys/wait.h> or define the wait macros by hand. Don't declare xmalloc. (gen_lib_file): Don't assume that sprintf returns the number of characters; use strlen instead.
1995-09-22 * objdump.c (disassemble_data): Don't use the old BFD basedIan Lance Taylor1-0/+5
disassembler interface. Make info a const pointer.
1995-09-13 * objdump.c (start_address): New variable.Ian Lance Taylor4-9/+122
(stop_address): New variable. (usage): Mention --start-address and --stop-address. (OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define. (long_options): Add "start-address" and "stop-address". (disassemble_data): Handle start_address and stop_address. (dump_data, dump_reloc_set): Likewise. (main): Don't set seenflag for -l. Handle OPTION_START_ADDRESS and OPTION_STOP_ADDRESS. * objcopy.c (parse_vma): Move to bucomm.c. * bucomm.c (parse_vma): New function, moved in from objcopy.c. * bucomm.h (parse_vma): Declare. * binutils.texi, objdump.1: Document new objdump options. PR 7983.
1995-09-13Fix .drectve spelling (was .drective) in several comments.David Edelsohn1-47/+80
1995-09-13 * lib/utils-lib.exp (prune_system_crud): Define if not defined.Ian Lance Taylor2-1/+12
* binutils-all/objcopy.exp: Call prune_system_crud on cmp output.
1995-09-12 * Makefile.in (maintainer-clean): New target.Ian Lance Taylor2-1/+5
1995-09-12 * ar.c (replace_members): Don't call write_archive if nothingIan Lance Taylor1-0/+3
changed.
1995-09-12 * objdump.c (disassemble_data): Add casts to avoid gcc warnings.Ian Lance Taylor2-5/+9
1995-09-07 * config.in: Rename from config.h.in.Ian Lance Taylor6-23/+63
* configure.in: Call AC_CONFIG_HEADER with config.h:config.in. Check for config.h:config.in when creating stamp-h. * configure: Rebuild. * Makefile.in (stamp-h): Depend upon config.in rather than config.h.in. Set CONFIG_HEADERS to config.h:config.in when calling config.status.
1995-09-07 * Makefile.in (distclean): Remove config.h, stamp-h, andIan Lance Taylor2-1/+4
config.log.
1995-09-07 * nm.c (value_format): Initialize based on BFD64 andIan Lance Taylor1-0/+14
BFD_HOST_64BIT_LONG. (print_radix): New static variable. (set_print_radix): Set print_radix. Adjust changes to value_format. (print_value): New static function, to print 64 bit octal and decimal values correctly. (print_symbol_info_bsd): Check BFD64, not BFD_HOST_64_BIT. Use print_value. (print_symbol_info_sysv): Use print_value. (print_symbol_info_posix): Likewise.
1995-09-07 * Makefile.in (*.o): Remove incorrect dependencies onIan Lance Taylor2-14/+28
$(BFDDIR)/hosts/std-host.h.
1995-09-06 * configure.in: Rewrite to use autoconf.Ian Lance Taylor7-750/+1588
* aclocal.m4: New file. * configure: New file, built by autoconf. * acconfig.h: New file. * config.h.in: New file, built by autoheader. * Makefile.in: Various changes for new configure script. Also: (PROGS): Remove $(SYSINFO_PROG). (ALL_CFLAGS): Remove $(TDEFINES). (version.o): Use $(ALL_CFLAGS). (cplus-dem.o, dlltool.o, nlmconv.o): Likewise. (sysdump.o): Depend upon bucomm.h and config.h. (srconv.o, arsup.o, strings.o): Depend upon config.h. (filemode.o): Don't depend upon ../bfd/sysdep.h. (bucomm.o): Depend upon config.h, not ../bfd/sysdep.h. (size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise. (nlmheader.o, nlmconv.o): Likewise. (distclean): Don't remove sysdep.h. * bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h". Include "fopen-same.h" or "fopen-bin.h", based on USE_BINARY_FOPEN. Include <errno.h>, and declare errno if it is not a macro. Include <unistd.h>, <string.h>, <strings.h>, <stdlib.h>, and <fcntl.h> if they are present. Declare strchr, strrchr, and strstr if no string header file exists. Include <sys/file.h> if it exists and <fcntl.h> does not. Define O_RDONLY and O_RDWR if necessary. * ar.c: Don't include "sysdep.h". Do include <sys/types.h> and <sys/stat.h>. Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME. Use HAVE_UTIMES rather than !USE_UTIME. Don't include <errno.h>, and don't declare errno. * arsup.c: Don't include <sysdep.h>. * bucomm.c: Don't include "sysdep.h". Include <stdio.h>, <sys/types.h>, and <sys/stat.h>. Include <time.h> if it defines time_t. Define time_t if necessary. * coffdump.c: Don't include "sysdep.h". * coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise. * srconv.c, strings.c: Likewise. * nm.c: Don't include "sysdep.h". Don't try to define HAVE_SBRK. * objcopy.c: Don't include "sysdep.h". Include <sys/types.h> and <sys/stat.h>. (simple_copy): Use creat rather than assuming that O_CREAT is defined. * objdump.c: Don't include "sysdep.h". Use NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED. * sysdump.c: Include "bfd.h" and "bucomm.h". Don't include "sysdep.h" or <stdlib.h>. (dump_symbol_info): Rename from symbol_info. Change all callers.
1995-09-04 * configure.in (host_makefile_frag): Don't set. Substitute forIan Lance Taylor3-9/+21
@CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile. * Makefile.in (AR_FLAGS): Set to rc rather than qv. (CC): Define as @CC@. (CFLAGS): Set to @CFLAGS@. (LDFLAGS): Define as @LDFLAGS@. (ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
1995-09-04 * configure.in: Don't bother to call config.bfd for each target.Ian Lance Taylor2-4/+10
Just call it for the default target, and use the shell variable to decide whether underscores are used.
1995-09-01 * configure.in: match i[3-6]86-*-win32, not just i386-*-win32.Jason Molenda2-8/+44
1995-08-31Thu Aug 31 16:30:22 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain2-20/+55
* dlltool.c (add_indirect): New. (asm_prefix): New (gen_exp_file): Timestamp should be 0. Insert prefix when needed. New code for indirection. (gen_lib_file): Timestamp should be 0. Insert prefix when needed. (usage): Document --add-indirect. (main): Cope with new option. * objdump.c (dump_private_headers): New. (usage): Document new option. (long_option): Add private-headers. (dump_bfd_private_header): New. (main): Cope with new option.
1995-08-31 * dlltool.c (run): Add missing 3rd arg to waitpid.David Edelsohn2-11/+13
1995-08-30 * Makefile.in (TOOL_PROGS): Include dlltool if needed.Steve Chamberlain2-21/+56
1995-08-29 Put _iname in idata$7.Steve Chamberlain1-1/+1
1995-08-29Tue Aug 29 13:25:21 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain2-159/+168
* dlltool.c (rva): Deleted. (rvaafter, rva_before): Use new assembler pseudo. (flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing. (gen_exp_file): Don't generate .edata if no need. (gen_lib_file): Don't make timestamp. (workout_prefix): Fix memory initialization bug. (usage): Tidy up, delete many single char options. (main): rva option is gone.
1995-08-22 * dlltool.c (options): image-base is a synonym for rva.Steve Chamberlain2-2/+7
1995-08-20Sun Aug 20 09:59:00 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain2-125/+374
Modified to generate archives and objects rather than .s files. * dlltool.c (run) New function. (gen_exp_file, gen_lib_file): Use run. (workout_prefix): New. (usage): Document new options. (main): Parse new options.
1995-08-16 * dlltool.c (gen_exp_file): Fix RVA handling.Steve Chamberlain2-21/+22
(rva_s, rva_n): Delete.
1995-08-16 * binutils-all/nm.exp: Add setup_xfail for mips*-sony-bsd* forIan Lance Taylor1-0/+3
tests which fail on ECOFF targets.
1995-08-16 * binutils-all/objcopy.exp: Change i*86-*-linux xfail for simpleIan Lance Taylor2-1/+6
copy test to check for i*86-*-linuxaout* instead.
1995-08-11 * nm.c (main): Ignore -e.Ian Lance Taylor1-0/+4
PR 6758.
1995-08-10put version number into doc from makefileKen Raeburn2-2/+11
1995-08-10 * coffgrok.c (do_type): Handle array dimensions the same way gdbIan Lance Taylor1-1/+6
does.
1995-08-09 * dlltool.c (mtable): New fields.Steve Chamberlain2-11/+67
(ASM_RVA_BEFORE, ASM_RVA_AFTER): New. (flush_page, gen_lib_file): Use new macros.
1995-08-08 * binutils-all/objcopy.exp: Add setup_xfail for a29k-*-vxworks*Ian Lance Taylor2-2/+35
for simple copy test.
1995-08-05 * objcopy.c (mark_symbols_used_in_relocations): Handle sectionsJeff Law1-1/+4
with no relocations. * coffgrok.c (do_sections_p1): Likewise. Fix for net bug.
1995-07-31 * strings.c (print_strings): For compatibility with existingIan Lance Taylor2-4/+4
strings programs, print strings which are not terminated with a null byte or a newline. * binutils.texi, strings.1: Update documentation accordingly.
1995-07-31 * ar.c (replace_members): For compatibility with existing arIan Lance Taylor1-0/+12
programs, permit users to add the same file multiple times.
1995-07-25 * strings.c (DATA_FLAGS): Remove SEC_DATA.Ian Lance Taylor2-8/+8
(main): If no file names are given, scan standard input. * binutils.texi, strings.1: strings now scans non-data sections by default.
1995-07-24srconv.c (writeINT): When size == -2, use 2 bytes for the h8300 and 4 bytesJ.T. Conklin1-0/+3
for the sh.
1995-07-24* srconv.c (wr_hd): Set afl field to 4 for bfd_arch_sh.J.T. Conklin2-17/+55
* sysdump.c (fillup): Return size - 1, the last byte is a checksum and shouldn't be counted. * sysroff.info (hd): Changed segment identifier from a byte to a 1 bit field. The sysroff 2.0-01 specification seems to be in error here. Reduce width of following "spare" field from 4 to 3 bits. (rl): Changed order and width of first 4 bitfields to correspond to sysroff specification. (dln_head, dln_inside, dln_tail): Removed.
1995-07-14* sysdump.c (dh): Changed format of output to be 16 hex digitsJ.T. Conklin2-8/+7
followed by 16 ascii characters, similar to Emacs' hexl-mode, to make it easier to read.
1995-07-13* srconv.c (wr_tr): Write out handcrafted tr block.J.T. Conklin2-83/+122
(walk_tree_symbol): Use evallen and evalue instead of vallen & value because of corresponding changes in sysroff.info. * sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New functions. * sysroff.info (tr): the tr block is a special case --- a block without contents --- which can't be handled by generated code. (den, dpp): only first byte is present for DENend, DPPend. (dsy): describe a conditional portion of block, rename some fields. (dps): describe a conditional portion of block. (dfl): removed. * sysinfo.y (yyerror): write error message to standard error.
1995-07-13 * Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.Ian Lance Taylor1-0/+7
(mostlyclean): Remove y.output. (clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo. * nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t. * objcopy.c (copy_object): Likewise.
1995-07-13 * nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.Ian Lance Taylor1-0/+23
(struct size_sym): Define. (show_stats): New static variable. (long_options): Add undocumented option "stats". (main): Print memory stats if requested. (sort_bfd, sort_dynamic, sort_x, sort_y): New static variables. (numeric_forward): Use minisymbols rather than asymbols. (non_numeric_forward): Likewise. (size_forward1): Rename from size_forward. Use minisymbols. (size_forward2): New static function. (sort_symbols_by_size): Take new arguments dynamic, size, and symsizep. Use minisymbols. Don't store the size back in the symbol; store in a newly allocate struct size_sym array. (display_rel_file): Read minisymbols rather than asymbols. Set sort_* variables. Call print_size_symbols if sorting by size. (filter_symbols): Take new arguments dynamic and size. Use minisymbols. (print_symbols): Likewise. Call print_symbol for actual printing. (print_size_symbols): New static function. (print_symbol): New static function. PR 5332.
1995-07-12 * objdump.c (dump_section_stabs): Only print each stabs sectionIan Lance Taylor1-0/+7
once. (compare_relocs): Make it clear to gcc that this always returns a value.
1995-07-12Wed Jul 12 10:40:23 1995 H.J. Lu <hjl@nynexst.com>Ian Lance Taylor2-7/+52
* objcopy.c (simple_copy): Preserve errno on failure. (smart_rename): Print error mesage if simple_copy fails.