[Nasm-bugs] [Bug 3392694] New: [Feature request] Support ELF format segment base references
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Tue Jul 7 06:00:36 PDT 2020
https://bugzilla.nasm.us/show_bug.cgi?id=3392694
Bug ID: 3392694
Summary: [Feature request] Support ELF format segment base
references
Product: NASM
Version: 2.15 (development)
Hardware: All
OS: All
Status: OPEN
Severity: enhancement
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: pushbx at ulukai.org
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Unknown
Here's my test case for this:
https://hg.ulukai.org/ecm/testia16/file/96c1c3739340/test7.asm
I am using https://github.com/tkchia/gcc-ia16 built using
https://github.com/tkchia/build-ia16/ The test case is to call a C function
from NASM assembly source. It works fine when the small model is used (one CS,
all function calls are near). However, with the medium model (several CS
allowed, all function calls are far) NASM does not support creating the proper
relocations for a far immediate call. Only calls from C into the NASM code are
possible right now.
$ model="-mcmodel=small"; farcall="-D_FARCALL=0"; nasm -I ../lmacros/ test7.asm
$farcall -f elf -o test7.asm.o && ia16-elf-gcc test7.c test7.asm.o $model -Os
-o test7.exe && dosemu -dumb -quiet -K "$PWD" -E test7.exe
About to Execute : test7.exe
Hello world from assembly!
a=AA11AA11 b=BB22 c=CC33
$ model="-mcmodel=medium"; farcall="-D_FARCALL"; nasm -I ../lmacros/ test7.asm
$farcall -f elf -o test7.asm.o && ia16-elf-gcc test7.c test7.asm.o $model -Os
-o test7.exe && dosemu -dumb -quiet -K "$PWD" -E test7.exe
test7.asm:32: error: ELF format does not support segment base references
$
--
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