public inbox for gnu-gabi@sourceware.org
 help / color / mirror / Atom feed
* gABI extension proposal: PT_SHMMAP
@ 2017-01-01  0:00 H. Peter Anvin
  2017-01-01  0:00 ` Cary Coutant
  2017-01-01  0:00 ` James Y Knight via gnu-gabi
  0 siblings, 2 replies; 11+ messages in thread
From: H. Peter Anvin @ 2017-01-01  0:00 UTC (permalink / raw)
  To: gnu-gabi

Hello,

I would like to propose an extension to the ELF gABI, which is analogous
to PT_LOAD except that it requests that the underlying file be
memory-mapped with MAP_SHARED, rather than MAP_PRIVATE as used for
PT_LOAD.  PT_SHARED or PT_SHLOAD would be other possible names.

The main motivation for this is to allow the Linux kernel vDSO to
finally become as close to an "ordinary" ELF DSO as is possible.  The
vDSO depends on having its kernel-provided data page(s) at a specific
offset from the vDSO code; this is currently done by ad hoc memory
areas, which has a number of problems, especially for mixed-mode programs.

The idea is to convert the vdso to a proper file in one of the
kernel-provided filesystems (e.g. /proc or /sys); by defining this type,
an ELF parser would be able to create the appropriate mappings without
any ad hoc code.

This may be usable for other operating systems or perhaps even in
userspace.  However, if there is no such interest then it would be
possible for Linux to use one of the PT_*OS constants; however, I
generally believe it is better to try to be as inclusive as possible.

	-hpa

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-06-09 13:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-01  0:00 gABI extension proposal: PT_SHMMAP H. Peter Anvin
2017-01-01  0:00 ` Cary Coutant
2017-01-01  0:00   ` hpa
2017-01-01  0:00     ` Suprateeka R Hegde
2017-01-01  0:00       ` H. Peter Anvin
2017-01-01  0:00 ` James Y Knight via gnu-gabi
2017-01-01  0:00   ` Cary Coutant
2017-01-01  0:00     ` Suprateeka R Hegde
2017-01-01  0:00       ` H. Peter Anvin
2017-01-01  0:00         ` Suprateeka R Hegde
2017-01-01  0:00     ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).