diff options
Diffstat (limited to 'gnu/usr.bin/ld/rtld/Makefile')
-rw-r--r-- | gnu/usr.bin/ld/rtld/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/ld/rtld/Makefile b/gnu/usr.bin/ld/rtld/Makefile index 538281d964e..e4b295f7293 100644 --- a/gnu/usr.bin/ld/rtld/Makefile +++ b/gnu/usr.bin/ld/rtld/Makefile @@ -6,7 +6,8 @@ SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c vfprintf.c MAN= rtld.1 LDDIR?= $(.CURDIR)/.. #PICFLAG=-pic -PICFLAG=-fpic +# As there is relocation going on behind GCC's back, don't cache function addresses. +PICFLAG=-fpic -fno-function-cse CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) $(PICFLAG) -DRTLD -DLIBC_SCCS LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic ASFLAGS+=-k |