aboutsummaryrefslogtreecommitdiffstats
path: root/sys/targets/targets.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-03-11 12:07:28 +0100
committerAleksandr Nogikh <nogikh@google.com>2024-03-12 11:14:34 +0000
commit47e31070c5773a0916c6bb7fd0602594d9c1a53a (patch)
tree0afe6ddd9143def569e1a175f9b72609e5589fcd /sys/targets/targets.go
parent2fbe6f64f08e20689fd9c580687517dc73c6c1cb (diff)
pkg/runtest: enable coverage for some TestOS targets
Diffstat (limited to 'sys/targets/targets.go')
-rw-r--r--sys/targets/targets.go18
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_",