diff options
author | Dan Willemsen <dwillemsen@google.com> | 2015-12-09 13:05:28 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2015-12-11 21:21:28 +0000 |
commit | c7e45974615735f2337ddfcd1f756062443d254d (patch) | |
tree | 71e3e505dd0492cffcc240894cbf664d462ef41b | |
parent | 34cc69e4bf36cb65bb181b42ccb0f8c792a32cfb (diff) | |
download | build_soong-c7e45974615735f2337ddfcd1f756062443d254d.tar.gz build_soong-c7e45974615735f2337ddfcd1f756062443d254d.tar.bz2 build_soong-c7e45974615735f2337ddfcd1f756062443d254d.zip |
Enforce linker version-scripts are valid
See build/ commit da9c00da5f7b
Change-Id: I65878931ab61124ae75e2c738cc733adfb107afc
-rw-r--r-- | cc/arm64_device.go | 1 | ||||
-rw-r--r-- | cc/arm_device.go | 1 | ||||
-rw-r--r-- | cc/mips64_device.go | 1 | ||||
-rw-r--r-- | cc/mips_device.go | 1 | ||||
-rw-r--r-- | cc/x86_64_device.go | 1 | ||||
-rw-r--r-- | cc/x86_device.go | 1 | ||||
-rw-r--r-- | cc/x86_linux_host.go | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/cc/arm64_device.go b/cc/arm64_device.go index 8d773ed8..157b273e 100644 --- a/cc/arm64_device.go +++ b/cc/arm64_device.go @@ -61,6 +61,7 @@ var ( "-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 5c91a828..d44787d5 100644 --- a/cc/arm_device.go +++ b/cc/arm_device.go @@ -66,6 +66,7 @@ var ( "-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 44ca4f85..a0e39a6c 100644 --- a/cc/mips64_device.go +++ b/cc/mips64_device.go @@ -66,6 +66,7 @@ var ( "-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 ba6b81aa..f668f225 100644 --- a/cc/mips_device.go +++ b/cc/mips_device.go @@ -61,6 +61,7 @@ var ( "-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 b4f96b96..9c79d87b 100644 --- a/cc/x86_64_device.go +++ b/cc/x86_64_device.go @@ -62,6 +62,7 @@ var ( "-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 a44b2933..e5a8f66e 100644 --- a/cc/x86_device.go +++ b/cc/x86_device.go @@ -57,6 +57,7 @@ var ( "-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 a3c50d18..3bf9671a 100644 --- a/cc/x86_linux_host.go +++ b/cc/x86_linux_host.go @@ -37,6 +37,7 @@ var ( "-Wl,-z,noexecstack", "-Wl,-z,relro", "-Wl,-z,now", + "-Wl,--no-undefined-version", } // Extended cflags |