mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-05 17:30:27 +00:00
Only take the first flags
This commit is contained in:
parent
7aef5c786a
commit
e788df7643
1 changed files with 1 additions and 1 deletions
|
@ -999,7 +999,7 @@ EXTERN_C __attribute__((__noreturn__)) void ApeLoader(long di, long *sp,
|
||||||
pagesz = ap[1];
|
pagesz = ap[1];
|
||||||
} else if (SupportsNetbsd() && !os && ap[0] == AT_EXECFN_NETBSD) {
|
} else if (SupportsNetbsd() && !os && ap[0] == AT_EXECFN_NETBSD) {
|
||||||
os = NETBSD;
|
os = NETBSD;
|
||||||
} else if (ap[0] == AT_FLAGS) {
|
} else if (!flags && ap[0] == AT_FLAGS) {
|
||||||
// TODO(mrdomino): does anyone use auxv 8 for anything else?
|
// TODO(mrdomino): does anyone use auxv 8 for anything else?
|
||||||
flags = ap;
|
flags = ap;
|
||||||
arg0 = !!(ap[1] & AT_FLAGS_PRESERVE_ARGV0);
|
arg0 = !!(ap[1] & AT_FLAGS_PRESERVE_ARGV0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue