* aout-adobe.c (aout_adobe_set_arch_mach): Check return value of
bfd_default_set_arch_mach. Accept bfd_arch_m68k as well as bfd_arch_unknown. * elfcode.h (elf_set_arch_mach): Don't check a list of ELF architectures, just see if the desired architecture matches what the ELF backend permits.
This commit is contained in:
parent
f90025150f
commit
80a903c960
2 changed files with 21 additions and 16 deletions
|
@ -1,5 +1,18 @@
|
||||||
Fri Apr 22 11:08:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
Fri Apr 22 11:08:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
* aout-adobe.c (aout_adobe_set_arch_mach): Check return value of
|
||||||
|
bfd_default_set_arch_mach. Accept bfd_arch_m68k as well as
|
||||||
|
bfd_arch_unknown.
|
||||||
|
* coffcode.h (coff_set_arch_mach): Check return value of
|
||||||
|
bfd_default_set_arch_mach.
|
||||||
|
* elfcode.h (elf_set_arch_mach): Don't check a list of ELF
|
||||||
|
architectures, just see if the desired architecture matches what
|
||||||
|
the ELF backend permits.
|
||||||
|
|
||||||
|
* coffcode.h (coff_set_arch_mach_hook): Rename SHMAGIC to
|
||||||
|
SH_ARCH_MAGIC to match change in coff/sh.h.
|
||||||
|
(coff_set_flags): Likewise.
|
||||||
|
|
||||||
Follow convention in which each NLM header has an 8 byte stamp
|
Follow convention in which each NLM header has an 8 byte stamp
|
||||||
followed by a four byte length.
|
followed by a four byte length.
|
||||||
* libnlm.h (struct nlm_obj_tdata): Rename nlm_cygnus_section_hdr
|
* libnlm.h (struct nlm_obj_tdata): Rename nlm_cygnus_section_hdr
|
||||||
|
|
|
@ -3237,22 +3237,14 @@ elf_set_arch_mach (abfd, arch, machine)
|
||||||
enum bfd_architecture arch;
|
enum bfd_architecture arch;
|
||||||
unsigned long machine;
|
unsigned long machine;
|
||||||
{
|
{
|
||||||
/* Allow any architecture to be supported by the elf backend */
|
/* If this isn't the right architecture for this backend, and this
|
||||||
switch (arch)
|
isn't the generic backend, fail. */
|
||||||
{
|
if (arch != get_elf_backend_data (abfd)->arch
|
||||||
case bfd_arch_unknown: /* EM_NONE */
|
&& arch != bfd_arch_unknown
|
||||||
case bfd_arch_sparc: /* EM_SPARC */
|
&& get_elf_backend_data (abfd)->arch != bfd_arch_unknown)
|
||||||
case bfd_arch_i386: /* EM_386 */
|
return false;
|
||||||
case bfd_arch_m68k: /* EM_68K */
|
|
||||||
case bfd_arch_m88k: /* EM_88K */
|
return bfd_default_set_arch_mach (abfd, arch, machine);
|
||||||
case bfd_arch_i860: /* EM_860 */
|
|
||||||
case bfd_arch_mips: /* EM_MIPS (MIPS R3000) */
|
|
||||||
case bfd_arch_hppa: /* EM_HPPA (HP PA_RISC) */
|
|
||||||
case bfd_arch_powerpc: /* EM_CYGNUS_POWERPC */
|
|
||||||
return bfd_default_set_arch_mach (abfd, arch, machine);
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean
|
boolean
|
||||||
|
|
Loading…
Reference in a new issue