public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] gas: purge md_elf_section_word()
@ 2023-08-11  8:05 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2023-08-11  8:05 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cca56b22a33bc279db358adca68f704329e5f0a3

commit cca56b22a33bc279db358adca68f704329e5f0a3
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Aug 11 10:05:32 2023 +0200

    gas: purge md_elf_section_word()
    
    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.

Diff:
---
 gas/config/obj-elf.c | 8 --------
 gas/config/tc-i386.c | 9 ---------
 gas/config/tc-i386.h | 2 --
 3 files changed, 19 deletions(-)

diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index dc05b35ee99..142f004f0b6 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -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;
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 2b53c3f99ea..3b00a1bc612 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -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)
 {
diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h
index 62b82227571..80d66c1ce15 100644
--- a/gas/config/tc-i386.h
+++ b/gas/config/tc-i386.h
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-11  8:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-11  8:05 [binutils-gdb] gas: purge md_elf_section_word() Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).