Re: [patch] thread-aware coredumps, 2.5.43-C3

Mark Kettenis (kettenis@chello.nl)
Sat, 19 Oct 2002 15:26:01 +0200 (CEST)


From: Mark Gross <mark@thegnar.org>
Date: Fri, 18 Oct 2002 06:57:38 -0700

I think I fixed it to set namesz to 5, with the +1 it was making it 6. My
patch is supposed to remove the +1.

The System V ABI (which is the specification that defines ELF) says
that the namesz should include the terminating 0 of the note name,
therefore we should have the +1, and namesz should be 6 for notes with
the name "LINUX". The Linux kernel has been doing the wrong thing for
ages, and somehow BFD picked this up for the particular note we're
discussing here. For other notes this doesn't matter since BFD
doesn't look at the name at all. The bottom-line is that the kernel
is doing the right thing now and we should fix BFD, which I'm going to
do shortly.

Mark
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/