Re: [uClinux-dev] [PATCH/RFC] FDPIC: add hook for arches to customize program header parsing

From: Mike Frysinger
Date: Sat Jun 13 2009 - 12:41:45 EST


On Sat, Jun 13, 2009 at 12:13, Jamie Lokier wrote:
> Mike Frysinger wrote:
>> From: Jie Zhang <jie.zhang@xxxxxxxxxx>
>>
>> The Blackfin port has custom program header flags/addresses for
>> automatically loading regions into the dedicated on-chip SRAM. ÂSo add a
>> hook for ports to leverage.
>
> What does this have to do with FDPIC? ÂI don't see anything that is
> specific to FDPIC about this code, other than FDPIC being the type of
> ELF used on Blackfin. ÂIf an MMU were added to some future Blackfins,
> wouldn't this code be used for non-FDPIC ELF too?

no, because with a MMU, the memory would be virtualized and we could
handle it dynamically

> It looks like a way for certain special executables to load themselves
> into fixed regions of the on-chip SRAM - and promptly crash if another
> executable does the same. ÂNot so much a general executable format, as
> a hack to load something specific which should only be done once at a
> time. ÂWhat am I missing here?

the addresses are keys, not fixed and/or "real" addresses
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/