Skip to content
Commit 2347961b authored by Laurent Vivier's avatar Laurent Vivier Committed by Helge Deller
Browse files

binfmt_misc: pass binfmt_misc flags to the interpreter



It can be useful to the interpreter to know which flags are in use.

For instance, knowing if the preserve-argv[0] is in use would
allow to skip the pathname argument.

This patch uses an unused auxiliary vector, AT_FLAGS, to add a
flag to inform interpreter if the preserve-argv[0] is enabled.

Note by Helge Deller:
The real-world user of this patch is qemu-user, which needs to know
if it has to preserve the argv[0]. See Debian bug #970460.

Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
Reviewed-by: default avatarYunQiang Su <ysu@wavecomp.com>
URL: http://bugs.debian.org/970460


Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent b7795074
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment