summaryrefslogtreecommitdiffstats
path: root/contrib/compiler-rt/lib/assembly.h
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2012-08-08 09:42:44 +0000
committerandrew <andrew@FreeBSD.org>2012-08-08 09:42:44 +0000
commit30502844bd04cb59ab3146bfc660987e81eaaac0 (patch)
treeee445c9472d0093c3489f12d8048a72fe6e55f66 /contrib/compiler-rt/lib/assembly.h
parent54cb95d6380dbb936499b9c35fd4ad12ba649f42 (diff)
parentcfeab007a554034f0b3ab4a677cf9dd2696c12f9 (diff)
downloadFreeBSD-src-30502844bd04cb59ab3146bfc660987e81eaaac0.zip
FreeBSD-src-30502844bd04cb59ab3146bfc660987e81eaaac0.tar.gz
Import compiler-rt r160957.
This is mostly a no-op other than for ARM where it adds missing __aeabi_mem* and __aeabi_*divmod functions. Even on ARM these will remain unused until the rest of the ARM EABI code is merged.
Diffstat (limited to 'contrib/compiler-rt/lib/assembly.h')
-rw-r--r--contrib/compiler-rt/lib/assembly.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/compiler-rt/lib/assembly.h b/contrib/compiler-rt/lib/assembly.h
index 83bed12..3d8e50d 100644
--- a/contrib/compiler-rt/lib/assembly.h
+++ b/contrib/compiler-rt/lib/assembly.h
@@ -25,9 +25,11 @@
#if defined(__APPLE__)
#define HIDDEN_DIRECTIVE .private_extern
#define LOCAL_LABEL(name) L_##name
+#define FILE_LEVEL_DIRECTIVE .subsections_via_symbols
#else
#define HIDDEN_DIRECTIVE .hidden
#define LOCAL_LABEL(name) .L_##name
+#define FILE_LEVEL_DIRECTIVE
#endif
#define GLUE2(a, b) a ## b
@@ -42,6 +44,7 @@
#endif
#define DEFINE_COMPILERRT_FUNCTION(name) \
+ FILE_LEVEL_DIRECTIVE SEPARATOR \
.globl SYMBOL_NAME(name) SEPARATOR \
DECLARE_SYMBOL_VISIBILITY(name) \
SYMBOL_NAME(name):
OpenPOWER on IntegriCloud