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 | 19ec0de70a3b2344187a890dac3f46662213e4b6 (patch) | |
tree | 50e7f41b9f437353544b8afb33cbce8414ab64dc /bfd/elfxx-target.h | |
parent | 75ea27361921613b07803462ad3fd9f70196bea4 (diff) | |
download | gdb-19ec0de70a3b2344187a890dac3f46662213e4b6.zip gdb-19ec0de70a3b2344187a890dac3f46662213e4b6.tar.gz gdb-19ec0de70a3b2344187a890dac3f46662213e4b6.tar.bz2 |
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 4eea908..c803763 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 |