aboutsummaryrefslogtreecommitdiff
path: root/include/oasys.h
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-06-07 01:32:32 +0000
committerSteve Chamberlain <steve@cygnus>1991-06-07 01:32:32 +0000
commit50a52c1a15d2bf6cf3d8c6355e833d5dba07d63a (patch)
tree5208bde79bdbdfd83884495d8f11af236c52f1dd /include/oasys.h
parent86b2c77541578f3fb57438376afc3dce35b49f98 (diff)
downloadgdb-50a52c1a15d2bf6cf3d8c6355e833d5dba07d63a.zip
gdb-50a52c1a15d2bf6cf3d8c6355e833d5dba07d63a.tar.gz
gdb-50a52c1a15d2bf6cf3d8c6355e833d5dba07d63a.tar.bz2
* oasys.h: Fixed shape of module structure
* bfd.h: better (but not great) fix for coff swap routines
Diffstat (limited to 'include/oasys.h')
-rw-r--r--include/oasys.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/oasys.h b/include/oasys.h
index b54a3fe..214095f 100644
--- a/include/oasys.h
+++ b/include/oasys.h
@@ -1,9 +1,9 @@
-
+#define OASYS_MAX_SEC_COUNT 16
/* **** */
typedef struct {
- int32_type version;
+ uint32_type version;
char create_date[12];
char revision_date[12];
uint32_type mod_count;
@@ -34,9 +34,10 @@ typedef struct {
int32_type mod_size;
int32_type dep_count;
int32_type depee_count;
- int32_type sect_count;
int32_type file_offset;
- int32_type mod_name_length;
+ int32_type sect_count;
+ char *module_name;
+
} oasys_module_table_type;
@@ -48,10 +49,11 @@ typedef struct {
char depee_count[4];
char sect_count[4];
char file_offset[4];
- char mod_name_length[4];
+ char mod_name[32];
} oasys_external_module_table_type;
+
typedef enum {
oasys_record_is_end_enum = 0,
oasys_record_is_data_enum = 1,
@@ -129,7 +131,7 @@ typedef struct {
} oasys_end_record_type;
-#define OASYS_MAX_SEC_COUNT 16
+
typedef union
{
oasys_record_header_type header;