Commit 3da152a5 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrei Vagin

compel: rm -fno-jump-tables from CFLAGS

Three reasons:
1. this flag doesn't work for ppc64 (see commit dc7b08b);
2. clang is not aware of this flag;
3. all seems to work just fine without it.

Cc: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent d2a1aa1b
......@@ -19,9 +19,8 @@
"-Wstrict-prototypes " \
"-fno-stack-protector -nostdlib -fomit-frame-pointer "
#define COMPEL_CFLAGS_PIE CFLAGS_DEFAULT_SET "-fpie -fno-jump-tables"
#define COMPEL_CFLAGS_PIE_JPT CFLAGS_DEFAULT_SET "-fpie"
#define COMPEL_CFLAGS_NOPIC CFLAGS_DEFAULT_SET "-fno-pic -fno-jump-tables"
#define COMPEL_CFLAGS_PIE CFLAGS_DEFAULT_SET "-fpie"
#define COMPEL_CFLAGS_NOPIC CFLAGS_DEFAULT_SET "-fno-pic"
#define COMPEL_LDFLAGS_DEFAULT "-r -z noexecstack"
......@@ -111,7 +110,7 @@ int main(int argc, char *argv[])
.cflags = COMPEL_CFLAGS_PIE,
}, {
.arch = "ppc64",
.cflags = COMPEL_CFLAGS_PIE_JPT,
.cflags = COMPEL_CFLAGS_PIE,
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment