diff options
author | H.J. Lu <hjl@lucon.org> | 2005-06-14 13:26:42 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2005-06-14 13:26:42 +0000 |
commit | e2b4679c0267da67fe7498ab3666a63276beb0d4 (patch) | |
tree | ccede286481b2a9faf8e741988d34a572a054aa1 /binutils/bucomm.h | |
parent | bd2cfc9a7b8f8e608d766d372b789356c9ca3ece (diff) | |
download | binutils-redhat-e2b4679c0267da67fe7498ab3666a63276beb0d4.tar.gz |
2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
PR 995
* ar.c (BUFSIZE): Moved to ...
* bucomm.h (BUFSIZE): Here.
* bucomm.c: Include <assert.h>.
(bfd_get_archive_filename): New.
* bucomm.h (bfd_get_archive_filename): New.
* objcopy.c (copy_unknown_object): New.
(copy_object): Use bfd_get_archive_filename when reporting input
error. Don't call fatal on unknown arch.
(copy_archive): Call copy_unknown_object on unknown format or
arch.
Diffstat (limited to 'binutils/bucomm.h')
-rw-r--r-- | binutils/bucomm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/bucomm.h b/binutils/bucomm.h index aa152fa83a..863964611c 100644 --- a/binutils/bucomm.h +++ b/binutils/bucomm.h @@ -147,7 +147,14 @@ void *alloca (); # define N_(String) (String) #endif +/* Used by ar.c and objcopy.c. */ +#define BUFSIZE 8192 + /* bucomm.c */ + +/* Return the filename in a static buffer. */ +const char *bfd_get_archive_filename (bfd *); + void bfd_nonfatal (const char *); void bfd_fatal (const char *) ATTRIBUTE_NORETURN; |