aboutsummaryrefslogtreecommitdiff
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
commit85b1c36d3172747a7587cbae0f5db46de2bffcd6 (patch)
treea794561d12ed4fc24570e56ff3ed2c51ec02424f /binutils/binemul.c
parentc7f05afbc5bd49bf658ac14324117f7a257633cc (diff)
downloadgdb-85b1c36d3172747a7587cbae0f5db46de2bffcd6.zip
gdb-85b1c36d3172747a7587cbae0f5db46de2bffcd6.tar.gz
gdb-85b1c36d3172747a7587cbae0f5db46de2bffcd6.tar.bz2
* 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 3f6ed65..3193a80 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)