From: Liubov Dmitrieva Date: Fri, 23 Nov 2012 14:50:27 +0000 (+0400) Subject: If Intel MPX enabled: always compile with -fno-check-pointers file elf/dl-init.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc433f63434c62a737f553a59eee5dfd359ef740;p=thirdparty%2Fglibc.git 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. --- 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