| 1 | |
| 2 | |
| 3 | typedef struct { |
| 4 | asymbol symbol; |
| 5 | } oasys_symbol_type; |
| 6 | |
| 7 | typedef struct oasys_reloc_struct { |
| 8 | arelent relent; |
| 9 | struct oasys_reloc_struct *next; |
| 10 | unsigned int symbol; |
| 11 | } oasys_reloc_type; |
| 12 | |
| 13 | |
| 14 | #define oasys_symbol(x) ((oasys_symbol_type *)(x)) |
| 15 | #define oasys_per_section(x) ((oasys_per_section_type *)(x->used_by_bfd)) |
| 16 | typedef struct oasys_per_section_struct |
| 17 | { |
| 18 | asection *section; |
| 19 | bfd_byte *data; |
| 20 | bfd_vma offset; |
| 21 | |
| 22 | oasys_reloc_type **reloc_tail_ptr; |
| 23 | bfd_vma pc; |
| 24 | /* For output */ |
| 25 | struct obstack reloc_obstack; |
| 26 | file_ptr current_pos; |
| 27 | unsigned int current_byte; |
| 28 | boolean initialized; |
| 29 | } oasys_per_section_type; |
| 30 | |
| 31 | #define NSECTIONS 10 |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | typedef struct { |
| 38 | file_ptr file_offset; |
| 39 | bfd *abfd; |
| 40 | } oasys_ar_obstack_type; |
| 41 | |
| 42 | |
| 43 | typedef struct { |
| 44 | file_ptr pos; |
| 45 | unsigned int size; |
| 46 | bfd *abfd; |
| 47 | char *name; |
| 48 | |
| 49 | } oasys_module_info_type; |
| 50 | |
| 51 | typedef struct { |
| 52 | oasys_module_info_type *module; |
| 53 | unsigned int module_count; |
| 54 | unsigned int module_index; |
| 55 | } oasys_ar_data_type; |
| 56 | |
| 57 | typedef struct { |
| 58 | |
| 59 | char *strings; |
| 60 | asymbol *symbols; |
| 61 | unsigned int symbol_string_length; |
| 62 | asection *sections[OASYS_MAX_SEC_COUNT]; |
| 63 | file_ptr first_data_record; |
| 64 | } oasys_data_type; |
| 65 | |
| 66 | #define oasys_data(abfd) ((oasys_data_type *)((abfd)->tdata)) |
| 67 | #define oasys_ar_data(abfd) ((oasys_ar_data_type *)((abfd)->tdata)) |
| 68 | |
| 69 | |
| 70 | |