mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user