From 238b9fd4b7be732c87629d8fe7c583bbe7c002e9 Mon Sep 17 00:00:00 2001 From: Jonathan Roelofs Date: Mon, 12 May 2014 17:38:36 +0000 Subject: Move .subsections_via_symbols directives into DEFINE_COMPILERRT_PRIVATE_FUNCTION git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208603 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/builtins/assembly.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/builtins/assembly.h') diff --git a/lib/builtins/assembly.h b/lib/builtins/assembly.h index 1a9f79cb6..31ecd149d 100644 --- a/lib/builtins/assembly.h +++ b/lib/builtins/assembly.h @@ -25,6 +25,7 @@ #if defined(__APPLE__) #define HIDDEN_DIRECTIVE .private_extern #define LOCAL_LABEL(name) L_##name +// tell linker it can break up file at label boundaries #define FILE_LEVEL_DIRECTIVE .subsections_via_symbols #define SYMBOL_IS_FUNC(name) #else @@ -103,6 +104,7 @@ SYMBOL_NAME(name): #define DEFINE_COMPILERRT_PRIVATE_FUNCTION(name) \ + FILE_LEVEL_DIRECTIVE SEPARATOR \ .globl SYMBOL_NAME(name) SEPARATOR \ SYMBOL_IS_FUNC(SYMBOL_NAME(name)) SEPARATOR \ HIDDEN_DIRECTIVE SYMBOL_NAME(name) SEPARATOR \ -- cgit v1.2.1