diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2007-08-20 13:05:26 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2007-08-20 13:05:26 +0000 |
commit | 9c6acf386968654a8eb2f3685929decff42d68b7 (patch) | |
tree | cf52c0c3079241a4191c20259f2f9404ab553aad /bfd/elfxx-target.h | |
parent | ccf2510170f6d519bbf29d59900798f0d2f57225 (diff) | |
download | binutils-redhat-9c6acf386968654a8eb2f3685929decff42d68b7.tar.gz |
2007-08-20 Jan Kratochvil <jan.kratochvil@redhat.com>
* 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.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r-- | bfd/elfxx-target.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h index 4eea908027..c803763d11 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 |