diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-15 15:29:44 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-15 15:29:44 +0000 |
commit | 2cd086e38750f157f0e38c174848929b2c7abf95 (patch) | |
tree | 09a1488283377295feceaa127123fc05efa2af40 /bfd/aoutx.h | |
parent | d63d0479d95d6ee756bbdfd3b4dca53690fc9641 (diff) | |
download | gdb-2cd086e38750f157f0e38c174848929b2c7abf95.zip gdb-2cd086e38750f157f0e38c174848929b2c7abf95.tar.gz gdb-2cd086e38750f157f0e38c174848929b2c7abf95.tar.bz2 |
* aoutx.h (translate_from_native_sym_flags): Treat N_SETV symbols
as N_DATA symbols.
(aout_link_add_symbols): Likewise.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 23978fe..97d3f61 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -1251,6 +1251,13 @@ translate_from_native_sym_flags (abfd, cache_ptr) cache_ptr->symbol.flags = visible; break; + /* N_SETV symbols used to represent set vectors placed in the + data section. They are no longer generated. Theoretically, + it was possible to extract the entries and combine them with + new ones, although I don't know if that was ever actually + done. Unless that feature is restored, treat them as data + symbols. */ + case N_SETV: case N_SETV | N_EXT: case N_DATA: case N_DATA | N_EXT: cache_ptr->symbol.section = obj_datasec (abfd); cache_ptr->symbol.value -= cache_ptr->symbol.section->vma; @@ -3116,6 +3123,9 @@ aout_link_add_symbols (abfd, info) value -= bfd_get_section_vma (abfd, section); break; case N_DATA | N_EXT: + case N_SETV | N_EXT: + /* Treat N_SETV symbols as N_DATA symbol; see comment in + translate_from_native_sym_flags. */ section = obj_datasec (abfd); value -= bfd_get_section_vma (abfd, section); break; |