2021-02-17 04:02:14 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2017-02-02 01:59:15 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "crasher-defaults",
|
|
|
|
|
2017-10-03 00:20:07 +02:00
|
|
|
cflags: [
|
2017-02-02 01:59:15 +01:00
|
|
|
"-W",
|
|
|
|
"-Wall",
|
|
|
|
"-Wextra",
|
|
|
|
"-Wunused",
|
|
|
|
"-Werror",
|
|
|
|
"-O0",
|
|
|
|
"-fstack-protector-all",
|
|
|
|
"-Wno-date-time",
|
|
|
|
],
|
2022-12-05 20:28:40 +01:00
|
|
|
tidy: false, // crasher.cpp tests many memory access errors
|
2017-02-02 01:59:15 +01:00
|
|
|
srcs: ["crasher.cpp"],
|
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
srcs: ["arm/crashglue.S"],
|
|
|
|
},
|
|
|
|
arm64: {
|
|
|
|
srcs: ["arm64/crashglue.S"],
|
|
|
|
},
|
2022-10-12 16:27:54 +02:00
|
|
|
riscv64: {
|
|
|
|
srcs: ["riscv64/crashglue.S"],
|
|
|
|
},
|
2017-02-02 01:59:15 +01:00
|
|
|
x86: {
|
|
|
|
srcs: ["x86/crashglue.S"],
|
|
|
|
},
|
|
|
|
x86_64: {
|
|
|
|
srcs: ["x86_64/crashglue.S"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
compile_multilib: "both",
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "crasher",
|
|
|
|
|
|
|
|
defaults: ["crasher-defaults"],
|
2019-12-13 23:11:04 +01:00
|
|
|
header_libs: ["bionic_libc_platform_headers"],
|
2017-02-02 01:59:15 +01:00
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
"liblog",
|
2022-04-13 23:55:36 +02:00
|
|
|
],
|
|
|
|
static_libs: [
|
2017-03-03 04:01:20 +01:00
|
|
|
"libseccomp_policy",
|
2017-02-02 01:59:15 +01:00
|
|
|
],
|
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
stem: "crasher",
|
|
|
|
},
|
|
|
|
lib64: {
|
|
|
|
stem: "crasher64",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "static_crasher",
|
|
|
|
|
|
|
|
defaults: ["crasher-defaults"],
|
|
|
|
cppflags: ["-DSTATIC_CRASHER"],
|
|
|
|
static_executable: true,
|
2019-12-13 23:11:04 +01:00
|
|
|
header_libs: ["bionic_libc_platform_headers"],
|
2017-02-02 01:59:15 +01:00
|
|
|
static_libs: [
|
|
|
|
"libdebuggerd_handler",
|
|
|
|
"libbase",
|
|
|
|
"liblog",
|
2017-03-03 04:01:20 +01:00
|
|
|
"libseccomp_policy",
|
2017-02-02 01:59:15 +01:00
|
|
|
],
|
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
stem: "static_crasher",
|
|
|
|
},
|
|
|
|
lib64: {
|
|
|
|
stem: "static_crasher64",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|