This commit is contained in:
Steve Chamberlain 1991-05-08 19:23:35 +00:00
parent d0ec7a8ee4
commit a0ad303552
3 changed files with 14 additions and 15 deletions

View file

@ -102,7 +102,7 @@ PROTO (void, _do_putlshort, (int data, unsigned char *addr));
PROTO (boolean, bfd_false, (bfd *ignore));
PROTO (boolean, bfd_true, (bfd *ignore));
PROTO (void *, bfd_nullvoidptr, (bfd *ignore));
PROTO (PTR, bfd_nullvoidptr, (bfd *ignore));
PROTO (int, bfd_0, (bfd *ignore));
PROTO (unsigned int, bfd_0u, (bfd *ignore));
PROTO (void, bfd_void, (bfd *ignore));

View file

@ -38,11 +38,12 @@ typedef struct ieee_per_section
typedef struct {
typedef struct
{
boolean read_symbols;
boolean read_data;
unsigned char *input_p;
unsigned char *first_byte;
unsigned char *input_p;
unsigned char *first_byte;
file_ptr output_cursor;
/* Map of section indexes to section ptrs */
asection * section_table[NSECTIONS];
@ -51,8 +52,6 @@ unsigned char *first_byte;
ieee_w_variable_type w;
unsigned int section_count;
struct obstack ieee_obstack;
unsigned int map_idx;
/* List of GLOBAL EXPORT symbols */
@ -61,7 +60,7 @@ unsigned char *first_byte;
ieee_symbol_type *external_reference;
/* When the symbols have been canonicalized, they are in a
* special order, we remember various bases here.. */
* special order, we remember various bases here.. */
unsigned int external_symbol_max_index;
unsigned int external_symbol_min_index;
unsigned int external_symbol_count;
@ -72,7 +71,7 @@ unsigned char *first_byte;
unsigned int external_reference_count;
int external_reference_base_offset;
bfd *abfd;
boolean symbol_table_full;
} ieee_data_type;

View file

@ -506,7 +506,7 @@ DEFUN(init_os,(s),
/* We initialize an output sections output offset to minus its own */
/* vma to allow us to output a section through itself */
s->bfd_section->output_offset = 0;
get_userdata( s->bfd_section) = new;
get_userdata( s->bfd_section) = (PTR)new;
}
/***********************************************************************
@ -1996,7 +1996,7 @@ DEFUN_VOID(lang_process)
current_target = default_target;
lang_for_each_statement(open_input_bfds);
common_section.userdata = &common_section_userdata;
common_section.userdata = (PTR)&common_section_userdata;
/* Run through the contours of the script and attatch input sections
to the correct output sections