summaryrefslogtreecommitdiff
path: root/test/manysecs.asm
blob: 49799453a2fb99d443065f8f0c1457844254c651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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