summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-11-06 18:44:48 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2010-11-06 18:44:48 +0300
commitd9fddf047e5014958fd3630347157d2f0ba81cdb (patch)
tree75d69863e65278a1fde24cdd82b4749fb16cf7b8 /test
parent01102ee8e6a967830bcd6f0134efe8976f473121 (diff)
downloadnasm-d9fddf047e5014958fd3630347157d2f0ba81cdb.tar.gz
nasm-d9fddf047e5014958fd3630347157d2f0ba81cdb.tar.bz2
nasm-d9fddf047e5014958fd3630347157d2f0ba81cdb.zip
test: Add br3092924.asm
coff massive relocations test Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/br3092924.asm25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/br3092924.asm b/test/br3092924.asm
new file mode 100644
index 0000000..3f9cde0
--- /dev/null
+++ b/test/br3092924.asm
@@ -0,0 +1,25 @@
+%define RNUM 0x10000 ; max of relocations in a section is 0xffff
+
+section .data1
+ r1 dd RNUM
+
+section .data2
+ r2 dd RNUM
+
+%macro x1 1
+ mov eax, [r1 + %1]
+%endmacro
+
+%macro x2 1
+ mov eax, [r2 + %1]
+%endmacro
+
+section .text1
+
+ %assign i 0
+ %rep RNUM
+ x1 i
+ x2 i
+ %assign i i+1
+ %endrep
+