diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-07-01 15:58:39 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-07-01 15:58:39 +0000 |
commit | bfb389930c282b20ada970197741f276fdd7d797 (patch) | |
tree | 6d76f7261eb962a9707700bff31ef0e17839b8a4 /libexec/ld.so/powerpc | |
parent | c37a49761b3b6bd401907ac57a04097d850dd514 (diff) |
Compile with -fno-jump-tables to avoid relocations in _dl_boot_bind() when
building with clang.
ok deraadt@, visa@
Diffstat (limited to 'libexec/ld.so/powerpc')
-rw-r--r-- | libexec/ld.so/powerpc/Makefile.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/ld.so/powerpc/Makefile.inc b/libexec/ld.so/powerpc/Makefile.inc index f979b8f7405..94c077e0322 100644 --- a/libexec/ld.so/powerpc/Makefile.inc +++ b/libexec/ld.so/powerpc/Makefile.inc @@ -1,4 +1,6 @@ -# $OpenBSD: Makefile.inc,v 1.3 2019/05/10 13:29:21 guenther Exp $ +# $OpenBSD: Makefile.inc,v 1.4 2019/07/01 15:58:38 kettenis Exp $ -CFLAGS += -fpic -msoft-float +# no jump tables in _dl_boot_bind() +CFLAGS += -fno-jump-tables +CFLAGS += -fPIC -msoft-float LD_SCRIPT = ${.CURDIR}/${MACHINE_CPU}/ld.script |