Writing OS in FPC

Programming, for all ages and all languages.
Locked
lolkusus
Posts: 15
Joined: Thu May 03, 2012 2:10 am

Writing OS in FPC

Post 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 ????
I'm polish
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Writing OS in FPC

Post by Kevin »

By following the instructions.
Developer of tyndur - community OS of Lowlevel (German)
lolkusus
Posts: 15
Joined: Thu May 03, 2012 2:10 am

Re: Writing OS in FPC

Post by lolkusus »

the last instruction "--gc-sections -s, in combination with -CX -XXs above, eliminates RTTI symbols from resulting binary" doesn't work.
I'm polish
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Writing OS in FPC

Post 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.)
Developer of tyndur - community OS of Lowlevel (German)
lolkusus
Posts: 15
Joined: Thu May 03, 2012 2:10 am

Re: Writing OS in FPC

Post 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 ?
I'm polish
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Writing OS in FPC

Post 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.
Developer of tyndur - community OS of Lowlevel (German)
Locked