diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-03-11 12:07:28 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-03-12 11:14:34 +0000 |
| commit | 47e31070c5773a0916c6bb7fd0602594d9c1a53a (patch) | |
| tree | 0afe6ddd9143def569e1a175f9b72609e5589fcd /sys/targets | |
| parent | 2fbe6f64f08e20689fd9c580687517dc73c6c1cb (diff) | |
pkg/runtest: enable coverage for some TestOS targets
Diffstat (limited to 'sys/targets')
| -rw-r--r-- | sys/targets/targets.go | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go index 4c840119a..40fc40991 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -175,8 +175,13 @@ var List = map[string]map[string]*Target{ TestArch64: { PtrSize: 8, PageSize: 4 << 10, - // Compile with -no-pie due to issues with ASan + ASLR on ppc64le. - CFlags: []string{"-fsanitize=address", "-no-pie"}, + CFlags: []string{ + "-fsanitize=address", + // Compile with -no-pie due to issues with ASan + ASLR on ppc64le. + "-no-pie", + // Otherwise it conflicts with -fsanitize-coverage=trace-pc. + "-fno-exceptions", + }, osCommon: osCommon{ SyscallNumbers: true, SyscallPrefix: "SYS_", @@ -187,8 +192,13 @@ var List = map[string]map[string]*Target{ TestArch64Fork: { PtrSize: 8, PageSize: 8 << 10, - // Compile with -no-pie due to issues with ASan + ASLR on ppc64le. - CFlags: []string{"-fsanitize=address", "-no-pie"}, + CFlags: []string{ + "-fsanitize=address", + // Compile with -no-pie due to issues with ASan + ASLR on ppc64le. + "-no-pie", + // Otherwise it conflicts with -fsanitize-coverage=trace-pc. + "-fno-exceptions", + }, osCommon: osCommon{ SyscallNumbers: true, SyscallPrefix: "SYS_", |
