Edward O'Callaghan | 37a6a45 | 2009-08-07 20:30:09 +0000 | [diff] [blame^] | 1 | /* ===-- 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 Dunbar | b3a6901 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 10 | |
| 11 | |
| 12 | |
| 13 | #if __APPLE__ |
| 14 | #if __ppc__ |
| 15 | #define NOT_HERE_BEFORE_10_6(sym) \ |
| 16 | extern const char sym##_tmp3 __asm("$ld$hide$os10.3$_" #sym ); \ |
| 17 | __attribute__((visibility("default"))) const char sym##_tmp3 = 0; \ |
| 18 | extern const char sym##_tmp4 __asm("$ld$hide$os10.4$_" #sym ); \ |
| 19 | __attribute__((visibility("default"))) const char sym##_tmp4 = 0; \ |
| 20 | extern const char sym##_tmp5 __asm("$ld$hide$os10.5$_" #sym ); \ |
| 21 | __attribute__((visibility("default"))) const char sym##_tmp5 = 0; |
| 22 | #else |
| 23 | #define NOT_HERE_BEFORE_10_6(sym) \ |
| 24 | extern const char sym##_tmp4 __asm("$ld$hide$os10.4$_" #sym ); \ |
| 25 | __attribute__((visibility("default"))) const char sym##_tmp4 = 0; \ |
| 26 | extern const char sym##_tmp5 __asm("$ld$hide$os10.5$_" #sym ); \ |
| 27 | __attribute__((visibility("default"))) const char sym##_tmp5 = 0; |
| 28 | #endif |
| 29 | |
| 30 | |
Edward O'Callaghan | 37a6a45 | 2009-08-07 20:30:09 +0000 | [diff] [blame^] | 31 | /* Symbols in libSystem.dylib in 10.6 and later, |
| 32 | * but are in libgcc_s.dylib in earlier versions |
| 33 | */ |
Daniel Dunbar | b3a6901 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 34 | NOT_HERE_BEFORE_10_6(__absvdi2) |
| 35 | NOT_HERE_BEFORE_10_6(__absvsi2) |
| 36 | NOT_HERE_BEFORE_10_6(__absvti2) |
| 37 | NOT_HERE_BEFORE_10_6(__addvdi3) |
| 38 | NOT_HERE_BEFORE_10_6(__addvsi3) |
| 39 | NOT_HERE_BEFORE_10_6(__addvti3) |
| 40 | NOT_HERE_BEFORE_10_6(__ashldi3) |
| 41 | NOT_HERE_BEFORE_10_6(__ashlti3) |
| 42 | NOT_HERE_BEFORE_10_6(__ashrdi3) |
| 43 | NOT_HERE_BEFORE_10_6(__ashrti3) |
| 44 | NOT_HERE_BEFORE_10_6(__clear_cache) |
| 45 | NOT_HERE_BEFORE_10_6(__clzdi2) |
| 46 | NOT_HERE_BEFORE_10_6(__clzsi2) |
| 47 | NOT_HERE_BEFORE_10_6(__clzti2) |
| 48 | NOT_HERE_BEFORE_10_6(__cmpdi2) |
| 49 | NOT_HERE_BEFORE_10_6(__cmpti2) |
| 50 | NOT_HERE_BEFORE_10_6(__ctzdi2) |
| 51 | NOT_HERE_BEFORE_10_6(__ctzsi2) |
| 52 | NOT_HERE_BEFORE_10_6(__ctzti2) |
| 53 | NOT_HERE_BEFORE_10_6(__divdc3) |
| 54 | NOT_HERE_BEFORE_10_6(__divdi3) |
| 55 | NOT_HERE_BEFORE_10_6(__divsc3) |
| 56 | NOT_HERE_BEFORE_10_6(__divtc3) |
| 57 | NOT_HERE_BEFORE_10_6(__divti3) |
| 58 | NOT_HERE_BEFORE_10_6(__divxc3) |
| 59 | NOT_HERE_BEFORE_10_6(__enable_execute_stack) |
| 60 | NOT_HERE_BEFORE_10_6(__ffsdi2) |
| 61 | NOT_HERE_BEFORE_10_6(__ffsti2) |
| 62 | NOT_HERE_BEFORE_10_6(__fixdfdi) |
| 63 | NOT_HERE_BEFORE_10_6(__fixdfti) |
| 64 | NOT_HERE_BEFORE_10_6(__fixsfdi) |
| 65 | NOT_HERE_BEFORE_10_6(__fixsfti) |
| 66 | NOT_HERE_BEFORE_10_6(__fixtfdi) |
| 67 | NOT_HERE_BEFORE_10_6(__fixunsdfdi) |
| 68 | NOT_HERE_BEFORE_10_6(__fixunsdfsi) |
| 69 | NOT_HERE_BEFORE_10_6(__fixunsdfti) |
| 70 | NOT_HERE_BEFORE_10_6(__fixunssfdi) |
| 71 | NOT_HERE_BEFORE_10_6(__fixunssfsi) |
| 72 | NOT_HERE_BEFORE_10_6(__fixunssfti) |
| 73 | NOT_HERE_BEFORE_10_6(__fixunstfdi) |
| 74 | NOT_HERE_BEFORE_10_6(__fixunsxfdi) |
| 75 | NOT_HERE_BEFORE_10_6(__fixunsxfsi) |
| 76 | NOT_HERE_BEFORE_10_6(__fixunsxfti) |
| 77 | NOT_HERE_BEFORE_10_6(__fixxfdi) |
| 78 | NOT_HERE_BEFORE_10_6(__fixxfti) |
| 79 | NOT_HERE_BEFORE_10_6(__floatdidf) |
| 80 | NOT_HERE_BEFORE_10_6(__floatdisf) |
| 81 | NOT_HERE_BEFORE_10_6(__floatditf) |
| 82 | NOT_HERE_BEFORE_10_6(__floatdixf) |
| 83 | NOT_HERE_BEFORE_10_6(__floattidf) |
| 84 | NOT_HERE_BEFORE_10_6(__floattisf) |
| 85 | NOT_HERE_BEFORE_10_6(__floattixf) |
| 86 | NOT_HERE_BEFORE_10_6(__floatundidf) |
| 87 | NOT_HERE_BEFORE_10_6(__floatundisf) |
| 88 | NOT_HERE_BEFORE_10_6(__floatunditf) |
| 89 | NOT_HERE_BEFORE_10_6(__floatundixf) |
| 90 | NOT_HERE_BEFORE_10_6(__floatuntidf) |
| 91 | NOT_HERE_BEFORE_10_6(__floatuntisf) |
| 92 | NOT_HERE_BEFORE_10_6(__floatuntixf) |
| 93 | NOT_HERE_BEFORE_10_6(__gcc_personality_v0) |
| 94 | NOT_HERE_BEFORE_10_6(__lshrdi3) |
| 95 | NOT_HERE_BEFORE_10_6(__lshrti3) |
| 96 | NOT_HERE_BEFORE_10_6(__moddi3) |
| 97 | NOT_HERE_BEFORE_10_6(__modti3) |
| 98 | NOT_HERE_BEFORE_10_6(__muldc3) |
| 99 | NOT_HERE_BEFORE_10_6(__muldi3) |
| 100 | NOT_HERE_BEFORE_10_6(__mulsc3) |
| 101 | NOT_HERE_BEFORE_10_6(__multc3) |
| 102 | NOT_HERE_BEFORE_10_6(__multi3) |
| 103 | NOT_HERE_BEFORE_10_6(__mulvdi3) |
| 104 | NOT_HERE_BEFORE_10_6(__mulvsi3) |
| 105 | NOT_HERE_BEFORE_10_6(__mulvti3) |
| 106 | NOT_HERE_BEFORE_10_6(__mulxc3) |
| 107 | NOT_HERE_BEFORE_10_6(__negdi2) |
| 108 | NOT_HERE_BEFORE_10_6(__negti2) |
| 109 | NOT_HERE_BEFORE_10_6(__negvdi2) |
| 110 | NOT_HERE_BEFORE_10_6(__negvsi2) |
| 111 | NOT_HERE_BEFORE_10_6(__negvti2) |
| 112 | NOT_HERE_BEFORE_10_6(__paritydi2) |
| 113 | NOT_HERE_BEFORE_10_6(__paritysi2) |
| 114 | NOT_HERE_BEFORE_10_6(__parityti2) |
| 115 | NOT_HERE_BEFORE_10_6(__popcountdi2) |
| 116 | NOT_HERE_BEFORE_10_6(__popcountsi2) |
| 117 | NOT_HERE_BEFORE_10_6(__popcountti2) |
| 118 | NOT_HERE_BEFORE_10_6(__powidf2) |
| 119 | NOT_HERE_BEFORE_10_6(__powisf2) |
| 120 | NOT_HERE_BEFORE_10_6(__powitf2) |
| 121 | NOT_HERE_BEFORE_10_6(__powixf2) |
| 122 | NOT_HERE_BEFORE_10_6(__subvdi3) |
| 123 | NOT_HERE_BEFORE_10_6(__subvsi3) |
| 124 | NOT_HERE_BEFORE_10_6(__subvti3) |
| 125 | NOT_HERE_BEFORE_10_6(__ucmpdi2) |
| 126 | NOT_HERE_BEFORE_10_6(__ucmpti2) |
| 127 | NOT_HERE_BEFORE_10_6(__udivdi3) |
| 128 | NOT_HERE_BEFORE_10_6(__udivmoddi4) |
| 129 | NOT_HERE_BEFORE_10_6(__udivmodti4) |
| 130 | NOT_HERE_BEFORE_10_6(__udivti3) |
| 131 | NOT_HERE_BEFORE_10_6(__umoddi3) |
| 132 | NOT_HERE_BEFORE_10_6(__umodti3) |
| 133 | |
| 134 | |
| 135 | #if __ppc__ |
| 136 | NOT_HERE_BEFORE_10_6(__gcc_qadd) |
| 137 | NOT_HERE_BEFORE_10_6(__gcc_qdiv) |
| 138 | NOT_HERE_BEFORE_10_6(__gcc_qmul) |
| 139 | NOT_HERE_BEFORE_10_6(__gcc_qsub) |
| 140 | NOT_HERE_BEFORE_10_6(__trampoline_setup) |
| 141 | #endif |
| 142 | |
| 143 | |
Edward O'Callaghan | 37a6a45 | 2009-08-07 20:30:09 +0000 | [diff] [blame^] | 144 | #endif /* __APPLE__*/ |
Daniel Dunbar | b3a6901 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 145 | |