public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] x86: Define check_relocs_failed in elfxx-x86.h
@ 2021-12-31 15:18 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2021-12-31 15:18 UTC (permalink / raw)
  To: binutils

	* elf32-i386.c (check_relocs_failed): Moved to ...
	* elfxx-x86.h (check_relocs_failed): Here.  New.
	* elf64-x86-64.c (check_relocs_failed): Removed.
---
 bfd/elf32-i386.c   | 4 ----
 bfd/elf64-x86-64.c | 4 ----
 bfd/elfxx-x86.h    | 4 ++++
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 5660e9539af..abc34a9b847 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -1451,10 +1451,6 @@ elf_i386_convert_load_reloc (bfd *abfd, Elf_Internal_Shdr *symtab_hdr,
   return true;
 }
 
-/* Rename some of the generic section flags to better document how they
-   are used here.  */
-#define check_relocs_failed	sec_flg0
-
 /* Look through the relocs for a section during the first phase, and
    calculate needed space in the global offset table, procedure linkage
    table, and dynamic reloc sections.  */
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 637f7464d94..6d201dfe5bc 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -1377,10 +1377,6 @@ elf_x86_64_tls_transition (struct bfd_link_info *info, bfd *abfd,
   return true;
 }
 
-/* Rename some of the generic section flags to better document how they
-   are used here.  */
-#define check_relocs_failed	sec_flg0
-
 static bool
 elf_x86_64_need_pic (struct bfd_link_info *info,
 		     bfd *input_bfd, asection *sec,
diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h
index 91a141f1363..79862d09209 100644
--- a/bfd/elfxx-x86.h
+++ b/bfd/elfxx-x86.h
@@ -615,6 +615,10 @@ struct elf_x86_plt
    && elf_tdata (bfd) != NULL				\
    && elf_object_id (bfd) == (htab)->elf.hash_table_id)
 
+/* Rename some of the generic section flags to better document how they
+   are used here.  */
+#define check_relocs_failed	sec_flg0
+
 extern bool _bfd_x86_elf_mkobject
   (bfd *);
 
-- 
2.33.1


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

only message in thread, other threads:[~2021-12-31 15:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-31 15:18 [PATCH] x86: Define check_relocs_failed in elfxx-x86.h H.J. Lu

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).