Disable PIE

It needs some work in glibc "to be looked"

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2018-06-21 15:28:46 -07:00
parent 677de6e525
commit fb8ad42aee
2 changed files with 9 additions and 3 deletions

View File

@@ -10,3 +10,12 @@ BBFILE_PATTERN_riscv-layer = "^${LAYERDIR}/"
BBFILE_PRIORITY_riscv-layer = "6"
LAYERSERIES_COMPAT_riscv-layer = "sumo"
# risc-v does not get along with pie for reasons in so far not looked into
SECURITY_CFLAGS_riscv64 = "-fstack-protector-strong ${lcl_maybe_fortify} ${SECURITY_NOPIE_CFLAGS}"
SECURITY_CFLAGS_pn-libgcc_riscv64 = ""
GCCPIE_riscv64 = ""
GLIBCPIE_riscv64 = ""
SECURITY_CFLAGS_pn-riscv-pk = ""
SECURITY_LDFLAGS_pn-riscv-pk = ""

View File

@@ -48,7 +48,4 @@ do_deploy_append_freedom-u540() {
}
addtask deploy before do_build after do_install
SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}"
SECURITY_LDFLAGS = ""
COMPATIBLE_HOST = "(riscv64|riscv32).*-linux"