diff options
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 34bbcd5..55f00da 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -3444,7 +3444,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info) FALSE, bed->collect, NULL))) goto error_return; - if (! info->relocatable) + if (!info->relocatable && !info->shared) { /* Clobber the section size so that the warning does not get copied into the output file. */ |