X-Git-Url: https://repo.jachan.dev/binutils.git/blobdiff_plain/a07cc61341225966fd714e8715aeca6c558b5b8e..0888b4a38a90b27443704806dd7fa4e66ff58ee8:/include/oasys.h diff --git a/include/oasys.h b/include/oasys.h index 642f7526a5..214095f4b5 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; @@ -15,18 +15,45 @@ typedef struct { uint32_type xref_lst_offset; } oasys_archive_header_type; +typedef struct { + char version[4]; + char create_date[12]; + char revision_date[12]; + char mod_count[4]; + char mod_tbl_offset[4]; + char sym_tbl_size[4]; + char sym_count[4]; + char sym_tbl_offset[4]; + char xref_count[4]; + char xref_lst_offset[4]; +} oasys_external_archive_header_type; + typedef struct { int32_type mod_number; char mod_date[12]; 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; +typedef struct { + char mod_number[4]; + char mod_date[12]; + char mod_size[4]; + char dep_count[4]; + char depee_count[4]; + char sect_count[4]; + char file_offset[4]; + char mod_name[32]; +} oasys_external_module_table_type; + + + typedef enum { oasys_record_is_end_enum = 0, oasys_record_is_data_enum = 1, @@ -104,7 +131,7 @@ typedef struct { } oasys_end_record_type; -#define OASYS_MAX_SEC_COUNT 16 + typedef union { oasys_record_header_type header;