diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-01-09 15:48:11 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-01-09 15:48:11 +0000 |
commit | a034df74fdb12c279d0096abb6d6f7b2b2fec24b (patch) | |
tree | d94bd935147312dab2e67e6b9dfafa3f4041a20d /sys/compat | |
parent | 5c3e282c6e2de5e789d3037361681fa9796a395a (diff) | |
download | FreeBSD-src-a034df74fdb12c279d0096abb6d6f7b2b2fec24b.zip FreeBSD-src-a034df74fdb12c279d0096abb6d6f7b2b2fec24b.tar.gz |
MFC r283410:
Put linux_platform into the vdso to avoid copying it onto the stack at
every exec.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 2 | ||||
-rw-r--r-- | sys/compat/linux/linux_misc.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 21e5bfc..b1a583d 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -732,7 +732,7 @@ linux_newuname(struct thread *td, struct linux_newuname_args *args) *p = '\0'; break; } - strlcpy(utsname.machine, linux_platform, LINUX_MAX_UTSNAME); + strlcpy(utsname.machine, linux_kplatform, LINUX_MAX_UTSNAME); return (copyout(&utsname, args->buf, sizeof(utsname))); } diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index 1623422..2f2ead5 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -55,7 +55,7 @@ #define LINUX_MREMAP_MAYMOVE 1 #define LINUX_MREMAP_FIXED 2 -extern const char *linux_platform; +extern const char *linux_kplatform; /* * Non-standard aux entry types used in Linux ELF binaries. |