diff options
-rw-r--r-- | bfd/elflink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 019ac30..4ef0739 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -9997,7 +9997,8 @@ elf_link_output_symstrtab (void *finf, if (name == NULL || *name == '\0' - || (input_sec->flags & SEC_EXCLUDE)) + || (!bfd_link_relocatable (flinfo->info) + && (input_sec->flags & SEC_EXCLUDE))) elfsym->st_name = (unsigned long) -1; else { |