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:
Dan Willemsen 2016-01-12 16:22:40 -08:00
parent e0378dd4df
commit 7a0f848998
9 changed files with 10 additions and 5 deletions

View file

@ -25,7 +25,7 @@ var (
"-fno-exceptions", // from build/core/combo/select.mk
"-Wno-multichar", // from build/core/combo/select.mk
"-fno-strict-aliasing",
"-fstack-protector",
"-fstack-protector-strong",
"-ffunction-sections",
"-fdata-sections",
"-funwind-tables",
@ -61,6 +61,8 @@ var (
"-Wl,-maarch64linux",
"-Wl,--hash-style=gnu",
"-Wl,--fix-cortex-a53-843419",
"-fuse-ld=gold",
"-Wl,--icf=safe",
"-Wl,--no-undefined-version",
// Disable transitive dependency library symbol resolving.

View file

@ -33,7 +33,7 @@ var (
"-ffunction-sections",
"-fdata-sections",
"-funwind-tables",
"-fstack-protector",
"-fstack-protector-strong",
"-Wa,--noexecstack",
"-Werror=format-security",
"-D_FORTIFY_SOURCE=2",

View file

@ -41,7 +41,6 @@ var clangUnknownCflags = sorted([]string{
// arm + arm64
"-fno-align-jumps",
"-Wa,--noexecstack",
// arm
"-mthumb-interwork",

View file

@ -34,6 +34,7 @@ var (
"-ffunction-sections",
"-fdata-sections",
"-funwind-tables",
"-fstack-protector-strong",
"-Wa,--noexecstack",
"-Werror=format-security",
"-D_FORTIFY_SOURCE=2",

View file

@ -34,6 +34,7 @@ var (
"-ffunction-sections",
"-fdata-sections",
"-funwind-tables",
"-fstack-protector-strong",
"-Wa,--noexecstack",
"-Werror=format-security",
"-D_FORTIFY_SOURCE=2",

View file

@ -36,7 +36,7 @@ var (
"-fstrict-aliasing",
"-funswitch-loops",
"-funwind-tables",
"-fstack-protector",
"-fstack-protector-strong",
"-no-canonical-prefixes",
"-fno-canonical-system-headers",

View file

@ -65,6 +65,7 @@ var (
darwinClangCflags = append([]string{
"-integrated-as",
"-fstack-protector-strong",
}, clangFilterUnknownCflags(darwinCflags)...)
darwinClangLdflags = clangFilterUnknownCflags(darwinLdflags)

View file

@ -36,7 +36,7 @@ var (
"-fstrict-aliasing",
"-funswitch-loops",
"-funwind-tables",
"-fstack-protector",
"-fstack-protector-strong",
"-no-canonical-prefixes",
"-fno-canonical-system-headers",

View file

@ -69,6 +69,7 @@ var (
linuxClangCflags = append([]string{
"--gcc-toolchain=${linuxGccRoot}",
"--sysroot=${linuxGccRoot}/sysroot",
"-fstack-protector-strong",
}, clangFilterUnknownCflags(linuxCflags)...)
linuxClangLdflags = append([]string{