diff --git a/src/emx/src/emxbind/emxbind.c b/src/emx/src/emxbind/emxbind.c
index d3ac49c..f37c434 100755
a
|
b
|
static int md_callback (struct _md *md, const _md_stmt *stmt, _md_token token,
|
117 | 117 | break; |
118 | 118 | |
119 | 119 | case _MD_DATA: |
120 | | def_ignored ("DATA"); |
| 120 | if (stmt->segment.attr & (_MDS_MULTIPLE | _MDS_NONSHARED)) |
| 121 | data_shared = FALSE; |
| 122 | |
| 123 | if (stmt->segment.attr & (_MDS_SINGLE | _MDS_SHARED)) |
| 124 | data_shared = TRUE; |
121 | 125 | break; |
122 | 126 | |
123 | 127 | case _MD_DESCRIPTION: |
diff --git a/src/emx/src/emxbind/emxbind.h b/src/emx/src/emxbind/emxbind.h
index ff72c05..9ffb801 100755
a
|
b
|
EXTERN int term_global INIT (TRUE);
|
229 | 229 | |
230 | 230 | EXTERN char *description INIT (NULL); |
231 | 231 | |
| 232 | /* DATA attributes, MULTIPLE NONSHARED and SINGLE SHARED. */ |
| 233 | |
| 234 | EXTERN int data_shared INIT (FALSE); |
| 235 | |
232 | 236 | /* The emx options for DOS and OS/2, respectively, are stored in these |
233 | 237 | buffers, before being written to the emxbind headers. */ |
234 | 238 | |
diff --git a/src/emx/src/emxbind/exec.c b/src/emx/src/emxbind/exec.c
index 408c850..a86850e 100755
a
|
b
|
void init_os2_header (void)
|
665 | 665 | obj_data.virt_size = 0; |
666 | 666 | obj_data.virt_base = 0; |
667 | 667 | obj_data.attr_flags = 0x2003; /* readable, writable, big */ |
| 668 | if (data_shared) |
| 669 | obj_data.attr_flags |= 0x20; /* shared */ |
668 | 670 | obj_data.map_first = X; |
669 | 671 | obj_data.map_count = X; |
670 | 672 | obj_data.reserved = 0; |
diff --git a/src/emx/src/emxomf/emxomfld.c b/src/emx/src/emxomf/emxomfld.c
index e73cc11..3e756e4 100755
a
|
b
|
static int def_2_watcom(struct _md *md, const _md_stmt *stmt, _md_token token, v
|
1295 | 1295 | break; |
1296 | 1296 | |
1297 | 1297 | case _MD_DATA: |
| 1298 | if (stmt->segment.attr & (_MDS_MULTIPLE | _MDS_NONSHARED)) |
| 1299 | fprintf (response_file, "OPTION MANYAUTODATA\n"); |
| 1300 | |
| 1301 | if (stmt->segment.attr & (_MDS_SINGLE | _MDS_SHARED)) |
| 1302 | fprintf (response_file, "OPTION ONEAUTODATA\n"); |
1298 | 1303 | break; |
1299 | 1304 | |
1300 | 1305 | case _MD_DESCRIPTION: |