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

Commit e28663fb authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Restore lld parts of "Remove cortex-a53 linker workaround for new cpus."

https://android-review.googlesource.com/c/platform/build/soong/+/689585
added, but was skipped going into pi-dev-plus-aosp, as the pi-dev
version (which did not have these lld bits) was already merged there.
When pi-dev-plus-aosp was pushed to aosp-master, this got lost.

Merged-In is a random git_master change, since this needs to go
into pi-dev-plus-aosp too, but no further.

Bug: 78133793
Test: git diff aosp-master..master -- cc/config/arm64_device.go
Change-Id: Iea69a2c040d11249e43a76a78859944274ce6a92
Merged-In: I7799feac522a1097ec4271bd7868cd6bfe147ad9
parent ae6ae1d8
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -177,6 +177,7 @@ type toolchainArm64 struct {
	toolchain64Bit

	ldflags              string
	lldflags             string
	toolchainCflags      string
	toolchainClangCflags string
}
@@ -234,7 +235,7 @@ func (t *toolchainArm64) ClangLdflags() string {
}

func (t *toolchainArm64) ClangLldflags() string {
	return "${config.Arm64Lldflags}"
	return t.lldflags
}

func (t *toolchainArm64) ToolchainClangCflags() string {
@@ -272,6 +273,10 @@ func arm64ToolchainFactory(arch android.Arch) Toolchain {
			"${config.Arm64Ldflags}",
			extraLdflags,
		}, " "),
		lldflags: strings.Join([]string{
			"${config.Arm64Lldflags}",
			extraLdflags,
		}, " "),
		toolchainCflags:      variantOrDefault(arm64CpuVariantCflagsVar, arch.CpuVariant),
		toolchainClangCflags: strings.Join(toolchainClangCflags, " "),
	}