diff options
Diffstat (limited to 'src/lib/libcrypto/perlasm')
| -rw-r--r-- | src/lib/libcrypto/perlasm/x86asm.pl | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/perlasm/x86nasm.pl | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/libcrypto/perlasm/x86asm.pl b/src/lib/libcrypto/perlasm/x86asm.pl index 60233f80e8..c3de90c65d 100644 --- a/src/lib/libcrypto/perlasm/x86asm.pl +++ b/src/lib/libcrypto/perlasm/x86asm.pl | |||
| @@ -96,7 +96,7 @@ $tmp | |||
| 96 | #ifdef OUT | 96 | #ifdef OUT |
| 97 | #define OK 1 | 97 | #define OK 1 |
| 98 | #define ALIGN 4 | 98 | #define ALIGN 4 |
| 99 | #if defined(__CYGWIN__) || defined(__DJGPP__) | 99 | #if defined(__CYGWIN__) || defined(__DJGPP__) || defined(__MINGW32__) |
| 100 | #undef SIZE | 100 | #undef SIZE |
| 101 | #undef TYPE | 101 | #undef TYPE |
| 102 | #define SIZE(a,b) | 102 | #define SIZE(a,b) |
diff --git a/src/lib/libcrypto/perlasm/x86nasm.pl b/src/lib/libcrypto/perlasm/x86nasm.pl index 5009acb4b3..4bdb3fe180 100644 --- a/src/lib/libcrypto/perlasm/x86nasm.pl +++ b/src/lib/libcrypto/perlasm/x86nasm.pl | |||
| @@ -221,7 +221,15 @@ sub using486 | |||
| 221 | 221 | ||
| 222 | sub main'file | 222 | sub main'file |
| 223 | { | 223 | { |
| 224 | push(@out, "segment .text use32\n"); | 224 | local $tmp; |
| 225 | $tmp=<<___; | ||
| 226 | %ifdef __omf__ | ||
| 227 | section code use32 class=code | ||
| 228 | %else | ||
| 229 | section .text | ||
| 230 | %endif | ||
| 231 | ___ | ||
| 232 | push(@out,$tmp); | ||
| 225 | } | 233 | } |
| 226 | 234 | ||
| 227 | sub main'function_begin | 235 | sub main'function_begin |
