summaryrefslogtreecommitdiff
path: root/bfd/elf32-sh64.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-01-20 18:06:21 +0000
committerNick Clifton <nickc@redhat.com>2003-01-20 18:06:21 +0000
commitcd325c4c303007167b048d0b4ad59bb0c7ea7314 (patch)
treec6cf055f9d43d058c57fb609260e55c56f49fdcf /bfd/elf32-sh64.c
parent3cb31d3b54ba43b536df403c1bc801226dc8ff85 (diff)
downloadgdb-cd325c4c303007167b048d0b4ad59bb0c7ea7314.tar.gz
Treat elfNN_bed like other macros defined in elfxx-target.h and #undef it
before #define'ing it.
Diffstat (limited to 'bfd/elf32-sh64.c')
-rw-r--r--bfd/elf32-sh64.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/bfd/elf32-sh64.c b/bfd/elf32-sh64.c
index a6638e9b2bf..492fd73347e 100644
--- a/bfd/elf32-sh64.c
+++ b/bfd/elf32-sh64.c
@@ -1,5 +1,5 @@
/* Hitachi SH64-specific support for 32-bit ELF
- Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -765,13 +765,11 @@ sh64_elf_final_write_processing (abfd, linker)
#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
#define TARGET_BIG_SYM bfd_elf32_sh64blin_vec
@@ -781,9 +779,8 @@ sh64_elf_final_write_processing (abfd, linker)
#define TARGET_LITTLE_SYM bfd_elf32_sh64lin_vec
#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