diff options
author | 1995-12-25 22:35:15 +0000 | |
---|---|---|
committer | 1995-12-25 22:35:15 +0000 | |
commit | 5cf76a7414c54510e8eb8e84a31221466a056482 (patch) | |
tree | 17a1c2b277115822acf03eb2cef106d457be03b6 | |
parent | repair an obvious cpp syntax error (diff) | |
download | wireguard-openbsd-5cf76a7414c54510e8eb8e84a31221466a056482.tar.xz wireguard-openbsd-5cf76a7414c54510e8eb8e84a31221466a056482.zip |
As ld.so does relocation behind the compiler's back don't cache
function addresses in registers.
-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 |