This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] elfNN_bed canonicalization.
- From: Fabio Alemagna <falemagn at studenti dot unina dot it>
- To: <binutils at sources dot redhat dot com>
- Date: Sun, 19 Jan 2003 15:33:13 +0100 (CET)
- Subject: [PATCH] elfNN_bed canonicalization.
Here's the patch that "fixes" the consistency problem of the usage of the
elfNN_bed macro.
2003-01-19 Fabio Alemagna <falemagn@aros.org>
* elf32-sh.c: #undef elf32_bed before #define'ing it instead than
after #include'ing "elf32-target.h"
* elf32-i386.c: Likewise
* elf32-sh64.c: Likewise
* elf64-alpha.c: #undef elf64_bed before #define'ing it
* elf64-sh64.c: Likewise
Index: elf32-sh.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-sh.c,v
retrieving revision 1.68
diff -u -r1.68 elf32-sh.c
--- elf32-sh.c 30 Nov 2002 08:39:38 -0000 1.68
+++ elf32-sh.c 19 Jan 2003 14:43:42 -0000
@@ -7462,12 +7462,11 @@
#define ELF_MAXPAGESIZE 0x10000
#undef elf_symbol_leading_char
#define elf_symbol_leading_char 0
-
+#undef elf32_bed
#define elf32_bed elf32_sh_nbsd_bed
#include "elf32-target.h"
-#undef elf32_bed
/* Linux support. */
#undef TARGET_BIG_SYM
@@ -7484,12 +7483,10 @@
#undef elf_backend_grok_psinfo
#define elf_backend_grok_psinfo elf32_shlin_grok_psinfo
+#undef elf32_bed
#define elf32_bed elf32_sh_lin_bed
#include "elf32-target.h"
-#undef elf_backend_grok_prstatus
-#undef elf_backend_grok_psinfo
-#undef elf32_bed
#endif /* INCLUDE_SHMEDIA */
Index: elf32-i386.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-i386.c,v
retrieving revision 1.92
diff -u -r1.92 elf32-i386.c
--- elf32-i386.c 12 Dec 2002 10:17:14 -0000 1.92
+++ elf32-i386.c 19 Jan 2003 14:44:04 -0000
@@ -3425,9 +3425,7 @@
#undef elf_backend_post_process_headers
#define elf_backend_post_process_headers elf_i386_post_process_headers
-#define elf32_bed elf32_i386_fbsd_bed
+#undef elf32_bed
+#define elf32_bed elf32_i386_fbsd_bed
#include "elf32-target.h"
-
-#undef elf_backend_post_process_headers
-#undef elf32_bed
Index: elf32-sh64.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-sh64.c,v
retrieving revision 1.10
diff -u -r1.10 elf32-sh64.c
--- elf32-sh64.c 30 Nov 2002 08:39:38 -0000 1.10
+++ elf32-sh64.c 19 Jan 2003 14:44:09 -0000
@@ -765,12 +765,11 @@
#define ELF_MAXPAGESIZE 0x10000
#undef elf_symbol_leading_char
#define elf_symbol_leading_char 0
-
+#undef elf32_bed
#define elf32_bed elf32_sh64_nbsd_bed
#include "elf32-target.h"
-#undef elf32_bed
/* Linux support. */
#undef TARGET_BIG_SYM
@@ -782,8 +781,8 @@
#undef TARGET_LITTLE_NAME
#define TARGET_LITTLE_NAME "elf32-sh64-linux"
+#undef elf32_bed
#define elf32_bed elf32_sh64_lin_bed
#include "elf32-target.h"
-#undef elf32_bed
Index: elf64-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-alpha.c,v
retrieving revision 1.88
diff -u -r1.88 elf64-alpha.c
--- elf64-alpha.c 28 Dec 2002 21:15:35 -0000 1.88
+++ elf64-alpha.c 19 Jan 2003 14:44:32 -0000
@@ -5616,6 +5616,7 @@
#define elf_backend_post_process_headers \
elf64_alpha_fbsd_post_process_headers
+#undef elf64_bed
#define elf64_bed elf64_alpha_fbsd_bed
#include "elf64-target.h"