Page 1 of 1

Permission to change wiki.osdev.org/Pascal_Bare_Bones

Posted: Fri Jan 27, 2012 6:17 pm
by ekowahyudin
on current http://wiki.osdev.org/Pascal_Bare_Bones, free pascal include RTTI and debug information to binary output kernel. It's useless and the kernel going to big.

I want to make some correction to compiling method.
fpc -Aelf -n -O3 -Op3 -Si -Sc -Sg -Xd -Rintel -Tlinux kernel.pas
it's must be

Code: Select all

fpc -Aelf -n -O3 -Op3 -Si -Sc -Sg -Xd -Rintel -Tlinux kernel.pas -CX -XXs
-CX - Create a smartlinked library
-XXs - Create smart link unit and strip all symbols from executable



and
ld -Tlinker.script -o kernel.obj stub.o kernel.o multiboot.o system.o console.o
it's must be

Code: Select all

ld --gc-sections -s -Tlinker.script -o kernel.obj stub.o kernel.o multiboot.o system.o console.o
--gc-sections - Remove unused sections
-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 #-o ,,, i think it's should be move to wiki board"

Re: Permission to change wiki.osdev.org/Pascal_Bare_Bones

Posted: Sat Jan 28, 2012 2:01 am
by xenos
I think you need to become a member of the "wiki" group here in the forum. Access is free to all forum members and you'll instantly get editing rights for the wiki.

Re: Permission to change wiki.osdev.org/Pascal_Bare_Bones

Posted: Sat Jan 28, 2012 5:56 am
by Brendan
Hi,
ekowahyudin wrote:maybe somebody help me to change it. I don't have wiki account.
You can give yourself access to edit the wiki. For more info see http://forum.osdev.org/viewtopic.php?f=8&t=677 .


Cheers,

Brendan

Re: Permission to change wiki.osdev.org/Pascal_Bare_Bones

Posted: Sat Jan 28, 2012 6:28 am
by Combuster
One thing that I did notice in the linked thread is that the change in options do not "fix" anything but cosmetic changes for the poster, it does however introduce a probability that existing code can break for others as it does two things:
- disable RTTI support
- remove debugging information
People might not expect that.