(elfXX_bed): Initialize maxpagesize from ELF_MAXPAGESIZE.
(ELF_MAXPAGESIZE): Default to 1.
This commit is contained in:
parent
d79ab07c4a
commit
b3024965a0
2 changed files with 18 additions and 4 deletions
|
@ -51,6 +51,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#define bfd_elf32_bfd_make_debug_symbol \
|
#define bfd_elf32_bfd_make_debug_symbol \
|
||||||
((asymbol *(*) PARAMS ((bfd *, void *, unsigned long))) bfd_nullvoidptr)
|
((asymbol *(*) PARAMS ((bfd *, void *, unsigned long))) bfd_nullvoidptr)
|
||||||
|
|
||||||
|
#ifndef elf_info_to_howto_rel
|
||||||
|
#define elf_info_to_howto_rel 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ELF_MAXPAGESIZE
|
||||||
|
#define ELF_MAXPAGESIZE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
static CONST struct elf_backend_data elf32_bed =
|
static CONST struct elf_backend_data elf32_bed =
|
||||||
{
|
{
|
||||||
#ifdef USE_REL
|
#ifdef USE_REL
|
||||||
|
@ -61,11 +69,8 @@ static CONST struct elf_backend_data elf32_bed =
|
||||||
0, /* elf_64_p */
|
0, /* elf_64_p */
|
||||||
ELF_ARCH, /* arch */
|
ELF_ARCH, /* arch */
|
||||||
elf_info_to_howto, /* elf_info_to_howto */
|
elf_info_to_howto, /* elf_info_to_howto */
|
||||||
#ifdef elf_info_to_howto_rel
|
|
||||||
elf_info_to_howto_rel, /* elf_info_to_howto_rel */
|
elf_info_to_howto_rel, /* elf_info_to_howto_rel */
|
||||||
#else
|
ELF_MAXPAGESIZE, /* maxpagesize */
|
||||||
0, /* elf_info_to_howto_rel */
|
|
||||||
#endif
|
|
||||||
bfd_elf32__write_relocs, /* write_relocs */
|
bfd_elf32__write_relocs, /* write_relocs */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#define bfd_elf64_bfd_make_debug_symbol \
|
#define bfd_elf64_bfd_make_debug_symbol \
|
||||||
((asymbol *(*) PARAMS ((bfd *, void *, unsigned long))) bfd_nullvoidptr)
|
((asymbol *(*) PARAMS ((bfd *, void *, unsigned long))) bfd_nullvoidptr)
|
||||||
|
|
||||||
|
#ifndef elf_info_to_howto_rel
|
||||||
|
#define elf_info_to_howto_rel 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ELF_MAXPAGESIZE
|
||||||
|
#define ELF_MAXPAGESIZE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
static CONST struct elf_backend_data elf64_bed =
|
static CONST struct elf_backend_data elf64_bed =
|
||||||
{
|
{
|
||||||
#ifdef USE_REL
|
#ifdef USE_REL
|
||||||
|
@ -66,6 +74,7 @@ static CONST struct elf_backend_data elf64_bed =
|
||||||
#else
|
#else
|
||||||
0, /* elf_info_to_howto_rel */
|
0, /* elf_info_to_howto_rel */
|
||||||
#endif
|
#endif
|
||||||
|
ELF_MAXPAGESIZE, /* maxpagesize */
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef TARGET_BIG_SYM
|
#ifdef TARGET_BIG_SYM
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue