diff options
author | Alexander Graf <agraf@suse.de> | 2011-09-30 19:40:36 +0200 |
---|---|---|
committer | hyokeun <hyokeun.jeon@samsung.com> | 2016-09-06 15:55:31 +0900 |
commit | ef7a95c9cdb51be8ddaf190e22c269cd07eb432d (patch) | |
tree | c9a71cc631d11cf70641a3ae32d23ff6820a562f /stubs/fdset-find-fd.c | |
parent | 5248e7a8a6e58a4cd1f451210a557bfe48da0695 (diff) | |
download | qemu-ef7a95c9cdb51be8ddaf190e22c269cd07eb432d.tar.gz qemu-ef7a95c9cdb51be8ddaf190e22c269cd07eb432d.tar.bz2 qemu-ef7a95c9cdb51be8ddaf190e22c269cd07eb432d.zip |
linux-user: add binfmt wrapper for argv[0] handling
When using qemu's linux-user binaries through binfmt, argv[0] gets lost
along the execution because qemu only gets passed in the full file name
to the executable while argv[0] can be something completely different.
This breaks in some subtile situations, such as the grep and make test
suites.
This patch adds a wrapper binary called qemu-$TARGET-binfmt that can be
used with binfmt's P flag which passes the full path _and_ argv[0] to
the binfmt handler.
The binary would be smart enough to be versatile and only exist in the
system once, creating the qemu binary path names from its own argv[0].
However, this seemed like it didn't fit the make system too well, so
we're currently creating a new binary for each target archictecture.
CC: Reinhard Max <max@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
[AF: Rebased onto new Makefile infrastructure, twice]
[AF: Updated for aarch64 for v2.0.0-rc1]
[AF: Rebased onto Makefile changes for v2.1.0-rc0]
[AF: Rebased onto script rewrite for v2.7.0-rc2 - to be fixed]
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'stubs/fdset-find-fd.c')
0 files changed, 0 insertions, 0 deletions