summaryrefslogtreecommitdiff
path: root/test/manysecs.asm
diff options
context:
space:
mode:
Diffstat (limited to 'test/manysecs.asm')
-rw-r--r--test/manysecs.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/manysecs.asm b/test/manysecs.asm
new file mode 100644
index 00000000..49799453
--- /dev/null
+++ b/test/manysecs.asm
@@ -0,0 +1,15 @@
+%ifndef NSECS
+ %assign NSECS 16384
+%endif
+
+%assign NSECS ((NSECS+3) & ~3)
+
+%assign n 0
+%rep NSECS
+ %assign gcom (n & ~3) + 2
+ section .text %+ n progbits exec
+start_ %+ n:
+ nop
+ jmp start_ %+ gcom
+ %assign n n+1
+%endrep