Revert r353140: Re-add ALLOW_MIPS_SHARED_TEXTREL, sprinkle it around

arichardson has an actual fix for the same issue that this was working
around; given that we don't build with llvm today, go ahead and revert the
workaround in advance.
This commit is contained in:
Kyle Evans 2020-01-14 17:50:13 +00:00
parent 8683408cec
commit 4b50c45172
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356735
6 changed files with 0 additions and 22 deletions

View file

@ -5,8 +5,6 @@ SHLIB= h_csu
SHLIB_NAME= libh_csu.so
SHLIB_MAJOR= 1
ALLOW_MIPS_SHARED_TEXTREL=
WITHOUT_STATIC=
WITHOUT_PROFILE=
WITHOUT_PIC=

View file

@ -11,8 +11,6 @@ CXXINCLUDEDIR= ${INCLUDEDIR}/c++/v${SHLIB_MAJOR}
STATIC_CXXFLAGS+= -mlong-calls
.endif
ALLOW_MIPS_SHARED_TEXTREL=
.PATH: ${SRCDIR}
LIB= c++

View file

@ -5,7 +5,6 @@ SRCDIR= ${SRCTOP}/contrib/libcxxrt
SHLIB_MAJOR= 1
SHLIBDIR?= /lib
ALLOW_MIPS_SHARED_TEXTREL=
.PATH: ${SRCDIR}

View file

@ -6,8 +6,6 @@ UNWINDSRCDIR= ${SRCTOP}/contrib/llvm-project/libunwind/src
STATIC_CFLAGS+=${PICFLAG} -fvisibility=hidden -DVISIBILITY_HIDDEN
ALLOW_MIPS_SHARED_TEXTREL=
.PATH: ${COMPILERRTDIR}/lib/builtins
.PATH: ${UNWINDSRCDIR}
SRCS_EXC+= gcc_personality_v0.c

View file

@ -5,8 +5,6 @@ LIB= pmc
SRCS= libpmc.c pmclog.c libpmc_pmu_util.c libpmc_json.cc
INCS= pmc.h pmclog.h pmcformat.h
ALLOW_MIPS_SHARED_TEXTREL=
.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "amd64" || \
${MACHINE_ARCH} == "i386"

View file

@ -291,10 +291,6 @@ CLEANFILES+= ${SOBJS}
.if defined(SHLIB_NAME)
_LIBS+= ${SHLIB_NAME}
.if ${CFLAGS:M-fexceptions} || defined(SHLIB_CXX) || defined(LIB_CXX)
ALLOW_MIPS_SHARED_TEXTREL=
.endif
SOLINKOPTS+= -shared -Wl,-x
.if defined(LD_FATAL_WARNINGS) && ${LD_FATAL_WARNINGS} == "no"
SOLINKOPTS+= -Wl,--no-fatal-warnings
@ -303,15 +299,6 @@ SOLINKOPTS+= -Wl,--fatal-warnings
.endif
SOLINKOPTS+= -Wl,--warn-shared-textrel
.if defined(ALLOW_MIPS_SHARED_TEXTREL) && ${MACHINE_CPUARCH:Mmips}
# Check if we should be defining ALLOW_SHARED_TEXTREL... basically, C++
# or -fexceptions in CFLAGS on MIPS. This works around clang/lld attempting
# to generate text relocations in read-only .eh_frame. A future version of
# clang/lld should instead transform them into relative references at link
# time, and then we can stop doing this.
SOLINKOPTS+= -Wl,-z,notext
.endif
.if target(beforelinking)
beforelinking: ${SOBJS}
${SHLIB_NAME_FULL}: beforelinking