summaryrefslogtreecommitdiff
path: root/src/unexw32.c
diff options
context:
space:
mode:
authorGeoff Voelker <voelker@cs.washington.edu>1997-07-01 05:05:45 +0000
committerGeoff Voelker <voelker@cs.washington.edu>1997-07-01 05:05:45 +0000
commite54c8cd1194ff791d17c7932a6080dda0838d7c8 (patch)
tree6e489f21c4c7b6057bc50a208c7faf40e0e01784 /src/unexw32.c
parent333c25a99b7ebc65d98189e2a9f1e6a3ccecbec3 (diff)
downloademacs-e54c8cd1194ff791d17c7932a6080dda0838d7c8.tar.gz
Add pragma to force zero initialized
data into .data segment.
Diffstat (limited to 'src/unexw32.c')
-rw-r--r--src/unexw32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unexw32.c b/src/unexw32.c
index d449a79eaa0..ef4ed56fb9f 100644
--- a/src/unexw32.c
+++ b/src/unexw32.c
@@ -39,6 +39,10 @@ typedef struct file_data {
unsigned char *file_base;
} file_data;
+/* Force zero initialized variables to be placed in the .data segment;
+ MSVC 5.0 otherwise places them in .bss, which breaks the dumping code. */
+#pragma data_seg(".data")
+
/* Basically, our "initialized" flag. */
BOOL need_to_recreate_heap = FALSE;