aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
AgeCommit message (Collapse)AuthorFilesLines
1998-04-22 * Makefile.am (INCLUDES): Search intl dirs for headers; defineTom Tromey1-0/+4
LOCALEDIR. * addr2line.c (main): Call setlocale, bindtextdomain, textdomain. * ar.c (main): Likewise. * coffdump.c (main): Likewise. * dlltool.c (main): Likewise. * nlmconv.c (main): Likewise. * nm.c (main): Likewise. * objcopy.c (main): Likewise. * objdump.c (main): Likewise. * size.c (main): Likewise. * srconv.c (main): Likewise. * strings.c (main): Likewise. * sysdump.c (main): Likewise. * windres.c (main): Likewise.
1998-04-22 * Many files: Added gettext invocations around user-visibleTom Tromey1-49/+81
strings. * bucomm.h: Added gettext-related includes and defines. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY, HAVE_LC_MESSAGES): Define. * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile. Use AM_PROG_LEX. * Makefile.am (SUBDIRS): New macro. (POTFILES): Likewise. (po/POTFILES.in): New target. (LDADD): Added INTLLIBS. (objdump_LDADD): Likewise. (c__filt_LDADD): Likewise. (ar_LDADD): Likewise. (ranlib_LDADD): Likewise. (dlltool_LDADD): Likewise. (windres_LDADD): Likewise. * po/Make-in, po/POTFILES.in, po/binutils.pot: New files.
1996-10-01 * version.c (print_version): New function.Ian Lance Taylor1-104/+177
* bucomm.h (print_version): Declare. * ar.c (program_version): Don't declare. (do_show_version): Remove. (usage): Add help parameter. Print bug report address. (main): Set is_ranlib at start. Check for --help and --version. Call print_version, not do_show_version. * nlmconv.c (program_version): Don't declare. (main): Call print_version. (show_usage): Print bug report address. * nm.c (program_version, print_version): Don't declare. (usage): Print bug report address. (main): Call print_version. * objcopy.c (program_version): Don't declare. (copy_usage): Print bug report address. (strip_usage): Likewise. (strip_main): Call print_version. (copy_main): Likewise. * objdump.c (program_version): Don't declare. (usage): Print bug report address. (main): Call print_version. * size.c (program_version): Don't declare. (usage): Print bug report address. (main): Call print_version. * strings.c (program_version): Don't declare. (main): Call print_version. (usage): Print bug report address. * Makefile.in: Update dependencies.
1995-07-04Rename truncate to ar_truncateIan Lance Taylor1-6/+6
1995-07-04 * ar.c (replace_members): In verbose messages, use 'r' whenIan Lance Taylor1-21/+46
replacing a member, and 'a' when adding one. * ar.c (truncate): New static variable. (normalize): Change return type to const char *. Add abfd argument. Change all callers. If truncate, chop the filename to abfd->ar_max_namelen. (main): For the 'f' modifier, set truncate to true. Don't change quick_append to replace to truncate is true. (do_quick_append): If truncate, set BFD_TRADITIONAL_FORMAT. (write_archive): Likewise. * binutils.texi, ar.1: Document 'f' modifier. PR 6888.
1995-07-01 * ar.c: (extract_file): Change "#if POSIX_UTIME" toFred Fish1-1/+1
"#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME and avoid lossage when POSIX_UTIME is not defined at all.
1995-06-29 * ar.c: (print_contents.c, extract_file, do_quick_append):Steve Chamberlain1-16/+33
Malloc buffers rather than allocate on stack (so it works on NT). * deflex.l: Names can have an @ in them. * dlltool.c: Loads of stuff. Can now generate .imp files which work with NT .dlls.
1994-11-17 * ar.c (main): Don't call do_quick_append if any of the archiveIan Lance Taylor1-28/+103
names are longer than 14 characters. PR 5966.
1994-08-22 * ar.c: Include libiberty.h.Ian Lance Taylor1-68/+141
(inarch): Remove variable. (map_over_members): Make static. Add arch argument, and use it instead of inarch. Change all callers. (main): Treat --version as -v. Accept -t argument. Accept any number of archive arguments. Catch and use open_inarch return value, rather than using inarch. (open_inarch): Return newly opened BFD, rather than using inarch. (do_quick_append): Make archive_filename const. (write_archive): Add iarch argument, and use it instead of inarch. Change all callers. (delete_members, move_members, replace_members): Likewise. (ranlib_only): Don't exit on success. Catch and use open_inarch return value. (ranlib_touch): New function. * arsup.h (map_over_members): Don't declare. (ar_end, ar_extract): Declare. (open_inarch): Change return value in declaration to bfd *. * arsup.c (map_over_list): Make static. Always pass two arguments to function. Add arch argument, and use it instead of inarch. Change all callers. (ar_directory_doer): Make static. Add ignored second argument. Change all callers. (ar_directory): Use open_inarch return value rather than inarch. (ar_addlib_doer): Make static. (ar_addlib): Use open_inarch return value rather than inarch. (ar_extract): Remove unused local variable abfd.
1994-03-09 * ar.c (move_members): Fix it so that the abi positional modifiersSteve Chamberlain1-1/+4
don't delete all archive members following the insert point.
1994-02-26Sat Feb 26 13:35:26 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-6/+7
* ar.c (do_quick_append): Pad with a genuine character 10, rather than whatever '\n' might happen to be.
1994-02-03 * nlmconv.c (main): Use bfd_get_flavour instead of struct member.David MacKenzie1-2/+4
* ar.c (print_contents, extract_file), size.c (print_berkeley_format): Use bfd_get_filename and bfd_my_archive instead of dereferencing the structs directly.
1994-02-03 * ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.David MacKenzie1-654/+664
Indent. Remove DEFUNs.
1994-02-03 * nlmconv.c (main), objcopy.c (copy_file): Print matching formatsDavid MacKenzie1-12/+12
if ambiguous match. * nm.c (display_file), size.c (display_bfd): Eliminate gotos. Print matching formats if there is an ambiguous match. Use bfd_nonfatal instead of hardcoded error message if nothing matches. * arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of abfd->filename. * nm.c (display_archive): New function, from code in display_file. (display_rel_file): Renamed from do_one_rel_file. * size.c: Indent. (display_archive): New function from code in display_file. (display_file): Check bfd_close error return. * strings.c (strings_object_file): Check bfd_check_format error return. * strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror. * bucomm.c: Delete references to exit_handler. It wasn't set anywhere, and now that we're using the libiberty xmalloc, it wouldn't always get called before exiting. (list_matching_formats): Function moved from objdump.c. * bucomm.h: Declare it. * objdump.c (disassemble_data): Move some variable decls closer to their use. Add some comments. Replace a nested block with a return.
1994-01-23Minor MPW compatibility tweaks.Stan Shebs1-3/+3
1993-12-23 gcc -Wall lint:Ian Lance Taylor1-94/+90
* ar.c (main): Put parens around assignment used as truth value. * objdump.c (display_bfd): Declare return value as void. (stab_print): Use "" instead of 0 to initialize array. (dump_stabs_1): Print vma using printf_vma. (display_info): Put parens around assignment used as truth value. * strings.c (print_strings): Cast printf arguments.
1993-04-29Add hyphens in usage messages.David MacKenzie1-1/+1
1993-04-29Clean up usage messages and option parsers.David MacKenzie1-40/+48
Add program name to some error messages.
1992-11-05Missed one use of PROTO.John Gilmore1-4/+5
1992-11-05Clean up some old BFD ansification macros.John Gilmore1-16/+27
* arsup.h, bucomm.h, objdump.h: Remove EXFUN from binutils. It still remains as a local macro in gmalloc.c, which is derived from some other copy of GNU Malloc somewhere (FIXME). * ar.c, objdump.c, size.c: Replace EXFUN with PROTO. Make static fns really static. * arsup.h: Declare extract_files.
1992-11-02Mon Nov 2 12:36:14 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-18/+55
* config/delta88.mh, config/hp300.mh, config/hppahpux.mh, config/i386v.mh: removed -DUSG from HDEFINES. hosts/delta88.h, hosts/hp300.h, hosts/hppahpux.h, hosts/i386v.h: defined USE_UTIME. hosts/i386v.h: don't define POSIX_UTIME.
1992-08-20Re-do change for revision 1.28 that got trashed by 1.29.Per Bothner1-1/+0
1992-08-19Added -V option to print the version number.Rob Savoye1-0/+13
1992-08-12 * ar.c (main): Don't *always* set the verbose flag!Per Bothner1-57/+28
1992-05-05 * Makefile.in: Bump to version 1.97.Per Bothner1-3/+7
* ar.c: Declare errno for machines that need it.
1992-04-15Wed Apr 15 14:33:07 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain1-204/+226
* arsup.c, arsup.h, arparse.y, arlex.l: support for archive scripting language.
1991-12-12 * ar.c: added "b" to fopens for dosSteve Chamberlain1-24/+23
* configdj.bat, makefile.dos new files from DJ
1991-11-09Now runs write_armap, even when listing contents.Steve Chamberlain1-21/+11
1991-10-29Don't care about an unlink failureSteve Chamberlain1-2/+5
1991-10-28 * ar.c (write_archive.c): added unlink before rename since someSteve Chamberlain1-5/+31
systems can't rename onto an existant file.
1991-04-23*** empty log message ***Steve Chamberlain1-2/+2
1991-04-19fix a smallie but nasttie.David Henkel-Wallace1-2/+2
1991-04-19allow the user to specify a file more than once on the command line --David Henkel-Wallace1-1/+8
the duplicate references are ignored. ::wq
1991-04-19*** empty log message ***David Henkel-Wallace1-4/+53
1991-04-17fix two small bugs: quick-append no longer used to create fresh archives;David Henkel-Wallace1-13/+33
ar t on a non-existant file does not claim to create it.
1991-03-21Initial revisionDavid Henkel-Wallace1-0/+850