فهرست منبع

work around msvc bug where .model must be on its own line or it forgets about it

Jameson Nash 11 سال پیش
والد
کامیت
5f4979e5d1
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 3 3
      amd64/bsd_asm.h
  2. 1 1
      i387/bsd_asm.h

+ 3 - 3
amd64/bsd_asm.h

@@ -60,10 +60,10 @@
 #define CNAME(csym)		csym
 #define HIDENAME(asmsym)	.asmsym
 
-#define _START_ENTRY	.text; .p2align 4,0x90
+#define _START_ENTRY	.p2align 4,0x90
 
 #if defined(__linux__) || defined(__FreeBSD__) || defined(__ELF__)
-#define _ENTRY(x)	_START_ENTRY; \
+#define _ENTRY(x)	.text; _START_ENTRY; \
 			.globl CNAME(x); .type CNAME(x),@function; CNAME(x):
 #define	END(x)		.size x, . - x
 
@@ -73,7 +73,7 @@
 #define _START_ENTRY_WIN .text; _START_ENTRY
 #else
 #define END(x) end
-#define _START_ENTRY_WIN .model small; .code; _START_ENTRY
+#define _START_ENTRY_WIN .code; _START_ENTRY
 #endif
 #define _ENTRY(x)	_START_ENTRY_WIN; \
             .globl CNAME(x); .section .drectve; .ascii " -export:" #x; \

+ 1 - 1
i387/bsd_asm.h

@@ -84,7 +84,7 @@
 #define _START_ENTRY_WIN .text; _START_ENTRY
 #else
 #define END(x) end
-#define _START_ENTRY_WIN .model small; .code; _START_ENTRY
+#define _START_ENTRY_WIN .code; _START_ENTRY
 #endif
 #define CNAME(csym)		_##csym
 #define HIDENAME(asmsym)	.asmsym