X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/07feaf2cb00322d025073eb8ec22189ada5e4180..a645023da60d22e86be13f7b4d97adeff8bc6665:/unit-tests/test-cases/non-lazy-sections-r/foo.s diff --git a/unit-tests/test-cases/non-lazy-sections-r/foo.s b/unit-tests/test-cases/non-lazy-sections-r/foo.s new file mode 100644 index 0000000..d307880 --- /dev/null +++ b/unit-tests/test-cases/non-lazy-sections-r/foo.s @@ -0,0 +1,34 @@ + .text + .globl _test +_test: +#if __i386__ + movl L_foo$non_lazy_ptr, %eax + movl L_bar$non_lazy_ptr, %eax + movl L_other$non_lazy_ptr, %eax + ret +#endif +#if __arm__ || __ppc__ + .long L_foo$non_lazy_ptr + .long L_bar$non_lazy_ptr + .long L_other$non_lazy_ptr +#endif + + + + .section __IMPORT,__pointers,non_lazy_symbol_pointers +L_foo$non_lazy_ptr: +.indirect_symbol _foo + .long 0 + + .section __DATA,__one,non_lazy_symbol_pointers +L_bar$non_lazy_ptr: +.indirect_symbol _bar + .long 0 + + .section __DATA,__two,non_lazy_symbol_pointers +L_other$non_lazy_ptr: +.indirect_symbol _other + .long 0 + + +.subsections_via_symbols