aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-09-27 15:29:01 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2017-09-27 15:29:01 -0700
commite38654a24ed7ea91c1c199c21b52c4132cbe8d0e (patch)
treeff1501c778066e949b6e7ebffbf763cecf5007f9 /test
parent94ead27971de001aea5b403130b2a94cf152ebd4 (diff)
downloadnasm-e38654a24ed7ea91c1c199c21b52c4132cbe8d0e.tar.gz
nasm-e38654a24ed7ea91c1c199c21b52c4132cbe8d0e.tar.xz
nasm-e38654a24ed7ea91c1c199c21b52c4132cbe8d0e.zip
BR 3392411: smartalign: make sure we always define the end symbol
We need to always define the end symbol, otherwise we might find ourselves in a situation where the alignment code grows (common!) and then the symbol is defined late. Reported-by: ig <glucksmann@avast.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/br3392411.asm22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/br3392411.asm b/test/br3392411.asm
new file mode 100644
index 00000000..02071a88
--- /dev/null
+++ b/test/br3392411.asm
@@ -0,0 +1,22 @@
+bits 64
+default rel
+
+%use smartalign
+
+section .text code align=32
+
+align 32
+
+nop
+jz LDone
+
+%rep 10
+ nop
+%endrep
+
+align 16
+%rep 115
+ nop
+%endrep
+
+LDone: