diff options
author | Nick Clifton <nickc@redhat.com> | 2009-09-11 11:16:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-09-11 11:16:19 +0000 |
commit | 79eec5eda1b569595878141a3e37b16a5aa4844f (patch) | |
tree | 303ea274d67a1ffb6d1c6c19f2e8779820a242e0 /bfd/binary.c | |
parent | c2e9312f0828816e70cf926cd41ec1b0a7c12a66 (diff) | |
download | binutils-redhat-79eec5eda1b569595878141a3e37b16a5aa4844f.tar.gz |
* 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.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/bfd/binary.c b/bfd/binary.c index 97407567d5..d264a09209 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; } |