Disabling Startup Code

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello All,

I'm working on writing a bootloader in assembly. I'm using the avr-gcc setup with a default Makefile pretty much.

What I want to do is disable the startup code from ever executing, I just want my program to start right where I have the global .main pointer. Is there a way to do that?

Regards,

-Colin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nevermind - figured it out. The options seems to be:

-nostartfiles

To add to LDFLAGS in the makefile. For example:

LDFLAGS += -nostartfiles

Regards,

-Colin