aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/testdata/cros_hardened_golden/gcc_sanitizer_args.json
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/testdata/cros_hardened_golden/gcc_sanitizer_args.json')
-rw-r--r--compiler_wrapper/testdata/cros_hardened_golden/gcc_sanitizer_args.json170
1 files changed, 85 insertions, 85 deletions
diff --git a/compiler_wrapper/testdata/cros_hardened_golden/gcc_sanitizer_args.json b/compiler_wrapper/testdata/cros_hardened_golden/gcc_sanitizer_args.json
index 0552bf7c..7a48c5d6 100644
--- a/compiler_wrapper/testdata/cros_hardened_golden/gcc_sanitizer_args.json
+++ b/compiler_wrapper/testdata/cros_hardened_golden/gcc_sanitizer_args.json
@@ -1,29 +1,17 @@
[
{
- "wd": "/tmp/stable",
- "wrapper": {
- "cmd": {
- "path": "./x86_64-cros-linux-gnu-gcc",
- "args": [
- "-fsanitize=kernel-address",
- "-Wl,--no-undefined",
- "main.cc"
- ]
- }
- },
"cmds": [
{
"cmd": {
- "path": "/usr/bin/ccache",
"args": [
"./x86_64-cros-linux-gnu-gcc.real",
"--sysroot=/usr/x86_64-cros-linux-gnu",
- "-D_FORTIFY_SOURCE=2",
"-fno-reorder-blocks-and-partition",
"-Wno-unused-local-typedefs",
"-Wno-maybe-uninitialized",
"-fcommon",
"-fstack-protector-strong",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"-fsanitize=kernel-address",
@@ -34,36 +22,36 @@
"env_updates": [
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
- },
- {
+ ],
"wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-gcc",
"args": [
"-fsanitize=kernel-address",
- "-Wl,-z,defs",
+ "-Wl,--no-undefined",
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-gcc"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "/usr/bin/ccache",
"args": [
"./x86_64-cros-linux-gnu-gcc.real",
"--sysroot=/usr/x86_64-cros-linux-gnu",
- "-D_FORTIFY_SOURCE=2",
"-fno-reorder-blocks-and-partition",
"-Wno-unused-local-typedefs",
"-Wno-maybe-uninitialized",
"-fcommon",
"-fstack-protector-strong",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"-fsanitize=kernel-address",
@@ -74,36 +62,36 @@
"env_updates": [
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
- },
- {
+ ],
"wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-gcc",
"args": [
"-fsanitize=kernel-address",
- "-D_FORTIFY_SOURCE=1",
+ "-Wl,-z,defs",
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-gcc"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "/usr/bin/ccache",
"args": [
"./x86_64-cros-linux-gnu-gcc.real",
"--sysroot=/usr/x86_64-cros-linux-gnu",
- "-D_FORTIFY_SOURCE=2",
"-fno-reorder-blocks-and-partition",
"-Wno-unused-local-typedefs",
"-Wno-maybe-uninitialized",
"-fcommon",
"-fstack-protector-strong",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"-fsanitize=kernel-address",
@@ -114,36 +102,36 @@
"env_updates": [
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
- },
- {
+ ],
"wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-gcc",
"args": [
"-fsanitize=kernel-address",
- "-D_FORTIFY_SOURCE=2",
+ "-D_FORTIFY_SOURCE=1",
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-gcc"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "/usr/bin/ccache",
"args": [
"./x86_64-cros-linux-gnu-gcc.real",
"--sysroot=/usr/x86_64-cros-linux-gnu",
- "-D_FORTIFY_SOURCE=2",
"-fno-reorder-blocks-and-partition",
"-Wno-unused-local-typedefs",
"-Wno-maybe-uninitialized",
"-fcommon",
"-fstack-protector-strong",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"-fsanitize=kernel-address",
@@ -154,35 +142,36 @@
"env_updates": [
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
- },
- {
+ ],
"wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-gcc",
"args": [
- "-fsanitize=fuzzer",
+ "-fsanitize=kernel-address",
+ "-D_FORTIFY_SOURCE=2",
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-gcc"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "/usr/bin/ccache",
"args": [
"./x86_64-cros-linux-gnu-gcc.real",
"--sysroot=/usr/x86_64-cros-linux-gnu",
- "-D_FORTIFY_SOURCE=2",
"-fno-reorder-blocks-and-partition",
"-Wno-unused-local-typedefs",
"-Wno-maybe-uninitialized",
"-fcommon",
"-fstack-protector-strong",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"-fsanitize=fuzzer",
@@ -193,36 +182,35 @@
"env_updates": [
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
- },
- {
+ ],
"wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-gcc",
"args": [
- "-fsanitize=address",
- "-fprofile-instr-generate",
+ "-fsanitize=fuzzer",
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-gcc"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "/usr/bin/ccache",
"args": [
"./x86_64-cros-linux-gnu-gcc.real",
"--sysroot=/usr/x86_64-cros-linux-gnu",
- "-D_FORTIFY_SOURCE=2",
"-fno-reorder-blocks-and-partition",
"-Wno-unused-local-typedefs",
"-Wno-maybe-uninitialized",
"-fcommon",
"-fstack-protector-strong",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"-fsanitize=address",
@@ -234,35 +222,36 @@
"env_updates": [
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
- },
- {
+ ],
"wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-gcc",
"args": [
"-fsanitize=address",
+ "-fprofile-instr-generate",
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-gcc"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "/usr/bin/ccache",
"args": [
"./x86_64-cros-linux-gnu-gcc.real",
"--sysroot=/usr/x86_64-cros-linux-gnu",
- "-D_FORTIFY_SOURCE=2",
"-fno-reorder-blocks-and-partition",
"-Wno-unused-local-typedefs",
"-Wno-maybe-uninitialized",
"-fcommon",
"-fstack-protector-strong",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"-fsanitize=address",
@@ -273,35 +262,35 @@
"env_updates": [
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
- },
- {
+ ],
"wd": "/tmp/stable",
"wrapper": {
"cmd": {
- "path": "./x86_64-cros-linux-gnu-gcc",
"args": [
- "-fprofile-instr-generate",
+ "-fsanitize=address",
"main.cc"
- ]
+ ],
+ "path": "./x86_64-cros-linux-gnu-gcc"
}
- },
+ }
+ },
+ {
"cmds": [
{
"cmd": {
- "path": "/usr/bin/ccache",
"args": [
"./x86_64-cros-linux-gnu-gcc.real",
"--sysroot=/usr/x86_64-cros-linux-gnu",
- "-D_FORTIFY_SOURCE=2",
"-fno-reorder-blocks-and-partition",
"-Wno-unused-local-typedefs",
"-Wno-maybe-uninitialized",
"-fcommon",
"-fstack-protector-strong",
+ "-D_FORTIFY_SOURCE=3",
"-fno-omit-frame-pointer",
"-static-libgcc",
"-fprofile-instr-generate",
@@ -312,9 +301,20 @@
"env_updates": [
"CCACHE_DIR=/var/cache/distfiles/ccache",
"CCACHE_UMASK=002"
- ]
+ ],
+ "path": "/usr/bin/ccache"
}
}
- ]
+ ],
+ "wd": "/tmp/stable",
+ "wrapper": {
+ "cmd": {
+ "args": [
+ "-fprofile-instr-generate",
+ "main.cc"
+ ],
+ "path": "./x86_64-cros-linux-gnu-gcc"
+ }
+ }
}
]