diff options
author | Haibo Xu <haibo.xu@arm.com> | 2019-11-11 09:42:04 +0000 |
---|---|---|
committer | Haibo Xu <haibo.xu@arm.com> | 2019-11-13 06:46:02 +0000 |
commit | 1d8b7292d72ce93d465e4ded19237fb92c08bc56 (patch) | |
tree | 46cf4ff31b5d29c92aad69a3261516211f4010b2 /pkg/sentry/loader/vdso.go | |
parent | c5d9b5b8816e99507661e1d39ec51033fb69e212 (diff) |
Fix some build errors on arm64.
Initialize the VDSO "os" and "arch" fields explicitly,
or the VDSO load process would failed on arm64 platform.
Signed-off-by: Haibo Xu <haibo.xu@arm.com>
Change-Id: Ic6768df88e43cd7c7956eb630511672ae11ac52f
Diffstat (limited to 'pkg/sentry/loader/vdso.go')
-rw-r--r-- | pkg/sentry/loader/vdso.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/loader/vdso.go b/pkg/sentry/loader/vdso.go index ada28aea3..df8a81907 100644 --- a/pkg/sentry/loader/vdso.go +++ b/pkg/sentry/loader/vdso.go @@ -268,6 +268,8 @@ func PrepareVDSO(ctx context.Context, mfp pgalloc.MemoryFileProvider) (*VDSO, er // some applications may not be able to handle multiple [vdso] // hints. vdso: mm.NewSpecialMappable("", mfp, vdso), + os: info.os, + arch: info.arch, phdrs: info.phdrs, }, nil } |