Tricks

warning: Creating default object from empty value in /home/htdocs.gnu-m68hc11/blog/modules/taxonomy.module on line 1223.

Fast and simple insert code into crt0.s

|

Some time ago there was a question of the sort, "How do I make my own crt0.o file". Then the buzz started, and everyone was talking about how to do these things, including relocating RAM and other hardware configuration.

It seemed overly dificult to worry about things like finding the original crt0.s file (I've only found it burried in the GCC source code), and taking chances of changing too much so it didn't properly initialize RAM and such. Well, I have a solution where all I do is insert my startup code in a specific slot within the default crt0.s without having to edit that file!

Syndicate content