Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3eca04b3 authored by Ivan Lozano's avatar Ivan Lozano Committed by Gerrit Code Review
Browse files

Merge "rust: Add BTI/PAC for supported targets." into main

parents 4b3001a5 2797e876
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -27,10 +27,17 @@ var (

	Arm64ArchVariantRustFlags = map[string][]string{
		"armv8-a": []string{},
		"armv8-a-branchprot": []string{},
		"armv8-a-branchprot": []string{
			// branch-protection=bti,pac-ret is equivalent to Clang's mbranch-protection=standard
			"-Z branch-protection=bti,pac-ret",
		},
		"armv8-2a":         []string{},
		"armv8-2a-dotprod": []string{},
		"armv9-a":            []string{},
		"armv9-a": []string{
			// branch-protection=bti,pac-ret is equivalent to Clang's mbranch-protection=standard
			"-Z branch-protection=bti,pac-ret",
			"-Z stack-protector=none",
		},
	}
)