[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Win32: Reduce section alignment for Windows.
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH] Win32: Reduce section alignment for Windows. |
Date: |
Thu, 18 Jun 2009 23:04:48 +0200 |
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 <address@hidden>
---
exec.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/exec.c b/exec.c
index 92ee4e2..688f603 100644
--- a/exec.c
+++ b/exec.c
@@ -94,6 +94,10 @@ spinlock_t tb_lock = SPIN_LOCK_UNLOCKED;
#define code_gen_section \
__attribute__((__section__(".gen_code"))) \
__attribute__((aligned (32)))
+#elif defined(_WIN32)
+/* Maximum alignment for Win32 is 16. */
+#define code_gen_section \
+ __attribute__((aligned (16)))
#else
#define code_gen_section \
__attribute__((aligned (32)))
--
1.5.6.5
- [Qemu-devel] [PATCH] Win32: Reduce section alignment for Windows.,
Stefan Weil <=