diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-06-14 13:26:42 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-06-14 13:26:42 +0000 |
commit | 77f762d6e434fcb47cf40b846f0c7449da357f7c (patch) | |
tree | 2684a16ba0bab568febd6047d2a32dad7a051c2c /binutils/bucomm.h | |
parent | c256ffe730940b16eddc0634dedf07cb712ac040 (diff) | |
download | gdb-77f762d6e434fcb47cf40b846f0c7449da357f7c.zip gdb-77f762d6e434fcb47cf40b846f0c7449da357f7c.tar.gz gdb-77f762d6e434fcb47cf40b846f0c7449da357f7c.tar.bz2 |
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 aa152fa..8639646 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; |