]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/late-link-error/link_error.s
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / late-link-error / link_error.s
1
2
3 #if __ppc__ || __ppc64__
4 ; illegal absolute load
5 _foo: lis r2,ha16(_strcmp)
6 #endif
7
8 #if __i386__
9 // illegal absolute load
10 _foo: movl _strcmp, %eax
11 #endif
12
13
14 #if __x86_64__
15 // illegal external load
16 _foo: movl _strcmp(%rip), %eax
17 #endif
18
19 #if __arm__
20 ; illegal absolute load
21 _foo: ldr r2, _strcmp
22 #endif