Author Topic: How to change crt0.S to my init code in this codeblocks tool?  (Read 9230 times)

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
How to change crt0.S to my init code in this codeblocks tool?
« on: September 25, 2008, 09:11:06 am »
codeblock link crt0.s by default.
If I want change start code(crt0.s),how to change option in this codeblocks?


thx :P

mariocup

  • Guest
Re: How to change crt0.S to my init code in this codeblocks tool?
« Reply #1 on: September 25, 2008, 09:22:15 am »
Hi mmkider,

if you do not want to link the startup code crt0.s by default then you will have to pass the linker options -nocrt0 and the the compiler option -nostartfiles.

Bye,

Mario

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: How to change crt0.S to my init code in this codeblocks tool?
« Reply #2 on: September 25, 2008, 11:15:22 am »
thx

I key -nostartfiles in other linker option,it's ok.
 :D