xref: /openbsd-src/gnu/usr.bin/binutils/bfd/cpu-ia64.c (revision d2201f2f89f0be1a0be6f7568000ed297414a06d)
15f210c2aSfgsch /* BFD support for the ia64 architecture.
2*d2201f2fSdrahn    Copyright 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
35f210c2aSfgsch    Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
45f210c2aSfgsch 
55f210c2aSfgsch This file is part of BFD, the Binary File Descriptor library.
65f210c2aSfgsch 
75f210c2aSfgsch This program is free software; you can redistribute it and/or modify
85f210c2aSfgsch it under the terms of the GNU General Public License as published by
95f210c2aSfgsch the Free Software Foundation; either version 2 of the License, or
105f210c2aSfgsch (at your option) any later version.
115f210c2aSfgsch 
125f210c2aSfgsch This program is distributed in the hope that it will be useful,
135f210c2aSfgsch but WITHOUT ANY WARRANTY; without even the implied warranty of
145f210c2aSfgsch MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
155f210c2aSfgsch GNU General Public License for more details.
165f210c2aSfgsch 
175f210c2aSfgsch You should have received a copy of the GNU General Public License
185f210c2aSfgsch along with this program; if not, write to the Free Software
195f210c2aSfgsch Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
205f210c2aSfgsch 
215f210c2aSfgsch #include "bfd.h"
225f210c2aSfgsch #include "sysdep.h"
235f210c2aSfgsch #include "libbfd.h"
245f210c2aSfgsch 
255f210c2aSfgsch const bfd_arch_info_type bfd_ia64_elf32_arch =
265f210c2aSfgsch   {
275f210c2aSfgsch     64,	/* 64 bits in a word */
285f210c2aSfgsch     32,	/* 32 bits in an address */
295f210c2aSfgsch     8,	/* 8 bits in a byte */
305f210c2aSfgsch     bfd_arch_ia64,
315f210c2aSfgsch     bfd_mach_ia64_elf32,
325f210c2aSfgsch     "ia64",
335f210c2aSfgsch     "ia64-elf32",
345f210c2aSfgsch     3,	/* log2 of section alignment */
35*d2201f2fSdrahn     TRUE, /* the one and only */
365f210c2aSfgsch     bfd_default_compatible,
375f210c2aSfgsch     bfd_default_scan ,
385f210c2aSfgsch     0,
395f210c2aSfgsch   };
405f210c2aSfgsch 
415f210c2aSfgsch const bfd_arch_info_type bfd_ia64_arch =
425f210c2aSfgsch   {
435f210c2aSfgsch     64,	/* 64 bits in a word */
445f210c2aSfgsch     64,	/* 64 bits in an address */
455f210c2aSfgsch     8,	/* 8 bits in a byte */
465f210c2aSfgsch     bfd_arch_ia64,
475f210c2aSfgsch     bfd_mach_ia64_elf64,
485f210c2aSfgsch     "ia64",
495f210c2aSfgsch     "ia64-elf64",
505f210c2aSfgsch     3,	/* log2 of section alignment */
51*d2201f2fSdrahn     TRUE, /* the one and only */
525f210c2aSfgsch     bfd_default_compatible,
535f210c2aSfgsch     bfd_default_scan ,
545f210c2aSfgsch     &bfd_ia64_elf32_arch,
555f210c2aSfgsch   };
565f210c2aSfgsch 
575f210c2aSfgsch #include "cpu-ia64-opc.c"
58