From 0e450664ad9fef5b9267aefd7bf08ee9d82df2cb Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 3 Dec 2018 15:59:46 +0000 Subject: [PATCH] disable BIND_NOW in libc, libthr, and rtld An issue remains with BIND_NOW and processes using threads. For now, restore libc's BIND_NOW disable, and also disable BIND_NOW in rtld and libthr. A patch is in review (D18400) that likely fixes this issue, but just disable BIND_NOW pending further testing after it is committed. PR: 233333 Sponsored by: The FreeBSD Foundation --- lib/libc/Makefile | 2 ++ lib/libthr/Makefile | 1 + libexec/rtld-elf/Makefile | 1 + 3 files changed, 4 insertions(+) diff --git a/lib/libc/Makefile b/lib/libc/Makefile index d6a3598ae31..4a456f0e495 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -6,6 +6,8 @@ SHLIBDIR?= /lib .include +# BIND_NOW in libc results in segfault at startup (PR 233333) +MK_BIND_NOW= no # Force building of libc_pic.a MK_TOOLCHAIN= yes diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile index 3068e8d2890..9b932cdb7aa 100644 --- a/lib/libthr/Makefile +++ b/lib/libthr/Makefile @@ -9,6 +9,7 @@ PACKAGE= clibs SHLIBDIR?= /lib .include +MK_BIND_NOW= no MK_SSP= no LIB=thr diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 108c1ac0364..b0f02a7205e 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -6,6 +6,7 @@ .include PACKAGE= clibs +MK_BIND_NOW= no MK_SSP= no CONFS= libmap.conf