Support for the alpha

This commit is contained in:
Steve Chamberlain
1993-04-24 02:10:09 +00:00
parent b6423cec40
commit 5f8f6d56f2
11 changed files with 4762 additions and 0 deletions

View File

@ -44,6 +44,7 @@ bfd.c
bout.c
cache.c
ctor.c
coff-alpha.c
coff-a29k.c
coff-h8300.c
coff-h8500.c
@ -84,6 +85,7 @@ ieee.c
libaout.h
libbfd-in.h
libelf.h
cpu-alpha.c
cpu-a29k.c
cpu-i386.c
cpu-m68k.c

View File

@ -1,3 +1,8 @@
Fri Apr 23 19:00:36 1993 Steve Chamberlain (sac@thepub.cygnus.com)
* coff-alpha.c, cpu-alpha.c, config/alphaosf.mt,
config/alphaosf.mt, hosts/alphaosf.h: New files.
Fri Apr 23 16:48:46 1993 Stu Grossman (grossman@cygnus.com)
* Merge in HPPA/BSD changes from Utah.

4147
bfd/coff-alpha.c Normal file

File diff suppressed because it is too large Load Diff

43
bfd/cpu-alpha.c Normal file
View File

@ -0,0 +1,43 @@
/* BFD support for the Alpha architecture.
Copyright 1992 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "bfd.h"
#include "sysdep.h"
#include "libbfd.h"
static bfd_arch_info_type arch_info_struct =
{
64, /* 32 bits in a word */
64, /* 32 bits in an address */
8, /* 8 bits in a byte */
bfd_arch_alpha,
0, /* only 1 machine */
"alpha",
"alpha",
3,
true, /* the one and only */
bfd_default_compatible,
bfd_default_scan ,
0,
};
void DEFUN_VOID(bfd_alpha_arch)
{
bfd_arch_linkin(&arch_info_struct);
}

View File

@ -25,6 +25,7 @@ Do-first:
Things-to-keep:
alphaosf.h
amix.h
apollo68.h
apollov68.h

50
bfd/hosts/alphaosf.h Normal file
View File

@ -0,0 +1,50 @@
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
#include <string.h>
#include <sys/file.h>
#include <alloca.h>
/* Make the basic types 64-bit quantities on the host */
#define HOST_64_BIT long
#ifndef DONTDECLARE_MALLOC
extern PTR EXFUN(malloc,(unsigned));
extern PTR EXFUN(realloc, (PTR, unsigned));
#endif
/* EXACT TYPES */
typedef char int8e_type;
typedef unsigned char uint8e_type;
typedef short int16e_type;
typedef unsigned short uint16e_type;
typedef int int32e_type;
typedef unsigned int uint32e_type;
typedef unsigned long uint64e_type;
/* CORRECT SIZE OR GREATER */
typedef char int8_type;
typedef unsigned char uint8_type;
typedef short int16_type;
typedef unsigned short uint16_type;
typedef int int32_type;
typedef unsigned int uint32_type;
typedef unsigned long uint64_type;
typedef long int64_type;
#define BYTES_IN_PRINTF_INT 4
#define uint64_typeLOW(x) (uint32_type)(((x) & 0xffffffff))
#define uint64_typeHIGH(x) (uint32_type)(((x) >> 32) & 0xffffffff)
#include "fopen-same.h"