]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/obj-elf.c
Revert "2.41 Release sources"
[thirdparty/binutils-gdb.git] / gas / config / obj-elf.c
index a4cf12b144ab1e62670f24ee891f49e91e61873c..dc05b35ee992c58984e4f73ba8ceaa35ba294a90 100644 (file)
@@ -974,6 +974,7 @@ obj_elf_section_type (char *str, size_t len, bool warn)
   return 0;
 }
 
+#ifdef TC_SPARC
 static bfd_vma
 obj_elf_section_word (char *str, size_t len, int *type)
 {
@@ -1006,6 +1007,7 @@ obj_elf_section_word (char *str, size_t len, int *type)
 
   return 0;
 }
+#endif
 
 /* Get name of section.  */
 const char *
@@ -1086,8 +1088,9 @@ obj_elf_attach_to_group (int dummy ATTRIBUTE_UNUSED)
 
   if (elf_group_name (now_seg))
     {
-      as_warn (_("section %s already has a group (%s)"),
-              bfd_section_name (now_seg), elf_group_name (now_seg));
+      if (strcmp (elf_group_name (now_seg), gname) != 0)
+       as_warn (_("section %s already has a group (%s)"),
+                bfd_section_name (now_seg), elf_group_name (now_seg));
       return;
     }
 
@@ -1388,6 +1391,7 @@ obj_elf_section (int push)
                input_line_pointer = save;
            }
        }
+#ifdef TC_SPARC
       else
        {
          do
@@ -1413,6 +1417,7 @@ obj_elf_section (int push)
          while (*input_line_pointer++ == ',');
          --input_line_pointer;
        }
+#endif
     }
 
  done:
@@ -3004,6 +3009,7 @@ elf_frob_file_after_relocs (void)
       ecoff_build_debug (&debug.symbolic_header, &buf, debug_swap);
 
       /* Set up the pointers in debug.  */
+      debug.alloc_syments = true;
 #define SET(ptr, offset, type) \
     debug.ptr = (type) (buf + debug.symbolic_header.offset)