Bug 4236 - elf_prstatus via procfs.h differs from kernel
Summary: elf_prstatus via procfs.h differs from kernel
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 6.0
Hardware: alpha
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-07-28 08:32 UTC by jcownie
Modified: 2008-08-01 16:22 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description jcownie 1999-07-28 08:32:25 UTC
On Red Hat 6.0 on the Alpha processor (kernel 2.2.3), there
seems to be an inconsistency between
the file elfcore.h (which defines elf_prstatus) and the
kernel (which dumps an elf_prstatus into
a note in the core file).

When one compiles a trivial code which prints the sizeof
(struct elf_prstatus),
one gets the result 352, however the size of the NOTE in a
core file (which is
set by the kernel to be sizeof (elf_prstatus) is 384.

The inconsistency appears to be caused by an extra 32 bytes
of something
somewhere before the pr_reg structure, since one can easily
write a program
to put known values in the registers and then core dump,
allowing one to see
where the registers appear...


Note You need to log in before you can comment on or make changes to this bug.