Enforce linker version-scripts are valid
See build/ commit da9c00da5f7b
Change-Id: I65878931ab61124ae75e2c738cc733adfb107afc
diff --git a/cc/arm64_device.go b/cc/arm64_device.go
index 8d773ed..157b273 100644
--- a/cc/arm64_device.go
+++ b/cc/arm64_device.go
@@ -61,6 +61,7 @@
"-Wl,-maarch64linux",
"-Wl,--hash-style=gnu",
"-Wl,--fix-cortex-a53-843419",
+ "-Wl,--no-undefined-version",
// Disable transitive dependency library symbol resolving.
"-Wl,--allow-shlib-undefined",
diff --git a/cc/arm_device.go b/cc/arm_device.go
index 5c91a82..d44787d 100644
--- a/cc/arm_device.go
+++ b/cc/arm_device.go
@@ -66,6 +66,7 @@
"-Wl,--fatal-warnings",
"-Wl,--icf=safe",
"-Wl,--hash-style=gnu",
+ "-Wl,--no-undefined-version",
}
armArmCflags = []string{
diff --git a/cc/mips64_device.go b/cc/mips64_device.go
index 44ca4f8..a0e39a6 100644
--- a/cc/mips64_device.go
+++ b/cc/mips64_device.go
@@ -66,6 +66,7 @@
"-Wl,--warn-shared-textrel",
"-Wl,--fatal-warnings",
"-Wl,--allow-shlib-undefined",
+ "-Wl,--no-undefined-version",
}
mips64ArchVariantCflags = map[string][]string{
diff --git a/cc/mips_device.go b/cc/mips_device.go
index ba6b81a..f668f22 100644
--- a/cc/mips_device.go
+++ b/cc/mips_device.go
@@ -61,6 +61,7 @@
"-Wl,--warn-shared-textrel",
"-Wl,--fatal-warnings",
"-Wl,--allow-shlib-undefined",
+ "-Wl,--no-undefined-version",
}
mipsToolchainLdflags = []string{
diff --git a/cc/x86_64_device.go b/cc/x86_64_device.go
index b4f96b9..9c79d87 100644
--- a/cc/x86_64_device.go
+++ b/cc/x86_64_device.go
@@ -62,6 +62,7 @@
"-Wl,--fatal-warnings",
"-Wl,--gc-sections",
"-Wl,--hash-style=gnu",
+ "-Wl,--no-undefined-version",
}
x86_64ArchVariantCflags = map[string][]string{
diff --git a/cc/x86_device.go b/cc/x86_device.go
index a44b293..e5a8f66 100644
--- a/cc/x86_device.go
+++ b/cc/x86_device.go
@@ -57,6 +57,7 @@
"-Wl,--fatal-warnings",
"-Wl,--gc-sections",
"-Wl,--hash-style=gnu",
+ "-Wl,--no-undefined-version",
}
x86ArchVariantCflags = map[string][]string{
diff --git a/cc/x86_linux_host.go b/cc/x86_linux_host.go
index a3c50d1..3bf9671 100644
--- a/cc/x86_linux_host.go
+++ b/cc/x86_linux_host.go
@@ -37,6 +37,7 @@
"-Wl,-z,noexecstack",
"-Wl,-z,relro",
"-Wl,-z,now",
+ "-Wl,--no-undefined-version",
}
// Extended cflags