[Nasm-bugs] [Bug 3392453] nasm not compiling line 'call dword 0x0' correctly

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Mon Jan 1 19:47:46 PST 2018


https://bugzilla.nasm.us/show_bug.cgi?id=3392453

H. Peter Anvin <hpa at zytor.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|OPEN                        |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from H. Peter Anvin <hpa at zytor.com> ---
It doesn't work that way.  Your objcopy call is stripping relocations without
resolving them; you need ld for that:


echo 'call dword 0x0' > a.asm
nasm -f elf32 -o a.o a.asm
ld m elf_i386 -Ttext=0 -e 0 -o a.elf a.o
objcopy -O binary a.elf a.bin
ndisasm -b 32 a.bin
00000000  E8FBFFFFFF        call 0x0

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list