fail gracefully on program without any loadable sections
Alexandre Oliva
aoliva@redhat.com
Fri Mar 14 04:18:00 GMT 2003
On Mar 14, 2003, Alexandre Oliva <aoliva@redhat.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@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Libc-alpha
mailing list