Date: Fri, 21 Sep 2018 17:44:05 +0000 (UTC) From: Brooks Davis <brooks@FreeBSD.org> 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/... Message-ID: <201809211744.w8LHi5BJ091155@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <stdarg.h> 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 <stdint.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809211744.w8LHi5BJ091155>