From: Daniel G. <da...@fp...> - 2004-11-11 18:30:32
|
On Thu, 2004-11-11 at 11:54 +0000, Kristian Vandervliet wrote: > It's a loader bug folks. Once I (finally) got libc.so > recompiled without those symbols and recompiled the > testcase with that -shared flag intact it runs perfectly. > Looks like the ELF loader messes up the .bss section on > non-shared ELF objects, and I'm back to compiling everything > as ELF DSO's even though it makes no sense. > > This is one bug I'd like to get fixed; Jake? Anybody else > looking for an interesting, fairly self-contained project? > Well, first off, the kernel loader ignores the program header, which will amost certainly break any non-DSO. It looks like the loader is extremely incomplete. Would it be possible to use it to just load a userspace ld.so, and let that to the real work? Is the mmap code in the kernel good enough? Just speculation here, for the moment. Daniel |