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

Commit f79b210d authored by Florian Mayer's avatar Florian Mayer
Browse files

[memtag-stack] work around stack limit in lld

Change-Id: Iee4a5ba9f9789f684d78e232078e36898e0c16d9
parent 5aa5dc41
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -718,6 +718,9 @@ func (sanitize *sanitize) flags(ctx ModuleContext, flags Flags) Flags {
		flags.Local.CFlags = append(flags.Local.CFlags, "-Wno-error=frame-larger-than")
		flags.Local.AsFlags = append(flags.Local.AsFlags, memtagStackCommonFlags...)
		flags.Local.LdFlags = append(flags.Local.LdFlags, memtagStackCommonFlags...)
		// This works around LLD complaining about the stack frame size.
		// TODO(fmayer): remove once https://reviews.llvm.org/D127917 is in Android toolchain.
		flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,--no-fatal-warnings")
	}

	if (Bool(sanitize.Properties.Sanitize.Memtag_heap) || Bool(sanitize.Properties.Sanitize.Memtag_stack)) && ctx.binary() {