]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-score.c
PR26389, nm prints "c" for a common symbol with -flto and -fcommon
[thirdparty/binutils-gdb.git] / bfd / elf32-score.c
index d1a910f2795e9701fd96b291183bf9411164948f..4be656102f25fc640fb203dcc1a553d50021c572 100644 (file)
@@ -3035,7 +3035,7 @@ s3_bfd_score_elf_symbol_processing (bfd *abfd, asymbol *asym)
        {
          /* Initialize the small common section.  */
          score_elf_scom_section.name = ".scommon";
-         score_elf_scom_section.flags = SEC_IS_COMMON;
+         score_elf_scom_section.flags = SEC_IS_COMMON | SEC_SMALL_DATA;
          score_elf_scom_section.output_section = &score_elf_scom_section;
          score_elf_scom_section.symbol = &score_elf_scom_symbol;
          score_elf_scom_section.symbol_ptr_ptr = &score_elf_scom_symbol_ptr;