diff --git a/src/x86/sysv.S b/src/x86/sysv.S index 5dac8c2a..47e73b6d 100644 --- a/src/x86/sysv.S +++ b/src/x86/sysv.S @@ -60,7 +60,7 @@ actual table. The entry points into the table are all 8 bytes. The use of ORG asserts that we're at the correct location. */ /* ??? The clang assembler doesn't handle .org with symbolic expressions. */ -#ifdef __clang__ +#if defined(__clang__) || defined(__APPLE__) # define E(X) .align 8 #else # define E(X) .align 8; .org 0b + X * 8 diff --git a/src/x86/unix64.S b/src/x86/unix64.S index 770d48e4..ce19ba57 100644 --- a/src/x86/unix64.S +++ b/src/x86/unix64.S @@ -57,7 +57,7 @@ /* ??? The clang assembler doesn't handle .org with symbolic expressions. */ .macro E index .align 8 -#ifndef __clang__ +#if !defined(__clang__) && !defined(__APPLE__) .org 0b + \index * 8, 0x90 #endif .endm