Renaud
2010-07-07 12:16:33 UTC
Hi there ! I tried to get an answer over multiple groups, without success.
The spot : my CPU (AVR32) has no MMU, running our own minimal RTOS,
and tasks are compiled as PIC (mandatory) - using GCC.
Without entering into details, we *need* to declare the DATA sections
(bss, data...) to be position dependent, i.e to fall at a fixed
address regardless of CODE position, thus not PC-relative (unlike PIC
is doing as default).
I searched around the LD manual without success... Maybe by declaring
the sections as "shared memory" or something like that ?
Any hints ?
(please, please keep away from endless debat, I need an answer ;))
Thanks !
The spot : my CPU (AVR32) has no MMU, running our own minimal RTOS,
and tasks are compiled as PIC (mandatory) - using GCC.
Without entering into details, we *need* to declare the DATA sections
(bss, data...) to be position dependent, i.e to fall at a fixed
address regardless of CODE position, thus not PC-relative (unlike PIC
is doing as default).
I searched around the LD manual without success... Maybe by declaring
the sections as "shared memory" or something like that ?
Any hints ?
(please, please keep away from endless debat, I need an answer ;))
Thanks !