aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
AgeCommit message (Collapse)AuthorFilesLines
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