avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] How to set section order


From: Eric Weddington
Subject: Re: [avr-gcc-list] How to set section order
Date: Wed, 18 Jan 2006 10:32:14 -0700
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

David Bourgeois wrote:
I have a bootloader that I would like to start at 0x0E00 in an ATMega48 (no special boot loader section in FLASH). It has 2 functions that should be placed in the following order: bootloader(), smallFunction().

I created a .bootloader section and I ask the linker to put it at 0x0E00 and associated bootloader() with tis section.

But if I also put smallFunction() in the .bootloader section, then it's placed first at 0x0E00 and bootloader() comes later which is not what I want. It seems I need some kind of subsections like the .initX sections. But then I'm completely lost in the linker manual.

Does anybody knows how to do this?

Does your smallFunction() come before bootloader() in your .c file?

--
Eric Weddington




reply via email to

[Prev in Thread] Current Thread [Next in Thread]