diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-02-18 17:09:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-02-18 17:09:13 +0000 |
commit | 99ec1f66c17e5f363b18a546da336bf3932fc41e (patch) | |
tree | 31ab85c7bb48f2b806fefd520f3ceb8a71c2d977 /bfd/elfcode.h | |
parent | f42f505b519b49687be2ae1b360d88258a159b5c (diff) | |
download | gdb-99ec1f66c17e5f363b18a546da336bf3932fc41e.zip gdb-99ec1f66c17e5f363b18a546da336bf3932fc41e.tar.gz gdb-99ec1f66c17e5f363b18a546da336bf3932fc41e.tar.bz2 |
start-sanitize-powerpc-netware
Support for PowerPC NetWare.
* config.bfd (powerpc-*-netware*): New target; use ppc-nlm.
* config/ppc-nlm.mt: New file.
* configure.in (nlm32_powerpc_vec): New target vector; use
nlm32-powerpc.o, nlm32.o, nlm.o.
* targets.c (nlm32_powerpc_vec): Declare.
* Makefile.in (BFD32_BACKENDS): Add nlm32-powerpc.o.
(CFILES): Should add nlm32-powerpc.c, but didn't, because the
dependencies can't be sanitized.
end-sanitize-powerpc-netware
Initial support for PowerPC ELF. Done without an ABI, and
probably to be changed when I get an ABI.
* config.bfd (powerpc-*-sysv4*): New target; use ppc-elf.
* config/ppc-elf.mt: New file.
* configure.in (bfd_elf32_powerpc_vec): New target vector; use
elf32-powerpc.o, elf32.o, elf.o.
* elf32-powerpc.c: New file.
* elfcode.h (prep_headers): Add bfd_arch_powerpc case.
(elf_set_arch_mach): Likewise.
* targets.c (bfd_elf32_powerpc_vec): Declare.
* Makefile.in (BFD32_BACKENDS): Add elf32-powerpc.o.
(CFILES): Add elf32-powerpc.c.
Rebuilt dependencies.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index fa5ee73..46dda15 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -2061,6 +2061,9 @@ prep_headers (abfd) case bfd_arch_hppa: i_ehdrp->e_machine = EM_HPPA; break; + case bfd_arch_powerpc: + i_ehdrp->e_machine = EM_CYGNUS_POWERPC; + break; /* also note that EM_M32, AT&T WE32100 is unknown to bfd */ default: i_ehdrp->e_machine = EM_NONE; @@ -3161,6 +3164,7 @@ DEFUN (elf_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; |