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

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

[avr-gcc-list] problem after relocate code to fix address


From: zhao abl
Subject: [avr-gcc-list] problem after relocate code to fix address
Date: Fri, 09 Dec 2005 03:12:39 +0000

Hi,all:
 This is my problem:
   cpu=atmega128
   void putcinstr(uint8_t) __attribute__((section(".putsec")));
   Wl,--section-start=.putsec=0x4000

 After i relocate a function to a fix address ,the .data section
can't be initialized correctly,all .data section has been initialized with "0xff".

 In the .map file:
     0x000004de                __data_load_start = LOADADDR (.data)
0x000004e8 __data_load_end = (__data_load_start + SIZEOF (.data)) it seems that ,__data_load_start from 0x04de, but actually there is nothing but "0xff". the "load_data" has been placed at "0x2034"(word address),just followed the relocated founction. abl

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn




reply via email to

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