diff options
Diffstat (limited to 'pkg/sentry/loader/BUILD')
-rw-r--r-- | pkg/sentry/loader/BUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkg/sentry/loader/BUILD b/pkg/sentry/loader/BUILD new file mode 100644 index 000000000..34bdb0b69 --- /dev/null +++ b/pkg/sentry/loader/BUILD @@ -0,0 +1,46 @@ +load("//tools:defs.bzl", "go_embed_data", "go_library") + +package(licenses = ["notice"]) + +go_embed_data( + name = "vdso_bin", + src = "//vdso:vdso.so", + package = "loader", + var = "vdsoBin", +) + +go_library( + name = "loader", + srcs = [ + "elf.go", + "interpreter.go", + "loader.go", + "vdso.go", + "vdso_state.go", + ":vdso_bin", + ], + visibility = ["//pkg/sentry:internal"], + deps = [ + "//pkg/abi", + "//pkg/abi/linux", + "//pkg/binary", + "//pkg/context", + "//pkg/cpuid", + "//pkg/log", + "//pkg/rand", + "//pkg/safemem", + "//pkg/sentry/arch", + "//pkg/sentry/fsbridge", + "//pkg/sentry/kernel/auth", + "//pkg/sentry/limits", + "//pkg/sentry/memmap", + "//pkg/sentry/mm", + "//pkg/sentry/pgalloc", + "//pkg/sentry/uniqueid", + "//pkg/sentry/usage", + "//pkg/sentry/vfs", + "//pkg/syserr", + "//pkg/syserror", + "//pkg/usermem", + ], +) |