Commit f8e2af11d9aa402fedec9a604b0e952c02601889

Authored by Stefan Weil
Committed by Anthony Liguori
1 parent 8c01c95a

Win32: Reduce section alignment for Windows.

Maximum alignment for Win32 is 16, so don't try
to set it to 32. Otherwise the compiler complains:

exec.c:102: warning: alignment of 'code_gen_prologue'
is greater than maximum object file alignment.  Using 16

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 1 changed file with 4 additions and 0 deletions
... ... @@ -94,6 +94,10 @@ spinlock_t tb_lock = SPIN_LOCK_UNLOCKED;
94 94 #define code_gen_section \
95 95 __attribute__((__section__(".gen_code"))) \
96 96 __attribute__((aligned (32)))
  97 +#elif defined(_WIN32)
  98 +/* Maximum alignment for Win32 is 16. */
  99 +#define code_gen_section \
  100 + __attribute__((aligned (16)))
97 101 #else
98 102 #define code_gen_section \
99 103 __attribute__((aligned (32)))
... ...