[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Locating Bootloader code
From: |
Ulf Ziemann |
Subject: |
Re: [avr-gcc-list] Locating Bootloader code |
Date: |
Mon, 28 Jan 2002 12:23:56 +0100 |
>From an old mail :
How link to a special address:
Change the LDFLAGS in Makefile:
LDFLAGS = -Ttext 1000(here is TAB and not a
SPACE!!)-Wl,-Map=$(TRG).map,--cref
Ulf
Am Montag, 28. Januar 2002 09:46 schrieb Pieter Potgieter:
> Hi folks
>
> Help wanted:
> How do I tell the linker to use an absolute address for a module eg.
> Bootloader.o.
> I want to put the bootloader part of the code for a mega128 to start at
> address 0x1FC00. How do one do this?
>
> Plans tried:
> 1. I have tried to put the following Assembler statement in the C code
> module for the bootloader, but the linker treats it as a relative address.
> __asm__ ( ".org 0x1FC00");
>
> 2. The --start-section SECTION=ORG also does not work if I use the linker
> on the command line. Or maybe I am just using it incorrectly.
>
> Any suggestions on an elegant way of locating the bootloader code to a
> fixed address will be appreciated.
>
> Thanx
> Pieter Potgieter
>
>
> avr-gcc-list at http://avr1.org
--
Dipl.-Ing. Ulf Ziemann
Hochheimer Straße 47 - 99094 Erfurt
FON : 0361 / 78930-70 FAX : 0361 / 78930-80
ProDesign Electronic & CAD-Layout
avr-gcc-list at http://avr1.org