Permission to change wiki.osdev.org/Pascal_Bare_Bones

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
User avatar
ekowahyudin
Posts: 1
Joined: Sat Oct 02, 2010 8:24 pm
Location: Jakarta

Permission to change wiki.osdev.org/Pascal_Bare_Bones

Post 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"
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

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

Post 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.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

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

Post 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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

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

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply