This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: fail gracefully on program without any loadable sections
On Mar 14, 2003, Alexandre Oliva <aoliva at redhat dot com> wrote:
> I don't recall whether it was a bug in the compiler, the linker or in
> glibc data structures that triggered this particular condition
I remember now. Believe it or not, it was a bug in the kernel,
triggered by a bug in glibc. The filebuf structure in elf/dl-load.c
was not sufficiently aligned, and this caused a mis-aligned load to be
put in a delay slot of a branch within the switch statement. The
kernel, due to a bug, failed to emulate the mis-aligned load properly,
and so we ended up with garbage in the register, which caused us to
exit the loop too early.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist Professional serial bug killer