Copyright (C) 2001-2024 Free Software Foundation, Inc.
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 3, 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., 51 Franklin Street - Fifth Floor,
Boston, MA 02110-1301, USA.
Contributed by Cygnus Support. */
#define OASYS_MAX_SEC_COUNT 16
/* **** */
typedef struct oasys_archive_header
{
unsigned int version;
char create_date[12];
char revision_date[12];
unsigned int mod_count;
file_ptr mod_tbl_offset;
unsigned int sym_tbl_size;
unsigned int sym_count;
file_ptr sym_tbl_offset;
unsigned int xref_count;
file_ptr xref_lst_offset;
}
oasys_archive_header_type;
typedef struct oasys_module_table
{
int mod_number;
char mod_date[12];
unsigned int mod_size;
unsigned int dep_count;
unsigned int depee_count;
file_ptr file_offset;
unsigned int sect_count;
char *module_name;
unsigned int module_name_size;
}
oasys_module_table_type;
typedef struct oasys_data_record
{
oasys_record_header_type header;
unsigned char relb;
bfd_byte addr[4];
/* maximum total size of data record is 255 bytes */
bfd_byte data[246];
}
oasys_data_record_type;