blob: f64d306d486616675aa76eba9182c518914c9335 [file] [log] [blame]
Edward O'Callaghan37a6a452009-08-07 20:30:09 +00001/* ===-- apple_versioning.c - Adds versioning symbols for ld ---------------===
2 *
3 * The LLVM Compiler Infrastructure
4 *
5 * This file is distributed under the University of Illinois Open Source
6 * License. See LICENSE.TXT for details.
7 *
8 * ===----------------------------------------------------------------------===
9 */
Daniel Dunbarb3a69012009-06-26 16:47:03 +000010
11
12
13#if __APPLE__
Nick Kledzik92a6cf52009-09-18 00:09:05 +000014 #if __arm__
15 #define NOT_HERE_BEFORE_10_6(sym)
16 #elif __ppc__
Daniel Dunbarb3a69012009-06-26 16:47:03 +000017 #define NOT_HERE_BEFORE_10_6(sym) \
18 extern const char sym##_tmp3 __asm("$ld$hide$os10.3$_" #sym ); \
19 __attribute__((visibility("default"))) const char sym##_tmp3 = 0; \
20 extern const char sym##_tmp4 __asm("$ld$hide$os10.4$_" #sym ); \
21 __attribute__((visibility("default"))) const char sym##_tmp4 = 0; \
22 extern const char sym##_tmp5 __asm("$ld$hide$os10.5$_" #sym ); \
23 __attribute__((visibility("default"))) const char sym##_tmp5 = 0;
24 #else
25 #define NOT_HERE_BEFORE_10_6(sym) \
26 extern const char sym##_tmp4 __asm("$ld$hide$os10.4$_" #sym ); \
27 __attribute__((visibility("default"))) const char sym##_tmp4 = 0; \
28 extern const char sym##_tmp5 __asm("$ld$hide$os10.5$_" #sym ); \
29 __attribute__((visibility("default"))) const char sym##_tmp5 = 0;
Edward O'Callaghan8bf1e092009-08-09 18:41:02 +000030 #endif /* __ppc__ */
Daniel Dunbarb3a69012009-06-26 16:47:03 +000031
32
Edward O'Callaghan37a6a452009-08-07 20:30:09 +000033/* Symbols in libSystem.dylib in 10.6 and later,
34 * but are in libgcc_s.dylib in earlier versions
35 */
Edward O'Callaghan8bf1e092009-08-09 18:41:02 +000036
Daniel Dunbarb3a69012009-06-26 16:47:03 +000037NOT_HERE_BEFORE_10_6(__absvdi2)
38NOT_HERE_BEFORE_10_6(__absvsi2)
39NOT_HERE_BEFORE_10_6(__absvti2)
40NOT_HERE_BEFORE_10_6(__addvdi3)
41NOT_HERE_BEFORE_10_6(__addvsi3)
42NOT_HERE_BEFORE_10_6(__addvti3)
43NOT_HERE_BEFORE_10_6(__ashldi3)
44NOT_HERE_BEFORE_10_6(__ashlti3)
45NOT_HERE_BEFORE_10_6(__ashrdi3)
46NOT_HERE_BEFORE_10_6(__ashrti3)
47NOT_HERE_BEFORE_10_6(__clear_cache)
48NOT_HERE_BEFORE_10_6(__clzdi2)
49NOT_HERE_BEFORE_10_6(__clzsi2)
50NOT_HERE_BEFORE_10_6(__clzti2)
51NOT_HERE_BEFORE_10_6(__cmpdi2)
52NOT_HERE_BEFORE_10_6(__cmpti2)
53NOT_HERE_BEFORE_10_6(__ctzdi2)
54NOT_HERE_BEFORE_10_6(__ctzsi2)
55NOT_HERE_BEFORE_10_6(__ctzti2)
56NOT_HERE_BEFORE_10_6(__divdc3)
57NOT_HERE_BEFORE_10_6(__divdi3)
58NOT_HERE_BEFORE_10_6(__divsc3)
59NOT_HERE_BEFORE_10_6(__divtc3)
60NOT_HERE_BEFORE_10_6(__divti3)
61NOT_HERE_BEFORE_10_6(__divxc3)
62NOT_HERE_BEFORE_10_6(__enable_execute_stack)
63NOT_HERE_BEFORE_10_6(__ffsdi2)
64NOT_HERE_BEFORE_10_6(__ffsti2)
65NOT_HERE_BEFORE_10_6(__fixdfdi)
66NOT_HERE_BEFORE_10_6(__fixdfti)
67NOT_HERE_BEFORE_10_6(__fixsfdi)
68NOT_HERE_BEFORE_10_6(__fixsfti)
69NOT_HERE_BEFORE_10_6(__fixtfdi)
70NOT_HERE_BEFORE_10_6(__fixunsdfdi)
71NOT_HERE_BEFORE_10_6(__fixunsdfsi)
72NOT_HERE_BEFORE_10_6(__fixunsdfti)
73NOT_HERE_BEFORE_10_6(__fixunssfdi)
74NOT_HERE_BEFORE_10_6(__fixunssfsi)
75NOT_HERE_BEFORE_10_6(__fixunssfti)
76NOT_HERE_BEFORE_10_6(__fixunstfdi)
77NOT_HERE_BEFORE_10_6(__fixunsxfdi)
78NOT_HERE_BEFORE_10_6(__fixunsxfsi)
79NOT_HERE_BEFORE_10_6(__fixunsxfti)
80NOT_HERE_BEFORE_10_6(__fixxfdi)
81NOT_HERE_BEFORE_10_6(__fixxfti)
82NOT_HERE_BEFORE_10_6(__floatdidf)
83NOT_HERE_BEFORE_10_6(__floatdisf)
84NOT_HERE_BEFORE_10_6(__floatditf)
85NOT_HERE_BEFORE_10_6(__floatdixf)
86NOT_HERE_BEFORE_10_6(__floattidf)
87NOT_HERE_BEFORE_10_6(__floattisf)
88NOT_HERE_BEFORE_10_6(__floattixf)
89NOT_HERE_BEFORE_10_6(__floatundidf)
90NOT_HERE_BEFORE_10_6(__floatundisf)
91NOT_HERE_BEFORE_10_6(__floatunditf)
92NOT_HERE_BEFORE_10_6(__floatundixf)
93NOT_HERE_BEFORE_10_6(__floatuntidf)
94NOT_HERE_BEFORE_10_6(__floatuntisf)
95NOT_HERE_BEFORE_10_6(__floatuntixf)
96NOT_HERE_BEFORE_10_6(__gcc_personality_v0)
97NOT_HERE_BEFORE_10_6(__lshrdi3)
98NOT_HERE_BEFORE_10_6(__lshrti3)
99NOT_HERE_BEFORE_10_6(__moddi3)
100NOT_HERE_BEFORE_10_6(__modti3)
101NOT_HERE_BEFORE_10_6(__muldc3)
102NOT_HERE_BEFORE_10_6(__muldi3)
103NOT_HERE_BEFORE_10_6(__mulsc3)
104NOT_HERE_BEFORE_10_6(__multc3)
105NOT_HERE_BEFORE_10_6(__multi3)
106NOT_HERE_BEFORE_10_6(__mulvdi3)
107NOT_HERE_BEFORE_10_6(__mulvsi3)
108NOT_HERE_BEFORE_10_6(__mulvti3)
109NOT_HERE_BEFORE_10_6(__mulxc3)
110NOT_HERE_BEFORE_10_6(__negdi2)
111NOT_HERE_BEFORE_10_6(__negti2)
112NOT_HERE_BEFORE_10_6(__negvdi2)
113NOT_HERE_BEFORE_10_6(__negvsi2)
114NOT_HERE_BEFORE_10_6(__negvti2)
115NOT_HERE_BEFORE_10_6(__paritydi2)
116NOT_HERE_BEFORE_10_6(__paritysi2)
117NOT_HERE_BEFORE_10_6(__parityti2)
118NOT_HERE_BEFORE_10_6(__popcountdi2)
119NOT_HERE_BEFORE_10_6(__popcountsi2)
120NOT_HERE_BEFORE_10_6(__popcountti2)
121NOT_HERE_BEFORE_10_6(__powidf2)
122NOT_HERE_BEFORE_10_6(__powisf2)
123NOT_HERE_BEFORE_10_6(__powitf2)
124NOT_HERE_BEFORE_10_6(__powixf2)
125NOT_HERE_BEFORE_10_6(__subvdi3)
126NOT_HERE_BEFORE_10_6(__subvsi3)
127NOT_HERE_BEFORE_10_6(__subvti3)
128NOT_HERE_BEFORE_10_6(__ucmpdi2)
129NOT_HERE_BEFORE_10_6(__ucmpti2)
130NOT_HERE_BEFORE_10_6(__udivdi3)
131NOT_HERE_BEFORE_10_6(__udivmoddi4)
132NOT_HERE_BEFORE_10_6(__udivmodti4)
133NOT_HERE_BEFORE_10_6(__udivti3)
134NOT_HERE_BEFORE_10_6(__umoddi3)
135NOT_HERE_BEFORE_10_6(__umodti3)
136
137
138#if __ppc__
139NOT_HERE_BEFORE_10_6(__gcc_qadd)
140NOT_HERE_BEFORE_10_6(__gcc_qdiv)
141NOT_HERE_BEFORE_10_6(__gcc_qmul)
142NOT_HERE_BEFORE_10_6(__gcc_qsub)
143NOT_HERE_BEFORE_10_6(__trampoline_setup)
Edward O'Callaghan8bf1e092009-08-09 18:41:02 +0000144#endif /* __ppc__ */
Daniel Dunbarb3a69012009-06-26 16:47:03 +0000145
146
Edward O'Callaghan37a6a452009-08-07 20:30:09 +0000147#endif /* __APPLE__*/