]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/non-lazy-sections-r/foo.s
ld64-123.2.tar.gz
[apple/ld64.git] / 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 (file)
index 0000000..d307880
--- /dev/null
@@ -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