Align flags with make
This pulls a number of cflag changes from make since our last sync. Change-Id: I8c77fc215ed7677b8ac15a6d39143b519068dd55
This commit is contained in:
parent
e0378dd4df
commit
7a0f848998
9 changed files with 10 additions and 5 deletions
|
@ -25,7 +25,7 @@ var (
|
||||||
"-fno-exceptions", // from build/core/combo/select.mk
|
"-fno-exceptions", // from build/core/combo/select.mk
|
||||||
"-Wno-multichar", // from build/core/combo/select.mk
|
"-Wno-multichar", // from build/core/combo/select.mk
|
||||||
"-fno-strict-aliasing",
|
"-fno-strict-aliasing",
|
||||||
"-fstack-protector",
|
"-fstack-protector-strong",
|
||||||
"-ffunction-sections",
|
"-ffunction-sections",
|
||||||
"-fdata-sections",
|
"-fdata-sections",
|
||||||
"-funwind-tables",
|
"-funwind-tables",
|
||||||
|
@ -61,6 +61,8 @@ var (
|
||||||
"-Wl,-maarch64linux",
|
"-Wl,-maarch64linux",
|
||||||
"-Wl,--hash-style=gnu",
|
"-Wl,--hash-style=gnu",
|
||||||
"-Wl,--fix-cortex-a53-843419",
|
"-Wl,--fix-cortex-a53-843419",
|
||||||
|
"-fuse-ld=gold",
|
||||||
|
"-Wl,--icf=safe",
|
||||||
"-Wl,--no-undefined-version",
|
"-Wl,--no-undefined-version",
|
||||||
|
|
||||||
// Disable transitive dependency library symbol resolving.
|
// Disable transitive dependency library symbol resolving.
|
||||||
|
|
|
@ -33,7 +33,7 @@ var (
|
||||||
"-ffunction-sections",
|
"-ffunction-sections",
|
||||||
"-fdata-sections",
|
"-fdata-sections",
|
||||||
"-funwind-tables",
|
"-funwind-tables",
|
||||||
"-fstack-protector",
|
"-fstack-protector-strong",
|
||||||
"-Wa,--noexecstack",
|
"-Wa,--noexecstack",
|
||||||
"-Werror=format-security",
|
"-Werror=format-security",
|
||||||
"-D_FORTIFY_SOURCE=2",
|
"-D_FORTIFY_SOURCE=2",
|
||||||
|
|
|
@ -41,7 +41,6 @@ var clangUnknownCflags = sorted([]string{
|
||||||
|
|
||||||
// arm + arm64
|
// arm + arm64
|
||||||
"-fno-align-jumps",
|
"-fno-align-jumps",
|
||||||
"-Wa,--noexecstack",
|
|
||||||
|
|
||||||
// arm
|
// arm
|
||||||
"-mthumb-interwork",
|
"-mthumb-interwork",
|
||||||
|
|
|
@ -34,6 +34,7 @@ var (
|
||||||
"-ffunction-sections",
|
"-ffunction-sections",
|
||||||
"-fdata-sections",
|
"-fdata-sections",
|
||||||
"-funwind-tables",
|
"-funwind-tables",
|
||||||
|
"-fstack-protector-strong",
|
||||||
"-Wa,--noexecstack",
|
"-Wa,--noexecstack",
|
||||||
"-Werror=format-security",
|
"-Werror=format-security",
|
||||||
"-D_FORTIFY_SOURCE=2",
|
"-D_FORTIFY_SOURCE=2",
|
||||||
|
|
|
@ -34,6 +34,7 @@ var (
|
||||||
"-ffunction-sections",
|
"-ffunction-sections",
|
||||||
"-fdata-sections",
|
"-fdata-sections",
|
||||||
"-funwind-tables",
|
"-funwind-tables",
|
||||||
|
"-fstack-protector-strong",
|
||||||
"-Wa,--noexecstack",
|
"-Wa,--noexecstack",
|
||||||
"-Werror=format-security",
|
"-Werror=format-security",
|
||||||
"-D_FORTIFY_SOURCE=2",
|
"-D_FORTIFY_SOURCE=2",
|
||||||
|
|
|
@ -36,7 +36,7 @@ var (
|
||||||
"-fstrict-aliasing",
|
"-fstrict-aliasing",
|
||||||
"-funswitch-loops",
|
"-funswitch-loops",
|
||||||
"-funwind-tables",
|
"-funwind-tables",
|
||||||
"-fstack-protector",
|
"-fstack-protector-strong",
|
||||||
"-no-canonical-prefixes",
|
"-no-canonical-prefixes",
|
||||||
"-fno-canonical-system-headers",
|
"-fno-canonical-system-headers",
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ var (
|
||||||
|
|
||||||
darwinClangCflags = append([]string{
|
darwinClangCflags = append([]string{
|
||||||
"-integrated-as",
|
"-integrated-as",
|
||||||
|
"-fstack-protector-strong",
|
||||||
}, clangFilterUnknownCflags(darwinCflags)...)
|
}, clangFilterUnknownCflags(darwinCflags)...)
|
||||||
|
|
||||||
darwinClangLdflags = clangFilterUnknownCflags(darwinLdflags)
|
darwinClangLdflags = clangFilterUnknownCflags(darwinLdflags)
|
||||||
|
|
|
@ -36,7 +36,7 @@ var (
|
||||||
"-fstrict-aliasing",
|
"-fstrict-aliasing",
|
||||||
"-funswitch-loops",
|
"-funswitch-loops",
|
||||||
"-funwind-tables",
|
"-funwind-tables",
|
||||||
"-fstack-protector",
|
"-fstack-protector-strong",
|
||||||
"-no-canonical-prefixes",
|
"-no-canonical-prefixes",
|
||||||
"-fno-canonical-system-headers",
|
"-fno-canonical-system-headers",
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,7 @@ var (
|
||||||
linuxClangCflags = append([]string{
|
linuxClangCflags = append([]string{
|
||||||
"--gcc-toolchain=${linuxGccRoot}",
|
"--gcc-toolchain=${linuxGccRoot}",
|
||||||
"--sysroot=${linuxGccRoot}/sysroot",
|
"--sysroot=${linuxGccRoot}/sysroot",
|
||||||
|
"-fstack-protector-strong",
|
||||||
}, clangFilterUnknownCflags(linuxCflags)...)
|
}, clangFilterUnknownCflags(linuxCflags)...)
|
||||||
|
|
||||||
linuxClangLdflags = append([]string{
|
linuxClangLdflags = append([]string{
|
||||||
|
|
Loading…
Reference in a new issue