* sunos.c (sunos_scan_dynamic_symbol): Only set written if the
DEF_DYNAMIC flag is set. PR 8493.
This commit is contained in:
parent
81749575db
commit
fa63d1ef23
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* sunos.c (sunos_scan_dynamic_symbol): Only set written if the
|
||||||
|
DEF_DYNAMIC flag is set.
|
||||||
|
|
||||||
Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
|
Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
|
||||||
|
|
||||||
* host-aout.c: If TRAD_HEADER is defined, include it.
|
* host-aout.c: If TRAD_HEADER is defined, include it.
|
||||||
|
|
|
@ -1155,7 +1155,7 @@ bfd_sunos_get_needed_list (abfd, info)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
struct bfd_link_info *info;
|
struct bfd_link_info *info;
|
||||||
{
|
{
|
||||||
if (info->hash->creator != &MY(xvec))
|
if (info->hash->creator != &MY(vec))
|
||||||
return NULL;
|
return NULL;
|
||||||
return sunos_hash_table (info)->needed;
|
return sunos_hash_table (info)->needed;
|
||||||
}
|
}
|
||||||
|
@ -1926,8 +1926,13 @@ sunos_scan_dynamic_symbol (h, data)
|
||||||
part of the regular symbol table. This is all symbols which are
|
part of the regular symbol table. This is all symbols which are
|
||||||
not defined in a regular object file. For some reason symbols
|
not defined in a regular object file. For some reason symbols
|
||||||
which are referenced by a regular object and defined by a dynamic
|
which are referenced by a regular object and defined by a dynamic
|
||||||
object do not seem to show up in the regular symbol table. */
|
object do not seem to show up in the regular symbol table. It is
|
||||||
|
possible for a symbol to have only SUNOS_REF_REGULAR set here, it
|
||||||
|
is an undefined symbol which was turned into a common symbol
|
||||||
|
because it was found in an archive object which was not included
|
||||||
|
in the link. */
|
||||||
if ((h->flags & SUNOS_DEF_REGULAR) == 0
|
if ((h->flags & SUNOS_DEF_REGULAR) == 0
|
||||||
|
&& (h->flags & SUNOS_DEF_DYNAMIC) != 0
|
||||||
&& strcmp (h->root.root.root.string, "__DYNAMIC") != 0)
|
&& strcmp (h->root.root.root.string, "__DYNAMIC") != 0)
|
||||||
h->root.written = true;
|
h->root.written = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue