Treat elfNN_bed like other macros defined in elfxx-target.h and #undef it
before #define'ing it.
This commit is contained in:
parent
f2dd3617b5
commit
571fe01fe0
|
@ -1,3 +1,12 @@
|
||||||
|
2003-01-20 Fabio Alemagna <falemagn@aros.org>
|
||||||
|
|
||||||
|
* elf32-sh.c: Treat elfNN_bed like other macros defined in
|
||||||
|
elfxx-target.h and #undef it before #define'ing it.
|
||||||
|
* elf32-i386.c: Likewise.
|
||||||
|
* elf32-sh64.c: Likewise.
|
||||||
|
* elf64-alpha.c: Likewise.
|
||||||
|
* elf64-sh64.c: Likewise.
|
||||||
|
|
||||||
2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||||
|
|
||||||
* bfd-in2.h: Regenerate.
|
* bfd-in2.h: Regenerate.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Intel 80386/80486-specific support for 32-bit ELF
|
/* Intel 80386/80486-specific support for 32-bit ELF
|
||||||
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -88,7 +88,7 @@ static enum elf_reloc_type_class elf_i386_reloc_type_class
|
||||||
static bfd_boolean elf_i386_finish_dynamic_sections
|
static bfd_boolean elf_i386_finish_dynamic_sections
|
||||||
PARAMS ((bfd *, struct bfd_link_info *));
|
PARAMS ((bfd *, struct bfd_link_info *));
|
||||||
|
|
||||||
#define USE_REL 1 /* 386 uses REL relocations instead of RELA */
|
#define USE_REL 1 /* 386 uses REL relocations instead of RELA. */
|
||||||
|
|
||||||
#include "elf/i386.h"
|
#include "elf/i386.h"
|
||||||
|
|
||||||
|
@ -3424,10 +3424,7 @@ elf_i386_post_process_headers (abfd, link_info)
|
||||||
|
|
||||||
#undef elf_backend_post_process_headers
|
#undef elf_backend_post_process_headers
|
||||||
#define elf_backend_post_process_headers elf_i386_post_process_headers
|
#define elf_backend_post_process_headers elf_i386_post_process_headers
|
||||||
|
#undef elf32_bed
|
||||||
#define elf32_bed elf32_i386_fbsd_bed
|
#define elf32_bed elf32_i386_fbsd_bed
|
||||||
|
|
||||||
#include "elf32-target.h"
|
#include "elf32-target.h"
|
||||||
|
|
||||||
#undef elf_backend_post_process_headers
|
|
||||||
#undef elf32_bed
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Hitachi SH specific support for 32-bit ELF
|
/* Hitachi SH specific support for 32-bit ELF
|
||||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
Contributed by Ian Lance Taylor, Cygnus Support.
|
Contributed by Ian Lance Taylor, Cygnus Support.
|
||||||
|
|
||||||
|
@ -7328,7 +7328,7 @@ sh_elf_reloc_type_class (rela)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Support for Linux core dump NOTE sections */
|
/* Support for Linux core dump NOTE sections. */
|
||||||
static bfd_boolean
|
static bfd_boolean
|
||||||
elf32_shlin_grok_prstatus (abfd, note)
|
elf32_shlin_grok_prstatus (abfd, note)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
|
@ -7462,12 +7462,11 @@ elf32_shlin_grok_psinfo (abfd, note)
|
||||||
#define ELF_MAXPAGESIZE 0x10000
|
#define ELF_MAXPAGESIZE 0x10000
|
||||||
#undef elf_symbol_leading_char
|
#undef elf_symbol_leading_char
|
||||||
#define elf_symbol_leading_char 0
|
#define elf_symbol_leading_char 0
|
||||||
|
#undef elf32_bed
|
||||||
#define elf32_bed elf32_sh_nbsd_bed
|
#define elf32_bed elf32_sh_nbsd_bed
|
||||||
|
|
||||||
#include "elf32-target.h"
|
#include "elf32-target.h"
|
||||||
|
|
||||||
#undef elf32_bed
|
|
||||||
|
|
||||||
/* Linux support. */
|
/* Linux support. */
|
||||||
#undef TARGET_BIG_SYM
|
#undef TARGET_BIG_SYM
|
||||||
|
@ -7483,13 +7482,9 @@ elf32_shlin_grok_psinfo (abfd, note)
|
||||||
#define elf_backend_grok_prstatus elf32_shlin_grok_prstatus
|
#define elf_backend_grok_prstatus elf32_shlin_grok_prstatus
|
||||||
#undef elf_backend_grok_psinfo
|
#undef elf_backend_grok_psinfo
|
||||||
#define elf_backend_grok_psinfo elf32_shlin_grok_psinfo
|
#define elf_backend_grok_psinfo elf32_shlin_grok_psinfo
|
||||||
|
#undef elf32_bed
|
||||||
#define elf32_bed elf32_sh_lin_bed
|
#define elf32_bed elf32_sh_lin_bed
|
||||||
|
|
||||||
#include "elf32-target.h"
|
#include "elf32-target.h"
|
||||||
|
|
||||||
#undef elf_backend_grok_prstatus
|
|
||||||
#undef elf_backend_grok_psinfo
|
|
||||||
#undef elf32_bed
|
|
||||||
|
|
||||||
#endif /* INCLUDE_SHMEDIA */
|
#endif /* INCLUDE_SHMEDIA */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Hitachi SH64-specific support for 32-bit ELF
|
/* 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.
|
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
|
#define ELF_MAXPAGESIZE 0x10000
|
||||||
#undef elf_symbol_leading_char
|
#undef elf_symbol_leading_char
|
||||||
#define elf_symbol_leading_char 0
|
#define elf_symbol_leading_char 0
|
||||||
|
#undef elf32_bed
|
||||||
#define elf32_bed elf32_sh64_nbsd_bed
|
#define elf32_bed elf32_sh64_nbsd_bed
|
||||||
|
|
||||||
#include "elf32-target.h"
|
#include "elf32-target.h"
|
||||||
|
|
||||||
#undef elf32_bed
|
|
||||||
|
|
||||||
/* Linux support. */
|
/* Linux support. */
|
||||||
#undef TARGET_BIG_SYM
|
#undef TARGET_BIG_SYM
|
||||||
#define TARGET_BIG_SYM bfd_elf32_sh64blin_vec
|
#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
|
#define TARGET_LITTLE_SYM bfd_elf32_sh64lin_vec
|
||||||
#undef TARGET_LITTLE_NAME
|
#undef TARGET_LITTLE_NAME
|
||||||
#define TARGET_LITTLE_NAME "elf32-sh64-linux"
|
#define TARGET_LITTLE_NAME "elf32-sh64-linux"
|
||||||
|
#undef elf32_bed
|
||||||
#define elf32_bed elf32_sh64_lin_bed
|
#define elf32_bed elf32_sh64_lin_bed
|
||||||
|
|
||||||
#include "elf32-target.h"
|
#include "elf32-target.h"
|
||||||
|
|
||||||
#undef elf32_bed
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Alpha specific support for 64-bit ELF
|
/* Alpha specific support for 64-bit ELF
|
||||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
Contributed by Richard Henderson <rth@tamu.edu>.
|
Contributed by Richard Henderson <rth@tamu.edu>.
|
||||||
|
|
||||||
|
@ -180,13 +180,13 @@ struct alpha_elf_link_hash_entry
|
||||||
{
|
{
|
||||||
struct alpha_elf_got_entry *next;
|
struct alpha_elf_got_entry *next;
|
||||||
|
|
||||||
/* which .got subsection? */
|
/* Which .got subsection? */
|
||||||
bfd *gotobj;
|
bfd *gotobj;
|
||||||
|
|
||||||
/* the addend in effect for this entry. */
|
/* The addend in effect for this entry. */
|
||||||
bfd_vma addend;
|
bfd_vma addend;
|
||||||
|
|
||||||
/* the .got offset for this entry. */
|
/* The .got offset for this entry. */
|
||||||
int got_offset;
|
int got_offset;
|
||||||
|
|
||||||
/* How many references to this entry? */
|
/* How many references to this entry? */
|
||||||
|
@ -205,22 +205,22 @@ struct alpha_elf_link_hash_entry
|
||||||
unsigned char reloc_xlated;
|
unsigned char reloc_xlated;
|
||||||
} *got_entries;
|
} *got_entries;
|
||||||
|
|
||||||
/* used to count non-got, non-plt relocations for delayed sizing
|
/* Used to count non-got, non-plt relocations for delayed sizing
|
||||||
of relocation sections. */
|
of relocation sections. */
|
||||||
struct alpha_elf_reloc_entry
|
struct alpha_elf_reloc_entry
|
||||||
{
|
{
|
||||||
struct alpha_elf_reloc_entry *next;
|
struct alpha_elf_reloc_entry *next;
|
||||||
|
|
||||||
/* which .reloc section? */
|
/* Which .reloc section? */
|
||||||
asection *srel;
|
asection *srel;
|
||||||
|
|
||||||
/* what kind of relocation? */
|
/* What kind of relocation? */
|
||||||
unsigned int rtype;
|
unsigned int rtype;
|
||||||
|
|
||||||
/* is this against read-only section? */
|
/* Is this against read-only section? */
|
||||||
unsigned int reltext : 1;
|
unsigned int reltext : 1;
|
||||||
|
|
||||||
/* how many did we find? */
|
/* How many did we find? */
|
||||||
unsigned long count;
|
unsigned long count;
|
||||||
} *reloc_entries;
|
} *reloc_entries;
|
||||||
};
|
};
|
||||||
|
@ -5616,6 +5616,7 @@ elf64_alpha_fbsd_post_process_headers (abfd, link_info)
|
||||||
#define elf_backend_post_process_headers \
|
#define elf_backend_post_process_headers \
|
||||||
elf64_alpha_fbsd_post_process_headers
|
elf64_alpha_fbsd_post_process_headers
|
||||||
|
|
||||||
|
#undef elf64_bed
|
||||||
#define elf64_bed elf64_alpha_fbsd_bed
|
#define elf64_bed elf64_alpha_fbsd_bed
|
||||||
|
|
||||||
#include "elf64-target.h"
|
#include "elf64-target.h"
|
||||||
|
|
Loading…
Reference in New Issue