* oasys.h: Fixed shape of module structure
* bfd.h: better (but not great) fix for coff swap routines
This commit is contained in:
parent
86b2c77541
commit
50a52c1a15
|
@ -545,26 +545,22 @@ typedef struct bfd_target
|
||||||
|
|
||||||
/* Jumps for coff swapping */
|
/* Jumps for coff swapping */
|
||||||
|
|
||||||
#define AUXENT void*
|
|
||||||
#define SYMENT void*
|
|
||||||
#define LINENO void*
|
|
||||||
|
|
||||||
SDEF(void, _bfd_coff_swap_aux_in,(
|
SDEF(void, _bfd_coff_swap_aux_in,(
|
||||||
bfd *abfd ,
|
bfd *abfd ,
|
||||||
AUXENT *ext ,
|
PTR ext,
|
||||||
int type,
|
int type,
|
||||||
int class ,
|
int class ,
|
||||||
union internal_auxent *in));
|
PTR in));
|
||||||
|
|
||||||
SDEF(void, _bfd_coff_swap_sym_in,(
|
SDEF(void, _bfd_coff_swap_sym_in,(
|
||||||
bfd *abfd ,
|
bfd *abfd ,
|
||||||
SYMENT *ext ,
|
PTR ext,
|
||||||
struct internal_syment *in));
|
PTR in));
|
||||||
|
|
||||||
SDEF(void, _bfd_coff_swap_lineno_in,(
|
SDEF(void, _bfd_coff_swap_lineno_in, (
|
||||||
bfd *abfd,
|
bfd *abfd,
|
||||||
LINENO *ext,
|
PTR ext,
|
||||||
struct internal_lineno *in));
|
PTR in));
|
||||||
|
|
||||||
} bfd_target;
|
} bfd_target;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
#define OASYS_MAX_SEC_COUNT 16
|
||||||
/* **** */
|
/* **** */
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int32_type version;
|
uint32_type version;
|
||||||
char create_date[12];
|
char create_date[12];
|
||||||
char revision_date[12];
|
char revision_date[12];
|
||||||
uint32_type mod_count;
|
uint32_type mod_count;
|
||||||
|
@ -34,9 +34,10 @@ typedef struct {
|
||||||
int32_type mod_size;
|
int32_type mod_size;
|
||||||
int32_type dep_count;
|
int32_type dep_count;
|
||||||
int32_type depee_count;
|
int32_type depee_count;
|
||||||
int32_type sect_count;
|
|
||||||
int32_type file_offset;
|
int32_type file_offset;
|
||||||
int32_type mod_name_length;
|
int32_type sect_count;
|
||||||
|
char *module_name;
|
||||||
|
|
||||||
} oasys_module_table_type;
|
} oasys_module_table_type;
|
||||||
|
|
||||||
|
|
||||||
|
@ -48,10 +49,11 @@ typedef struct {
|
||||||
char depee_count[4];
|
char depee_count[4];
|
||||||
char sect_count[4];
|
char sect_count[4];
|
||||||
char file_offset[4];
|
char file_offset[4];
|
||||||
char mod_name_length[4];
|
char mod_name[32];
|
||||||
} oasys_external_module_table_type;
|
} oasys_external_module_table_type;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
oasys_record_is_end_enum = 0,
|
oasys_record_is_end_enum = 0,
|
||||||
oasys_record_is_data_enum = 1,
|
oasys_record_is_data_enum = 1,
|
||||||
|
@ -129,7 +131,7 @@ typedef struct {
|
||||||
} oasys_end_record_type;
|
} oasys_end_record_type;
|
||||||
|
|
||||||
|
|
||||||
#define OASYS_MAX_SEC_COUNT 16
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
oasys_record_header_type header;
|
oasys_record_header_type header;
|
||||||
|
|
Loading…
Reference in New Issue