summaryrefslogtreecommitdiff
path: root/test/objtest.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-05-03 17:32:02 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2017-05-03 17:33:04 -0700
commita7b6bfca683d7679423d5723aa799c1ac889ee00 (patch)
tree09227b5005e2c035cf611f852734e187bd46c57a /test/objtest.asm
parent09a3f8d18a47f1fe920abf2c105fe85095759ecf (diff)
downloadnasm-a7b6bfca683d7679423d5723aa799c1ac889ee00.tar.gz
Sanitize the handling of segments a bit
Make the internal handling of segment numbers just a little more sane. The whole use of when we have done ofmt->segbase or not is crazy, though... In the meantime, add a few more hacks to the dbg output format to make it more useful. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'test/objtest.asm')
-rw-r--r--test/objtest.asm6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/objtest.asm b/test/objtest.asm
index 03b7f9e2..c68f7cbb 100644
--- a/test/objtest.asm
+++ b/test/objtest.asm
@@ -35,8 +35,8 @@
common _commvar 2 ; [3]
extern _printf ; [6]
- group mygroup mybss mydata ; [10]
- group mygroup2 mycode mycode2 ; [10]
+ group mygroup mybss mydata
+ group mygroup2 mycode mycode2
segment mycode private
@@ -67,6 +67,8 @@ _function push bp
retf
.printf dw _printf, seg _printf ; [2] [4] [16]
+.printfd dd _printf, seg _printf ; [2] [4] [16]
+.printfq dq _printf, seg _printf ; [2] [4] [16]
segment mycode2 private