diff options
author | Steve Chamberlain <steve@cygnus> | 1991-05-18 02:58:02 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-05-18 02:58:02 +0000 |
commit | a3bb31a0432adb44ae48cf2fcf6e45f7a5db1259 (patch) | |
tree | 836c4dd053a641a0f1e0fe50266acd564ae3f3b1 /bfd | |
parent | 19b03b7aa4dd0eccffab131fd91495ef122fccc7 (diff) | |
download | gdb-a3bb31a0432adb44ae48cf2fcf6e45f7a5db1259.zip gdb-a3bb31a0432adb44ae48cf2fcf6e45f7a5db1259.tar.gz gdb-a3bb31a0432adb44ae48cf2fcf6e45f7a5db1259.tar.bz2 |
Initial revision
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/aout32.c | 4 | ||||
-rw-r--r-- | bfd/aout64.c | 5 | ||||
-rwxr-xr-x | bfd/aoutx.c | 0 | ||||
-rw-r--r-- | bfd/demo64.c | 30 | ||||
-rw-r--r-- | bfd/hosts/dose.h | 29 |
5 files changed, 68 insertions, 0 deletions
diff --git a/bfd/aout32.c b/bfd/aout32.c new file mode 100644 index 0000000..a372716 --- /dev/null +++ b/bfd/aout32.c @@ -0,0 +1,4 @@ + +#define ARCH_SIZE 32 + +#include "aoutx.h" diff --git a/bfd/aout64.c b/bfd/aout64.c new file mode 100644 index 0000000..ad97508 --- /dev/null +++ b/bfd/aout64.c @@ -0,0 +1,5 @@ +#ifdef TARGET_64_BIT +#define ARCH_SIZE 64 +#include "aoutx.h" +#endif + diff --git a/bfd/aoutx.c b/bfd/aoutx.c new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/bfd/aoutx.c diff --git a/bfd/demo64.c b/bfd/demo64.c new file mode 100644 index 0000000..cb1e4e2 --- /dev/null +++ b/bfd/demo64.c @@ -0,0 +1,30 @@ +/* BFD backend for sunos binaries */ + +/* Copyright (C) 1990, 1991 Free Software Foundation, Inc. + +This file is part of BFD, the Binary File Diddler. + +BFD 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 1, or (at your option) +any later version. + +BFD 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 BFD; see the file COPYING. If not, write to +the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +/* $Id$ */ + +/* Can only compile this if TARGET_64_BIT is set */ +#ifdef TARGET_64_BIT +#define ARCH_SIZE 64 +#define TARGETNAME "demo64" +#define VECNAME "demo_64_vec" +#include "aoutf1.h" + +#endif diff --git a/bfd/hosts/dose.h b/bfd/hosts/dose.h new file mode 100644 index 0000000..a03b49a --- /dev/null +++ b/bfd/hosts/dose.h @@ -0,0 +1,29 @@ +#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> +#ifndef O_ACCMODE +#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) +#endif +#define SEEK_SET 0 +#define SEEK_CUR 1 + +/* 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; + +/* 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; |