[Nasm-bugs] [Bug 3392571] New: intra-section call doesn't cause error or warning
noreply-nasm at gorcunov.org
noreply-nasm at gorcunov.org
Thu Jun 6 06:29:33 PDT 2019
https://bugzilla.nasm.us/show_bug.cgi?id=3392571
Bug ID: 3392571
Summary: intra-section call doesn't cause error or warning
Product: NASM
Version: 2.14.xx
Hardware: All
OS: All
Status: OPEN
Severity: severe
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: pushbx at 38.de
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: From OS distribution
When calling from one (multi-section bin format) section to another, with
differing vstart values (not one following the other), the call is not flagged
by an error or warning.
$ nasm -v
NASM version 2.14
$ cat test.asm
org 256
section entry start=256
call callme
align 16
section code vstart=0 align=16 follows=entry
times 16 nop
callme:
$ nasm test.asm -o test.bin -l test.lst
$ cat test.lst
1 org 256
2 section entry start=256
3 00000000 E8(1000) call callme
4 00000003 90<rept> align 16
5
6 section code vstart=0 align=16
follows=entry
7 00000000 90<rept> times 16 nop
8 callme:
$ ndisasm test.bin
00000000 E80DFF call 0xff10
00000003 90 nop
00000004 90 nop
00000005 90 nop
00000006 90 nop
00000007 90 nop
00000008 90 nop
00000009 90 nop
0000000A 90 nop
0000000B 90 nop
0000000C 90 nop
0000000D 90 nop
0000000E 90 nop
0000000F 90 nop
00000010 90 nop
00000011 90 nop
00000012 90 nop
00000013 90 nop
00000014 90 nop
00000015 90 nop
00000016 90 nop
00000017 90 nop
00000018 90 nop
00000019 90 nop
0000001A 90 nop
0000001B 90 nop
0000001C 90 nop
0000001D 90 nop
0000001E 90 nop
0000001F 90 nop
$
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list