Author Topic: can't assemble 32 bit nasm code to rdf format using versions above 2.12.02  (Read 10130 times)

Offline johntk123

  • Jr. Member
  • *
  • Posts: 5
I tried a minimal example and I got the same problem.  Here is the .bat and .asm files.  And yes I will be joining the osdev forum.  No one said this was going to be easy but I want to learn something and it will be rewarding in the end.
John.

@echo off
rem nasm .\MYOS\rdftest\rdftest.asm -o .\MYOS\rdftest\rdftest.rdf -f rdf

nasm C:\WebSites\MyWebSite\MYOS\rdftest\rdftest.asm -o C:\WebSites\MyWebSite\MYOS\rdftest\rdftest.rdf -f rdf
echo rdftest.rdf created.
pause


; Filename ".\MYOS\rdftest\rdftest.asm"

use32
segment .data      ; data section.

segment .text      ; code section.

segment .bss      ; bss section.


Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Seems that just:
Code: [Select]
section .text
is enough to do it. That was easier than starting with what you've got and subtracting code after all. :)

rdf is badly broken. The "panic" in the error message was probably a clue. Use version 2.12.2 or so for the time being. The guys are busy but they'll get to it...

Best,
Frank


Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: can't assemble 32 bit nasm code to rdf format using versions above 2.12.02
« Reply #2 on: September 27, 2017, 10:56:27 PM »
Supposed to be fixed in 2.13... versions.

Best,
Frank