[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [avr-gcc-list] Relocating Code
From: |
Oliver Schulz |
Subject: |
AW: [avr-gcc-list] Relocating Code |
Date: |
Thu, 12 Aug 2004 16:59:55 +0200 |
Hi,
please try to name your section ".text.myfunction" and post the results.
Regards,
Oliver.
> -----Ursprungliche Nachricht-----
> Von: address@hidden
> [mailto:address@hidden Auftrag von Ramkumar
> Rengaswamy
> Gesendet: Donnerstag, 12. August 2004 12:27
> An: address@hidden
> Betreff: [avr-gcc-list] Relocating Code
>
>
> Hi,
> I have an application where I am interested in relocating
> a particular
> function to a fixed location in the program memory.
> I do this by defining the
> __attribute__((section(".myfunction"))) in my C
> code and passing the option -Wl,--section-start=.myfunction=0x5000
> My .text section starts at address 0 and occupies only 4000 bytes.
> The code compiles fine but when I call the relocated function with a
> pointer parameter, the AVR resets.
> Is there any reason for such a behavior ?
> In general, are there any constraints for relocating a function in the
> program memory ?
>
> Thanks,
> -Ram
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- AW: [avr-gcc-list] Relocating Code,
Oliver Schulz <=