I want to make some correction to compiling method.
it's must befpc -Aelf -n -O3 -Op3 -Si -Sc -Sg -Xd -Rintel -Tlinux kernel.pas
Code: Select all
fpc -Aelf -n -O3 -Op3 -Si -Sc -Sg -Xd -Rintel -Tlinux kernel.pas -CX -XXs
-XXs - Create smart link unit and strip all symbols from executable
and
it's must beld -Tlinker.script -o kernel.obj stub.o kernel.o multiboot.o system.o console.o
Code: Select all
ld --gc-sections -s -Tlinker.script -o kernel.obj stub.o kernel.o multiboot.o system.o console.o
-s - strip all symbols
maybe somebody help me to change it. I don't have wiki account.
we have discussed this in http://forum.lazarus.freepascal.org/ind ... l#msg85788
thanks
to moderator: "ups... sory ,,, i think it's should be move to wiki board"