From 470506ee5b58a4e31839213221128c34d2648463 Mon Sep 17 00:00:00 2001 From: visa Date: Fri, 17 Nov 2023 15:46:58 +0000 Subject: [PATCH] Use -mxgot to avoid GOT overflow during build on mips64. Tested by deraadt@ --- gnu/usr.bin/clang/Makefile.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc index f3f959cb00a..f5270652135 100644 --- a/gnu/usr.bin/clang/Makefile.inc +++ b/gnu/usr.bin/clang/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.27 2023/11/11 18:35:35 robert Exp $ +# $OpenBSD: Makefile.inc,v 1.28 2023/11/17 15:46:58 visa Exp $ CLANG_SRCS?= ${.CURDIR}/../../../llvm/clang LLDB_SRCS?= ${.CURDIR}/../../../llvm/lldb @@ -41,6 +41,7 @@ CXXFLAGS+= -mno-retpoline # Omit frame pointer to improve performance. .if ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" CXXFLAGS+= -fomit-frame-pointer +CXXFLAGS+= -mxgot .endif CPPFLAGS+= -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS \ -- 2.20.1