aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-04 17:07:46 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-04 17:07:46 +0000
commit0bcb993b9f9ddf2dce0a3e137d42c027ac1edf70 (patch)
treedfd566a4bcee7708f247974510be2aa99bba0904 /bfd/elf.c
parentef14edc44ec441c28a756a0b07395f2dc36af2a0 (diff)
downloadgdb-0bcb993b9f9ddf2dce0a3e137d42c027ac1edf70.zip
gdb-0bcb993b9f9ddf2dce0a3e137d42c027ac1edf70.tar.gz
gdb-0bcb993b9f9ddf2dce0a3e137d42c027ac1edf70.tar.bz2
1999-09-04 Steve Chamberlain <sac@pobox.com>
* cpu-pj.c: New file. * elf32-pj.c: New file. * config.bfd (pj*): New cpu. (pj-*-*, pjl-*-*): New targets. * configure.in (bfd_elf32_pj_vec): New target vector. (bfd_elf32_pjl_vec): New target vector. * archures.c (bfd_arch_pj): Define. * elf.c (prep_headers): Handle bfd_arch_pj. * reloc.c: Define BFD_RELOC_PJ_* relocations. * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add to target vector list. * Makefile.am: Rebuild dependencies. (ALL_MACHINES): Add cpu-pj.lo. (ALL_MACHINES_CFILES): Add cpu-pj.c. (BFD32_BACKENDS): Add elf32-pj.lo. (BFD32_BACKENDS_CFILES): Add elf32-pj.c. * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 997408c..5bfde4e 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3185,6 +3185,9 @@ prep_headers (abfd)
case bfd_arch_mn10300:
i_ehdrp->e_machine = EM_CYGNUS_MN10300;
break;
+ case bfd_arch_pj:
+ i_ehdrp->e_machine = EM_PJ;
+ break;
/* also note that EM_M32, AT&T WE32100 is unknown to bfd */
default:
i_ehdrp->e_machine = EM_NONE;