diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-09-26 16:56:28 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-09-26 16:56:28 +0000 |
commit | fcf490c05f5bfe2a302c3309f51a863606a2a972 (patch) | |
tree | cc0f37fc2b13f2bebac8fec6850fa8236b2157a4 /bfd/aoutx.h | |
parent | 7a7fbffb25e87d2399478a82f6f41343ea78450a (diff) | |
download | gdb-fcf490c05f5bfe2a302c3309f51a863606a2a972.zip gdb-fcf490c05f5bfe2a302c3309f51a863606a2a972.tar.gz gdb-fcf490c05f5bfe2a302c3309f51a863606a2a972.tar.bz2 |
* aoutx.h (translate_from_native_sym_flags): Don't try to stuff
pointers into value field for warning and indirect symbols; just
leave the value field alone.
* linker.c (generic_link_add_symbol_list): Use next symbol for
warning and indirect symbols, rather than looking in symbol value.
* ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
parameter. Change all callers. Remove support for indirect
symbols; it didn't work anyhow.
(_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
* syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
* bfd-in2.h: Rebuild.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 39b6841..f5921cc 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -1481,16 +1481,7 @@ translate_from_native_sym_flags (abfd, cache_ptr) symbol is the symbol to associate the warning with. If a reference is made to that symbol, a warning is issued. */ cache_ptr->symbol.flags = BSF_DEBUGGING | BSF_WARNING; - - /* @@ Stuffing pointers into integers is a no-no. We can - usually get away with it if the integer is large enough - though. */ - if (sizeof (cache_ptr + 1) > sizeof (bfd_vma)) - abort (); - cache_ptr->symbol.value = (bfd_vma) (cache_ptr + 1); - cache_ptr->symbol.section = bfd_abs_section_ptr; - break; case N_INDR: case N_INDR | N_EXT: @@ -1499,16 +1490,7 @@ translate_from_native_sym_flags (abfd, cache_ptr) symbol is the name of the target. A reference to the first symbol becomes a reference to the second. */ cache_ptr->symbol.flags = BSF_DEBUGGING | BSF_INDIRECT | visible; - - /* @@ Stuffing pointers into integers is a no-no. We can - usually get away with it if the integer is large enough - though. */ - if (sizeof (cache_ptr + 1) > sizeof (bfd_vma)) - abort (); - cache_ptr->symbol.value = (bfd_vma) (cache_ptr + 1); - cache_ptr->symbol.section = bfd_ind_section_ptr; - break; case N_WEAKU: |