Index: lib/builtins/arm/restore_vfp_d8_d15_regs.S =================================================================== --- lib/builtins/arm/restore_vfp_d8_d15_regs.S +++ lib/builtins/arm/restore_vfp_d8_d15_regs.S @@ -31,5 +31,7 @@ bx lr // return to prolog END_COMPILERRT_FUNCTION(__restore_vfp_d8_d15_regs) +#if defined(__APPLE__) // tell linker it can break up file at label boundaries .subsections_via_symbols +#endif Index: lib/builtins/arm/save_vfp_d8_d15_regs.S =================================================================== --- lib/builtins/arm/save_vfp_d8_d15_regs.S +++ lib/builtins/arm/save_vfp_d8_d15_regs.S @@ -31,5 +31,7 @@ bx lr // return to prolog END_COMPILERRT_FUNCTION(__save_vfp_d8_d15_regs) +#if defined(__APPLE__) // tell linker it can break up file at label boundaries .subsections_via_symbols +#endif Index: lib/builtins/arm/switch16.S =================================================================== --- lib/builtins/arm/switch16.S +++ lib/builtins/arm/switch16.S @@ -42,5 +42,7 @@ bx ip // jump to computed label END_COMPILERRT_FUNCTION(__switch16) +#if defined(__APPLE__) // tell linker it can break up file at label boundaries .subsections_via_symbols +#endif Index: lib/builtins/arm/switch32.S =================================================================== --- lib/builtins/arm/switch32.S +++ lib/builtins/arm/switch32.S @@ -42,6 +42,8 @@ bx ip // jump to computed label END_COMPILERRT_FUNCTION(__switch32) +#if defined(__APPLE__) // tell linker it can break up file at label boundaries .subsections_via_symbols +#endif Index: lib/builtins/arm/switch8.S =================================================================== --- lib/builtins/arm/switch8.S +++ lib/builtins/arm/switch8.S @@ -40,6 +40,8 @@ bx ip // jump to computed label END_COMPILERRT_FUNCTION(__switch8) +#if defined(__APPLE__) // tell linker it can break up file at label boundaries .subsections_via_symbols +#endif Index: lib/builtins/arm/switchu8.S =================================================================== --- lib/builtins/arm/switchu8.S +++ lib/builtins/arm/switchu8.S @@ -40,6 +40,8 @@ bx ip // jump to computed label END_COMPILERRT_FUNCTION(__switchu8) +#if defined(__APPLE__) // tell linker it can break up file at label boundaries .subsections_via_symbols +#endif