aboutsummaryrefslogtreecommitdiff
path: root/bfd/binary.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-09-11 11:16:19 +0000
committerNick Clifton <nickc@redhat.com>2009-09-11 11:16:19 +0000
commit8b31b6c4c83c17810ff8ccdbf88c209ba354f2d5 (patch)
tree203db61019ecbf57f49fd2f476d1561b80761764 /bfd/binary.c
parent681fe688302b73d8371727f432040dd95392bc83 (diff)
downloadgdb-8b31b6c4c83c17810ff8ccdbf88c209ba354f2d5.zip
gdb-8b31b6c4c83c17810ff8ccdbf88c209ba354f2d5.tar.gz
gdb-8b31b6c4c83c17810ff8ccdbf88c209ba354f2d5.tar.bz2
* obcopy.c (copy_object): New parameter `input_arch', architecture
of input file, if not specified in input file itself; all callers updated; `binary_architecture' hack removed. (copy_archive, copy_file): New parameter `input_arch', for `copy_object' usage. (copy_main): Accept `-B' (`--binary-architecture') option also for any arch-less input ifile format, not only `binary'; remove bfd_external_binary_architecture hack; instead, add `input_arch' to calls to `copy_file'. * windres.c, windmc.c : Obsolete and useless external references to `bfd_external_binary_architecture' or `bfd_external_machine' removed. * binary.c (binary_object_p): Remove bfd_external_binary_architecture hack. objcopy `-B' (`--binary-architecture') option is now handled in a generic way.
Diffstat (limited to 'bfd/binary.c')
-rw-r--r--bfd/binary.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/bfd/binary.c b/bfd/binary.c
index 9740756..d264a09 100644
--- a/bfd/binary.c
+++ b/bfd/binary.c
@@ -42,11 +42,6 @@
a start symbol, an end symbol, and an absolute length symbol. */
#define BIN_SYMS 3
-/* Set by external programs - specifies the BFD architecture and
- machine number to be uses when creating binary BFDs. */
-enum bfd_architecture bfd_external_binary_architecture = bfd_arch_unknown;
-unsigned long bfd_external_machine = 0;
-
/* Create a binary object. Invoked via bfd_set_format. */
static bfd_boolean
@@ -92,14 +87,6 @@ binary_object_p (bfd *abfd)
abfd->tdata.any = (void *) sec;
- if (bfd_get_arch_info (abfd) != NULL)
- {
- if ((bfd_get_arch_info (abfd)->arch == bfd_arch_unknown)
- && (bfd_external_binary_architecture != bfd_arch_unknown))
- bfd_set_arch_info (abfd, bfd_lookup_arch
- (bfd_external_binary_architecture, bfd_external_machine));
- }
-
return abfd->xvec;
}