From cc433f63434c62a737f553a59eee5dfd359ef740 Mon Sep 17 00:00:00 2001 From: Liubov Dmitrieva Date: Fri, 23 Nov 2012 18:50:27 +0400 Subject: [PATCH] If Intel MPX enabled: always compile with -fno-check-pointers file elf/dl-init.c because this file contains the code excecuting before runtime library initialization happens. --- elf/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elf/Makefile b/elf/Makefile index 3b58649de5b..2bdf045abd0 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -50,6 +50,10 @@ CFLAGS-dl-runtime.c = -fexceptions -fasynchronous-unwind-tables CFLAGS-dl-lookup.c = -fexceptions -fasynchronous-unwind-tables CFLAGS-dl-iterate-phdr.c = $(uses-callbacks) +ifeq ($(enable-mpx), yes) +CFLAGS-dl-init.c = -fno-check-pointers +endif + ifeq ($(unwind-find-fde),yes) routines += unwind-dw2-fde-glibc shared-only-routines += unwind-dw2-fde-glibc -- 2.47.2