diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-10-17 23:59:36 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-10-17 23:59:36 +0000 |
commit | b7881f82eeb99623eb44950561a805e8052e7554 (patch) | |
tree | 8cf81e87a54fc7a0160a8e11f9fd6489090edd04 /bfd/oasys.c | |
parent | 62d396892bb5bf2deb9e1422a0ff9ed88a92f93b (diff) | |
download | gdb-b7881f82eeb99623eb44950561a805e8052e7554.zip gdb-b7881f82eeb99623eb44950561a805e8052e7554.tar.gz gdb-b7881f82eeb99623eb44950561a805e8052e7554.tar.bz2 |
* oasys.c (oasys_slurp_symbol_table): Use udata.p rather than just
udata.
Diffstat (limited to 'bfd/oasys.c')
-rw-r--r-- | bfd/oasys.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bfd/oasys.c b/bfd/oasys.c index 6d85443..26876e3 100644 --- a/bfd/oasys.c +++ b/bfd/oasys.c @@ -148,7 +148,7 @@ oasys_slurp_symbol_table (abfd) { case RELOCATION_TYPE_ABS: dest = dest_defined--; - dest->section = &bfd_abs_section; + dest->section = bfd_abs_section_ptr; dest->flags = 0; break; @@ -176,14 +176,14 @@ oasys_slurp_symbol_table (abfd) break; case RELOCATION_TYPE_UND: dest = data->symbols + bfd_h_get_16 (abfd, record.symbol.refno); - dest->section = &bfd_und_section; + dest->section = bfd_und_section_ptr; break; case RELOCATION_TYPE_COM: dest = dest_defined--; dest->name = string_ptr; dest->the_bfd = abfd; - dest->section = &bfd_com_section; + dest->section = bfd_com_section_ptr; break; default: @@ -193,7 +193,7 @@ oasys_slurp_symbol_table (abfd) } dest->name = string_ptr; dest->the_bfd = abfd; - dest->udata = (PTR) NULL; + dest->udata.p = (PTR) NULL; dest->value = bfd_h_get_32 (abfd, record.symbol.value); #ifdef UNDERSCORE_HACK @@ -954,13 +954,13 @@ oasys_write_syms (abfd) bfd_h_put_16 (abfd, index, symbol.refno); index++; } - else if (g->section == &bfd_abs_section) + else if (bfd_is_abs_section (g->section)) { symbol.relb = RELOCATION_TYPE_ABS; bfd_h_put_16 (abfd, 0, symbol.refno); } - else if (g->section == &bfd_und_section) + else if (bfd_is_und_section (g->section)) { symbol.relb = RELOCATION_TYPE_UND; bfd_h_put_16 (abfd, index, symbol.refno); @@ -1480,6 +1480,7 @@ oasys_sizeof_headers (abfd, exec) ((boolean (*) \ PARAMS ((bfd *, unsigned int, struct orl *, unsigned int, int))) \ bfd_true) +#define oasys_update_armap_timestamp bfd_true #define oasys_bfd_is_local_label bfd_generic_is_local_label #define oasys_get_lineno _bfd_nosymbols_get_lineno |