summaryrefslogtreecommitdiff
path: root/binutils/binemul.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-04-29 00:03:33 +0000
committerBen Elliston <bje@au.ibm.com>2005-04-29 00:03:33 +0000
commit9696eb0ce48a1b31edb5bff32c2f8b8c7d2ba73a (patch)
tree70e039e4117eccd83a96fa7c9a8283f69ac22928 /binutils/binemul.c
parent5723b77965439578f133e2c3a90f81d9eb3b6eeb (diff)
downloadbinutils-redhat-9696eb0ce48a1b31edb5bff32c2f8b8c7d2ba73a.tar.gz
* ar.c (mri_mode): Make static.
* arsup.c (obfd, real_name, outfile): Likewise. * binemul.c (ar_emul_create): Remove unused function. (ar_emul_default_create): Likewise. * binemul.h (ar_emul_create): Remove declaration. (ar_emul_default_create): Likewise. (struct bin_emulation_xfer_struct): Remove ar_create member. * bucomm.c (report): Make static. * bucomm.h (report): Remove declaration. * cxxfilt.c (mbuffer): Make static. (main): Use unsigned ints for some loop control variables. * readelf.c: Make many global variables static. * size.c (berkeley_format): Make static. (long_options): Likewise. * emul_aix.c (bin_aix_emulation): Remove ar_emul_default_create structure initialiser. (bin_aix5_emulation): Likewise. * emul_vanilla.c (bin_vanilla_emulation): Likewise.
Diffstat (limited to 'binutils/binemul.c')
-rw-r--r--binutils/binemul.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/binutils/binemul.c b/binutils/binemul.c
index 3f6ed6573d..3193a80d21 100644
--- a/binutils/binemul.c
+++ b/binutils/binemul.c
@@ -90,47 +90,6 @@ ar_emul_default_replace (bfd **after_bfd, char *file_name,
}
bfd_boolean
-ar_emul_create (bfd **abfd_out, char *archive_file_name, char *file_name)
-{
- if (bin_dummy_emulation.ar_create)
- return bin_dummy_emulation.ar_create (abfd_out, archive_file_name,
- file_name);
-
- return FALSE;
-}
-
-bfd_boolean
-ar_emul_default_create (bfd **abfd_out, char *archive_file_name,
- char *file_name)
-{
- char *target = NULL;
-
- /* Try to figure out the target to use for the archive from the
- first object on the list. */
- if (file_name != NULL)
- {
- bfd *obj;
-
- obj = bfd_openr (file_name, NULL);
- if (obj != NULL)
- {
- if (bfd_check_format (obj, bfd_object))
- target = bfd_get_target (obj);
- (void) bfd_close (obj);
- }
- }
-
- /* Create an empty archive. */
- *abfd_out = bfd_openw (archive_file_name, target);
- if (*abfd_out == NULL
- || ! bfd_set_format (*abfd_out, bfd_archive)
- || ! bfd_close (*abfd_out))
- bfd_fatal (archive_file_name);
-
- return TRUE;
-}
-
-bfd_boolean
ar_emul_parse_arg (char *arg)
{
if (bin_dummy_emulation.ar_parse_arg)