diff options
author | David MacKenzie <djm@cygnus> | 1994-01-18 12:05:32 +0000 |
---|---|---|
committer | David MacKenzie <djm@cygnus> | 1994-01-18 12:05:32 +0000 |
commit | 0c205af2c5f39a0cb37e9a9088bcb32bcb6caf66 (patch) | |
tree | ee1880847da4fd32fbf787dc5b8fe7fae0d08b36 /bfd/aoutx.h | |
parent | 5cc730861d03cf41d5857206ea1839f6490e764d (diff) | |
download | gdb-0c205af2c5f39a0cb37e9a9088bcb32bcb6caf66.zip gdb-0c205af2c5f39a0cb37e9a9088bcb32bcb6caf66.tar.gz gdb-0c205af2c5f39a0cb37e9a9088bcb32bcb6caf66.tar.bz2 |
* aoutx.h (translate_from_native_sym_flags): Give warning symbols
an (unused) nonzero section value, needed for check below.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index f82992e..59137a0 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -1168,6 +1168,11 @@ DEFUN (translate_from_native_sym_flags, (sym_pointer, cache_ptr, abfd), abort (); cache_ptr->symbol.value = (bfd_vma) ((cache_ptr + 1)); + /* We don't use a warning symbol's section, but we need + it to be nonzero for the sanity check below, so + pick one arbitrarily. */ + cache_ptr->symbol.section = &bfd_abs_section; + /* We furgle with the next symbol in place. We don't want it to be undefined, we'll trample the type */ (sym_pointer + 1)->e_type[0] = 0xff; |