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 | 8b31b6c4c83c17810ff8ccdbf88c209ba354f2d5 (patch) | |
tree | 203db61019ecbf57f49fd2f476d1561b80761764 /bfd | |
parent | 681fe688302b73d8371727f432040dd95392bc83 (diff) | |
download | gdb-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')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/binary.c | 13 |
2 files changed, 6 insertions, 13 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a4d85b9..795f00d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2009-09-11 Philippe De Muyter <phdm@macqel.be> + + * binary.c (binary_object_p): Remove bfd_external_binary_architecture + hack. objcopy `-B' (`--binary-architecture') option is now handled + in a generic way. + 2009-09-11 Nick Clifton <nickc@redhat.com> * rs6000-core.c (read_hdr): Fix typo in recent C++ compatibility 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; } |