Avatar
静的リンク時にrelative pointerの計算をさせたりするから? (edited)
3:21 PM
" .globl " TUPLE_HASHABLE_CONF "\n" " .p2align 2\n" TUPLE_HASHABLE_CONF ":\n" // This is an indirectable relative reference to the GOT entry for the // Hashable protocol descriptor. " .long " INDIRECT_RELREF_GOTPCREL(HASHABLE_DESCRIPTOR_SYMBOL) "\n" // 769 is the MetadataKind::Tuple " .long 769\n" // This indicates that we have no witness table pattern. We use a generic // witness table for builtin conformances. " .long 0\n" (edited)
3:22 PM
// 64 bit arm MachO #if defined(__aarch64__) #define INDIRECT_RELREF_GOTPCREL(SYMBOL) SYMBOL "@GOT - . + 1" (edited)
3:22 PM
こういうのがCで書いた定数としては表現できない