This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Position independent CODE with position dependent DATA ?
- From: Renaud <nono240 at gmail dot com>
- To: binutils <binutils at sourceware dot org>
- Date: Wed, 7 Jul 2010 14:16:33 +0200
- Subject: Position independent CODE with position dependent DATA ?
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 !