diff options
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 92b40e9..2b246bd 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -4296,7 +4296,15 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info) h->ref_regular_nonweak = 1; } else - h->def_regular = 1; + { + h->def_regular = 1; + if (h->def_dynamic) + { + h->def_dynamic = 0; + h->ref_dynamic = 1; + h->dynamic_def = 1; + } + } if (! info->executable || h->def_dynamic || h->ref_dynamic) |