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

Commit 49dcf795 authored by Prashanth Swaminathan's avatar Prashanth Swaminathan Committed by Gerrit Code Review
Browse files

Revert "Enable CFI for riscv64"

This reverts commit 73fe13c9.

Reason for revert: b/293884796, crash on boot of riscv64 aosp phone.

Change-Id: Ie90e0e99ddaa7bb5d496e2b1d0ab0302702cb2bc
parent 73fe13c9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -675,6 +675,12 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
		s.Integer_overflow = nil
	}

	// TODO(b/254713216): CFI doesn't work for riscv64 yet because LTO doesn't work.
	if ctx.Arch().ArchType == android.Riscv64 {
		s.Cfi = nil
		s.Diag.Cfi = nil
	}

	// Disable CFI for musl
	if ctx.toolchain().Musl() {
		s.Cfi = nil