From 19ec0de70a3b2344187a890dac3f46662213e4b6 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 20 Aug 2007 13:05:26 +0000 Subject: [PATCH] 2007-08-20 Jan Kratochvil * elfxx-target.h [ELF_COMMONPAGESIZE && ELF_MAXPAGESIZE] (ELF_MINPAGESIZE): Fixed its size guess. Sanity checked its size. (ELF_COMMONPAGESIZE, ELF_MAXPAGESIZE): Sanity checked their size. --- bfd/ChangeLog | 6 ++++++ bfd/elfxx-target.h | 15 +++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1ac3321489c..bfec9df5153 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2007-08-20 Jan Kratochvil + + * elfxx-target.h [ELF_COMMONPAGESIZE && ELF_MAXPAGESIZE] + (ELF_MINPAGESIZE): Fixed its size guess. Sanity checked its size. + (ELF_COMMONPAGESIZE, ELF_MAXPAGESIZE): Sanity checked their size. + 2007-08-20 Nick Clifton * elflink.c (elf_fixup_link_order): Rewrite conversion of diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h index 4eea9080274..c803763d11a 100644 --- a/bfd/elfxx-target.h +++ b/bfd/elfxx-target.h @@ -298,16 +298,23 @@ #endif #ifndef ELF_MAXPAGESIZE - #error ELF_MAXPAGESIZE is not defined +# error ELF_MAXPAGESIZE is not defined #define ELF_MAXPAGESIZE 1 #endif +#ifndef ELF_COMMONPAGESIZE +#define ELF_COMMONPAGESIZE ELF_MAXPAGESIZE +#endif + #ifndef ELF_MINPAGESIZE -#define ELF_MINPAGESIZE ELF_MAXPAGESIZE +#define ELF_MINPAGESIZE ELF_COMMONPAGESIZE #endif -#ifndef ELF_COMMONPAGESIZE -#define ELF_COMMONPAGESIZE ELF_MAXPAGESIZE +#if ELF_COMMONPAGESIZE > ELF_MAXPAGESIZE +# error ELF_COMMONPAGESIZE > ELF_MAXPAGESIZE +#endif +#if ELF_MINPAGESIZE > ELF_COMMONPAGESIZE +# error ELF_MINPAGESIZE > ELF_COMMONPAGESIZE #endif #ifndef ELF_DYNAMIC_SEC_FLAGS -- 2.30.2