All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Adrian Bunk <bunk@stusta.de>,
	linux-kernel@vger.kernel.org, dhowells@redhat.com,
	linux-audit@redhat.com
Subject: Re: ELF: what should be part of the userspace headers?
Date: Sat, 5 Aug 2006 07:21:48 -0400	[thread overview]
Message-ID: <20060805112148.GH32572@devserv.devel.redhat.com> (raw)
In-Reply-To: <1154776124.5181.57.camel@shinybook.infradead.org>

On Sat, Aug 05, 2006 at 07:08:43PM +0800, David Woodhouse wrote:
> On Sat, 2006-08-05 at 13:05 +0200, Adrian Bunk wrote:
> > include/linux/elf-em.h is used by include/linux/audit.h, but this usage 
> > doesn't seem to be part of the kernel <-> userspace interface?
> 
> The machine types _are_ part of the audit kernel<->userspace interface,
> I think. Exporting elf-em.h should be fairly harmless.
> 
> > And which part of the ELF headers is part of the kernel <-> userspace 
> > interface?
> 
> Almost none of them, I'd suggest. Nothing but auxvec.h

Well, sys/procfs.h on several arches includes <asm/elf.h>:

find -type f -a -name \*.h | xargs grep '<\(asm\|linux\).*elf'
./sysdeps/unix/sysv/linux/alpha/sys/procfs.h:#include <asm/elf.h>
./sysdeps/unix/sysv/linux/sh/sys/procfs.h:#include <asm/elf.h>
./sysdeps/unix/sysv/linux/sys/procfs.h:#include <asm/elf.h>

while most other arches don't need it:
for i in `find . -name procfs.h`; do grep -q '<\(asm\|linux\).*elf' $i || echo $i; done
./sysdeps/unix/sysv/linux/s390/sys/procfs.h
./sysdeps/unix/sysv/linux/powerpc/sys/procfs.h
./sysdeps/unix/sysv/linux/sparc/sys/procfs.h
./sysdeps/unix/sysv/linux/i386/sys/procfs.h
./sysdeps/unix/sysv/linux/ia64/sys/procfs.h
./sysdeps/unix/sysv/linux/x86_64/sys/procfs.h

Guess it shouldn't be hard to convert even alpha and sh (not sure then
if there are any arches that actually use the linux/sys/procfs.h header).

	Jakub

  reply	other threads:[~2006-08-05 11:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-05 11:05 ELF: what should be part of the userspace headers? Adrian Bunk
2006-08-05 11:05 ` Adrian Bunk
2006-08-05 11:08 ` David Woodhouse
2006-08-05 11:08   ` David Woodhouse
2006-08-05 11:21   ` Jakub Jelinek [this message]
2006-08-13 20:00     ` Adrian Bunk
2006-08-13 20:00       ` Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060805112148.GH32572@devserv.devel.redhat.com \
    --to=jakub@redhat.com \
    --cc=bunk@stusta.de \
    --cc=dhowells@redhat.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-audit@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.