[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] Dynamic Loader Bugs
From: |
Timothy Baldwin |
Subject: |
Re: [patch] Dynamic Loader Bugs |
Date: |
Mon, 18 Oct 2004 00:11:31 +0100 |
User-agent: |
KMail/1.7 |
On Friday 15 Oct 2004 01:07, Tomas Ebenlendr wrote:
> This patch is nice, after aplying this patch, and fixing the
> mregparm=3 stuff, grub-emu can be changed to load the modules dynamically,
> instead of statically linking.
>
> I have just few questions, because I want to know how it works.
>
> > 1. Gcc 3.4 will delete the module initialization and finalisation
> > functions as they appear to be unused.
>
> It is deleted before objcopy -K ... aplies ? Or -K is just ignored?
Yes, it is not included in the assembler output of gcc 3.4.
> > 3. The modules contain common symbols, which the dynamic loader can't
> > handle.
>
> Yes I saw one variable somwhere in normal.mod that was not
> preinitialized, and so gcc assumes, that dynamic loader will aloccate
> appropriate space.(And it doesn't.) Is this what you mean?
Yes
>
> > 4. The dynamic loader uses the size of common symbols as their address,
> > instead of returning an error.
Sorry, it uses the alignment of the sysmbol.
>
> If I understand it well, it thinks that the symbol lives at address 0x4.
Or whatever the alignment is.
--
Member AFFS, WYLUG, SWP (UK), ANL, RESPECT, Leeds SA, Leeds Anti-war coalition
No to software patents! Victory to the iraqi resistance!
pgp_hXfPdJ8gv.pgp
Description: PGP signature