Page 1 of 1

Writing OS in FPC

Posted: Wed Jun 20, 2012 10:09 am
by lolkusus
I want to write system in FPC i have read Pascal Barebones, but at the end i have kernel.obj file.
How to have executable file ????

Re: Writing OS in FPC

Posted: Wed Jun 20, 2012 10:18 am
by Kevin
By following the instructions.

Re: Writing OS in FPC

Posted: Wed Jun 20, 2012 10:23 am
by lolkusus
the last instruction "--gc-sections -s, in combination with -CX -XXs above, eliminates RTTI symbols from resulting binary" doesn't work.

Re: Writing OS in FPC

Posted: Wed Jun 20, 2012 10:30 am
by Kevin
The last sentence is not an instruction, but an explanation. I assume that you mean that ld --gc-sections -s -Tlinker.script -o kernel.obj stub.o kernel.o multiboot.o system.o console.o doesn't work. Then you need to make the appropriate changes to make that line work.

(See how it works? You ask a question without useful information, you get an answer without useful information.)

Re: Writing OS in FPC

Posted: Wed Jun 20, 2012 10:35 am
by lolkusus
I have kernel.obj made from stub.o kernel.o multiboot.o system.o and console.o
I want to make executable file ( I mean *.elf) How to do this ?

Re: Writing OS in FPC

Posted: Wed Jun 20, 2012 11:50 am
by Kevin
There is a command line given that I even quoted. Apparently this command line has worked for at least one person. If it doesn't work for you, then something in your setup is different. There's probably a million ways to mess something up, do you expect me to guess the right one? (Sorry, I don't have my crystal ball handy right now)

Posting at least the error messages you get would be a start.