Position independent CODE with position dependent DATA ?

Renaud nono240@gmail.com
Wed Jul 7 12:17:00 GMT 2010
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 !



More information about the Binutils mailing list