1*9880d681SAndroid Build Coastguard Worker// RUN: not llvm-mc -triple=i686-apple-darwin -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR 2*9880d681SAndroid Build Coastguard Worker .space 0x1000000 3*9880d681SAndroid Build Coastguard Worker mov %eax, thing-thing2 4*9880d681SAndroid Build Coastguard Worker mov %eax, defined-thing2 5*9880d681SAndroid Build Coastguard Worker mov %eax, later-defined 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker .section __DATA,__tim 8*9880d681SAndroid Build Coastguard Workerdefined: 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker .section __DATA,__tim2 11*9880d681SAndroid Build Coastguard Workerlater: 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR: 3:9: error: symbol 'thing' can not be undefined in a subtraction expression 14*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR: 4:9: error: symbol 'thing2' can not be undefined in a subtraction expression 15*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR: 5:9: error: Section too large, can't encode r_address (0x100000b) into 24 bits of scattered relocation entry. 16