* aoutx.h (translate_from_native_sym_flags): Treat N_SETV symbols
as N_DATA symbols. (aout_link_add_symbols): Likewise.
This commit is contained in:
parent
d63d0479d9
commit
2cd086e387
|
@ -1,5 +1,9 @@
|
||||||
Wed Jun 15 01:34:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
Wed Jun 15 01:34:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
* aoutx.h (translate_from_native_sym_flags): Treat N_SETV symbols
|
||||||
|
as N_DATA symbols.
|
||||||
|
(aout_link_add_symbols): Likewise.
|
||||||
|
|
||||||
* aoutx.h: Rewrite symbol duplicate elimination to use BFD hash
|
* aoutx.h: Rewrite symbol duplicate elimination to use BFD hash
|
||||||
tables.
|
tables.
|
||||||
(struct stringtab_entry, struct stringtab_data): Remove.
|
(struct stringtab_entry, struct stringtab_data): Remove.
|
||||||
|
|
10
bfd/aoutx.h
10
bfd/aoutx.h
|
@ -1251,6 +1251,13 @@ translate_from_native_sym_flags (abfd, cache_ptr)
|
||||||
cache_ptr->symbol.flags = visible;
|
cache_ptr->symbol.flags = visible;
|
||||||
break;
|
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:
|
case N_DATA: case N_DATA | N_EXT:
|
||||||
cache_ptr->symbol.section = obj_datasec (abfd);
|
cache_ptr->symbol.section = obj_datasec (abfd);
|
||||||
cache_ptr->symbol.value -= cache_ptr->symbol.section->vma;
|
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);
|
value -= bfd_get_section_vma (abfd, section);
|
||||||
break;
|
break;
|
||||||
case N_DATA | N_EXT:
|
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);
|
section = obj_datasec (abfd);
|
||||||
value -= bfd_get_section_vma (abfd, section);
|
value -= bfd_get_section_vma (abfd, section);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue