2007-08-20 Jan Kratochvil <jan.kratochvil@redhat.com>
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 20 Aug 2007 13:05:26 +0000 (13:05 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 20 Aug 2007 13:05:26 +0000 (13:05 +0000)
* 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
bfd/elfxx-target.h

index 1ac3321489c7a26aa798b74d108c1b17ec0bf1fb..bfec9df5153de673a62011387482723f96ccccef 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2007-08-20  Nick Clifton  <nickc@redhat.com>
 
        * elflink.c (elf_fixup_link_order): Rewrite conversion of
index 4eea9080274bc9ab6a8468a348e30d805f545eb8..c803763d11aa0dd1e0d178e9e973394db1bcb96d 100644 (file)
 #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
This page took 0.027144 seconds and 4 git commands to generate.