diff options
-rw-r--r-- | loader/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/loader/Makefile b/loader/Makefile index 2b3d31015d..bb21401b60 100644 --- a/loader/Makefile +++ b/loader/Makefile @@ -14,8 +14,10 @@ resource.o registry.o elfdll.o afl.o vfl.o # the bad code accesses parameters via %ebp without setting up a # propper %ebp first! # -fno-omit-frame-pointer works around this gcc-3.0 bug. gcc-2.95.2 is OK. +# Note: -D_FILE_OFFSET_BITS=32 is required to disable using mmap64(), +# as it's broken in glibc 2.1.2 (bad header) and 2.1.3 (bad code) WARN_FLAGS = -Wmissing-prototypes -Wimplicit-function-declaration -CFLAGS=-I. -I.. $(OPTFLAGS) $(EXTRA_INC) $(WARN_FLAGS) -fno-omit-frame-pointer +CFLAGS=-I. -I.. $(OPTFLAGS) -D_FILE_OFFSET_BITS=32 $(EXTRA_INC) $(WARN_FLAGS) -fno-omit-frame-pointer #CFLAGS=-I. -I.. -O $(WARN_FLAGS) -g #-fno-omit-frame-pointer all: libloader.a |