gas: purge md_elf_section_word()
authorJan Beulich <jbeulich@suse.com>
Fri, 11 Aug 2023 08:05:32 +0000 (10:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 11 Aug 2023 08:05:32 +0000 (10:05 +0200)
It's not documented anyway, and having it makes no sense anymore with
obj_elf_section_word() now being TC_SPARC-only. In any event the x86
backing function was dead code.

gas/config/obj-elf.c
gas/config/tc-i386.c
gas/config/tc-i386.h

index dc05b35..142f004 100644 (file)
@@ -991,14 +991,6 @@ obj_elf_section_word (char *str, size_t len, int *type)
   if (len == 3 && startswith (str, "tls"))
     return SHF_TLS;
 
-#ifdef md_elf_section_word
-  {
-    bfd_vma md_attr = md_elf_section_word (str, len);
-    if (md_attr > 0)
-      return md_attr;
-  }
-#endif
-
   ret = obj_elf_section_type (str, len, false);
   if (ret != 0)
     *type = ret;
index 2b53c3f..3b00a1b 100644 (file)
@@ -15684,15 +15684,6 @@ x86_64_section_letter (int letter, const char **ptr_msg)
   return -1;
 }
 
-bfd_vma
-x86_64_section_word (char *str, size_t len)
-{
-  if (len == 5 && flag_code == CODE_64BIT && startswith (str, "large"))
-    return SHF_X86_64_LARGE;
-
-  return -1;
-}
-
 static void
 handle_large_common (int small ATTRIBUTE_UNUSED)
 {
index 62b8222..80d66c1 100644 (file)
@@ -360,10 +360,8 @@ extern void i386_solaris_fix_up_eh_frame (segT);
 #endif
 
 /* Support for SHF_X86_64_LARGE */
-extern bfd_vma x86_64_section_word (char *, size_t);
 extern bfd_vma x86_64_section_letter (int, const char **);
 #define md_elf_section_letter(LETTER, PTR_MSG) x86_64_section_letter (LETTER, PTR_MSG)
-#define md_elf_section_word(STR, LEN)          x86_64_section_word (STR, LEN)
 
 #if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
 extern void x86_cleanup (void);