]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/branch-islands/space.s
ld64-96.5.tar.gz
[apple/ld64.git] / unit-tests / test-cases / branch-islands / space.s
index dd286376fff8208e08ab5693ec276a72c3281eba..0218beae2370b6fe5aa302617e261587ae4378dc 100644 (file)
@@ -1,5 +1,5 @@
 
-#if __ppc__
+#if __ppc__ 
 
     .text
 
@@ -27,13 +27,50 @@ _space2:
 
 #if __arm__
 
+    .text
+_prejunk:
+    mov        r0, #1
+    nop
+
+#if __thumb2__
+       // thumb2 branches are +/- 16MB
+_space1:
+    .space 14*1024*1024
+_space2:
+    .space 14*1024*1024
+_space3:
+    .space 14*1024*1024
+
 
+#elif __thumb__
+       // thumb1 branches are +/- 4MB
 _space1:
-    .space 32*1024*1024 + 2
+    .space 3*1024*1024
+_space2:
+    .space 3*1024*1024
+_space3:
+    .space 3*1024*1024
+    
+#else
 
+       // ARM branches are +/- 32MB
+_space1:
+    .space 14*1024*1024
+_space2:
+    .space 14*1024*1024
+_space3:
+    .space 14*1024*1024
 
 #endif
 
+    .align 5
+_junk:
+    mov        r0, #1
+    nop
+    
+    
+_space4:
+    .space 2*1024*1024
+#endif
 
     .subsections_via_symbols
-    
\ No newline at end of file