diff options
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 0e3abff5ce4..6c8f948a1d7 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -4332,6 +4332,10 @@ error_free_dyn: h->root.u.c.p->alignment_power = align; else h->root.u.c.p->alignment_power = old_alignment; + + /* Common symbol in executable is a definition. */ + if (bfd_link_executable (info)) + definition = TRUE; } if (is_elf_hash_table (htab)) |