Hi!
It was only beginning to learn assembler.
I use NASM to compile the files.
Always, everything was fine, but now I need to compile a file with *.asm to *.o
"nasm-f aout-o kernel.asm kernel.o"
I have a problem, because it shows me nasm error on this line:
"ORG 0x00001000"
I understand that files aout can not have ORG directive?
How to replace the ORG?
PS. Sorry for the mistakes, but I'm Polish; /
nasm - ORG Directive
Re: nasm - ORG Directive
$man nasm
So since executable formats are relocatable, they don't need [org] directive, but rather get their respective addresses during the linking phase. In other words, use [org] when outputning your code in flat binary.FORMAT-SPECIFIC DIRECTIVES
ORG address is used by the bin flat-form binary output format, and
specifies the address at which the output code will eventually be loaded.
____
Dario
Dario