aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-07-26 18:46:37 +0000
committerKen Raeburn <raeburn@cygnus>1993-07-26 18:46:37 +0000
commitb3024965a065723fcebf545e31cff2d778888e84 (patch)
treee2c9a386339283de6f4ca1d536bc264f63d07eb3 /bfd
parentd79ab07c4aed864feb6779a0095d67b2838b0059 (diff)
downloadgdb-b3024965a065723fcebf545e31cff2d778888e84.zip
gdb-b3024965a065723fcebf545e31cff2d778888e84.tar.gz
gdb-b3024965a065723fcebf545e31cff2d778888e84.tar.bz2
(elfXX_bed): Initialize maxpagesize from ELF_MAXPAGESIZE.
(ELF_MAXPAGESIZE): Default to 1.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elf32-target.h13
-rw-r--r--bfd/elf64-target.h9
2 files changed, 18 insertions, 4 deletions
diff --git a/bfd/elf32-target.h b/bfd/elf32-target.h
index f74696a..abc406f 100644
--- a/bfd/elf32-target.h
+++ b/bfd/elf32-target.h
@@ -51,6 +51,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define bfd_elf32_bfd_make_debug_symbol \
((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 =
{
#ifdef USE_REL
@@ -61,11 +69,8 @@ static CONST struct elf_backend_data elf32_bed =
0, /* elf_64_p */
ELF_ARCH, /* arch */
elf_info_to_howto, /* elf_info_to_howto */
-#ifdef elf_info_to_howto_rel
elf_info_to_howto_rel, /* elf_info_to_howto_rel */
-#else
- 0, /* elf_info_to_howto_rel */
-#endif
+ ELF_MAXPAGESIZE, /* maxpagesize */
bfd_elf32__write_relocs, /* write_relocs */
};
diff --git a/bfd/elf64-target.h b/bfd/elf64-target.h
index f74fb6e..212c029 100644
--- a/bfd/elf64-target.h
+++ b/bfd/elf64-target.h
@@ -51,6 +51,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define bfd_elf64_bfd_make_debug_symbol \
((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 =
{
#ifdef USE_REL
@@ -66,6 +74,7 @@ static CONST struct elf_backend_data elf64_bed =
#else
0, /* elf_info_to_howto_rel */
#endif
+ ELF_MAXPAGESIZE, /* maxpagesize */
};
#ifdef TARGET_BIG_SYM