From: Paul Mackerras <paulus@samba.org>
To: marcelo@conectiva.com.br
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] SET_PERSONALITY for static executables
Date: Tue, 9 Apr 2002 22:10:30 +1000 (EST) [thread overview]
Message-ID: <15538.55862.174959.115786@argo.ozlabs.ibm.com> (raw)
Marcelo,
The SET_PERSONALITY call which made a brief appearance in 2.4.18-rc4
(setting the personality for static binaries in fs/binfmt_elf.c) still
hasn't reappeared as of 2.4.19-pre6. Here is the patch to put it back
in.
Thanks,
Paul.
diff -urN linux-2.4.19-pre6/fs/binfmt_elf.c linuxppc-merge/fs/binfmt_elf.c
--- linux-2.4.19-pre6/fs/binfmt_elf.c Sun Apr 7 21:31:19 2002
+++ linuxppc-merge/fs/binfmt_elf.c Mon Apr 8 22:27:22 2002
@@ -586,6 +586,9 @@
bprm->argc++;
}
}
+ } else {
+ /* Executables without an interpreter also need a personality */
+ SET_PERSONALITY(elf_ex, ibcs2_interpreter);
}
/* Flush all traces of the currently running executable */
next reply other threads:[~2002-04-09 12:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-09 12:10 Paul Mackerras [this message]
2002-04-09 12:15 ` [PATCH] SET_PERSONALITY for static executables David S. Miller
2002-04-09 13:13 ` Paul Mackerras
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=15538.55862.174959.115786@argo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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 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 NNTP newsgroup(s).