From owner-svn-src-head@freebsd.org Fri Sep 21 17:44:08 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C89A109F7F6; Fri, 21 Sep 2018 17:44:08 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F66288AF2; Fri, 21 Sep 2018 17:44:08 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0A7271042B; Fri, 21 Sep 2018 17:44:08 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8LHi7s4091170; Fri, 21 Sep 2018 17:44:07 GMT (envelope-from brooks@FreeBSD.org) Received: (from brooks@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8LHi5BJ091155; Fri, 21 Sep 2018 17:44:05 GMT (envelope-from brooks@FreeBSD.org) Message-Id: <201809211744.w8LHi5BJ091155@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brooks set sender to brooks@FreeBSD.org using -f From: Brooks Davis Date: Fri, 21 Sep 2018 17:44:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338860 - in head/gnu/usr.bin: binutils/as binutils/ld binutils/libbinutils binutils/libiberty cc/libiberty gdb/arch/amd64 gdb/arch/arm gdb/arch/i386 gdb/arch/mips gdb/arch/powerpc gdb/... X-SVN-Group: head X-SVN-Commit-Author: brooks X-SVN-Commit-Paths: in head/gnu/usr.bin: binutils/as binutils/ld binutils/libbinutils binutils/libiberty cc/libiberty gdb/arch/amd64 gdb/arch/arm gdb/arch/i386 gdb/arch/mips gdb/arch/powerpc gdb/arch/powerpc64 gdb/arch/s... X-SVN-Commit-Revision: 338860 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2018 17:44:08 -0000 Author: brooks Date: Fri Sep 21 17:44:05 2018 New Revision: 338860 URL: https://svnweb.freebsd.org/changeset/base/338860 Log: Disable sbrk() use in GNU tools. We're studing the possibility of deprecating sbrk(). To make it easier we're removing unnecessicary uses in the base system. None of these tools require sbrk(), but they agressively prefer it for no good reason. Reviewed by: andrew Approved by: re (kib) Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D16141 Modified: head/gnu/usr.bin/binutils/as/config.h head/gnu/usr.bin/binutils/ld/config.h head/gnu/usr.bin/binutils/libbinutils/config.h head/gnu/usr.bin/binutils/libiberty/config.h head/gnu/usr.bin/cc/libiberty/config.h head/gnu/usr.bin/gdb/arch/amd64/config.h head/gnu/usr.bin/gdb/arch/arm/config.h head/gnu/usr.bin/gdb/arch/i386/config.h head/gnu/usr.bin/gdb/arch/mips/config.h head/gnu/usr.bin/gdb/arch/powerpc/config.h head/gnu/usr.bin/gdb/arch/powerpc64/config.h head/gnu/usr.bin/gdb/arch/sparc64/config.h Modified: head/gnu/usr.bin/binutils/as/config.h ============================================================================== --- head/gnu/usr.bin/binutils/as/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/binutils/as/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -69,7 +69,7 @@ /* #undef HAVE_REMOVE */ /* Define to 1 if you have the `sbrk' function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 Modified: head/gnu/usr.bin/binutils/ld/config.h ============================================================================== --- head/gnu/usr.bin/binutils/ld/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/binutils/ld/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -65,7 +65,7 @@ #define HAVE_REALPATH 1 /* Define to 1 if you have the `sbrk' function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 Modified: head/gnu/usr.bin/binutils/libbinutils/config.h ============================================================================== --- head/gnu/usr.bin/binutils/libbinutils/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/binutils/libbinutils/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -104,7 +104,7 @@ #define HAVE_MKSTEMP 1 /* Define to 1 if you have the `sbrk' function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define to 1 if you have the `setmode' function. */ #define HAVE_SETMODE 1 Modified: head/gnu/usr.bin/binutils/libiberty/config.h ============================================================================== --- head/gnu/usr.bin/binutils/libiberty/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/binutils/libiberty/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -188,7 +188,7 @@ #define HAVE_RINDEX 1 /* Define to 1 if you have the `sbrk' function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 Modified: head/gnu/usr.bin/cc/libiberty/config.h ============================================================================== --- head/gnu/usr.bin/cc/libiberty/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/cc/libiberty/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -187,7 +187,7 @@ #define HAVE_RINDEX 1 /* Define to 1 if you have the `sbrk' function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 Modified: head/gnu/usr.bin/gdb/arch/amd64/config.h ============================================================================== --- head/gnu/usr.bin/gdb/arch/amd64/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/gdb/arch/amd64/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -227,7 +227,7 @@ #define HAVE_REALPATH 1 /* Define if you have the sbrk function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define if you have the setenv function. */ #define HAVE_SETENV 1 Modified: head/gnu/usr.bin/gdb/arch/arm/config.h ============================================================================== --- head/gnu/usr.bin/gdb/arch/arm/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/gdb/arch/arm/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -239,7 +239,7 @@ #define HAVE_REALPATH 1 /* Define if you have the sbrk function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define if you have the setenv function. */ #define HAVE_SETENV 1 Modified: head/gnu/usr.bin/gdb/arch/i386/config.h ============================================================================== --- head/gnu/usr.bin/gdb/arch/i386/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/gdb/arch/i386/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -227,7 +227,7 @@ #define HAVE_REALPATH 1 /* Define if you have the sbrk function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define if you have the setenv function. */ #define HAVE_SETENV 1 Modified: head/gnu/usr.bin/gdb/arch/mips/config.h ============================================================================== --- head/gnu/usr.bin/gdb/arch/mips/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/gdb/arch/mips/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -227,7 +227,7 @@ #define HAVE_REALPATH 1 /* Define if you have the sbrk function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define if you have the setenv function. */ #define HAVE_SETENV 1 Modified: head/gnu/usr.bin/gdb/arch/powerpc/config.h ============================================================================== --- head/gnu/usr.bin/gdb/arch/powerpc/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/gdb/arch/powerpc/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -227,7 +227,7 @@ #define HAVE_REALPATH 1 /* Define if you have the sbrk function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define if you have the setenv function. */ #define HAVE_SETENV 1 Modified: head/gnu/usr.bin/gdb/arch/powerpc64/config.h ============================================================================== --- head/gnu/usr.bin/gdb/arch/powerpc64/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/gdb/arch/powerpc64/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -227,7 +227,7 @@ #define HAVE_REALPATH 1 /* Define if you have the sbrk function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define if you have the setenv function. */ #define HAVE_SETENV 1 Modified: head/gnu/usr.bin/gdb/arch/sparc64/config.h ============================================================================== --- head/gnu/usr.bin/gdb/arch/sparc64/config.h Fri Sep 21 15:58:08 2018 (r338859) +++ head/gnu/usr.bin/gdb/arch/sparc64/config.h Fri Sep 21 17:44:05 2018 (r338860) @@ -227,7 +227,7 @@ #define HAVE_REALPATH 1 /* Define if you have the sbrk function. */ -#define HAVE_SBRK 1 +/* #undef HAVE_SBRK */ /* Define if you have the setenv function. */ #define HAVE_SETENV 1