From nobody Tue Jan 2 17:00:10 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T4Jxk2h5zz55r1g; Tue, 2 Jan 2024 17:00:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T4Jxk27qnz3X60; Tue, 2 Jan 2024 17:00:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704214810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tBBK/EwU7pvs6ZeVp5akyskSZHZWsymBjLCEnwhAF30=; b=MVDLuw6ZpQfu//Jfd+18jhZgMeEpYUix9RaN0u5euuqdb5FY1PqrRPEmJsd4Rt8FDWdQNT zk1kF9M3Sr77iMRMUK1BM0YWynq4PdfjM95ZcZUlbJJTX7moYxgQrPOf6oW6tKakwYAM3N CNAXc8nYfCgY+pY29bKRjoHrEGmBDFEOvq0Wi0g+z+tAhSBLrQ7rdIgt3seaklD2eiBWs9 tPPJ3ZzHTysGy4B6rwyi7LNLe5jLt2Q89TRyGYXIRAGzrPjf+rY2sMGbmIjJPQ2Bq3t6Xm /hiQRu0wvz4D1h5POND7+5hahmuHCv7auNFZAyxbZK/X9sDNtE4HSlcGTJAEYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704214810; a=rsa-sha256; cv=none; b=TshABnSe0uoc4T8WoYXAoo5hFZft/wHbCi1VBOrrNw/rxz1PJxsPeGYGqZeyEgyvDl2cu8 wSqb3swGrxg9sW818lngx1r4f7DHvUegLQGV6Wqian829rk0n0JY2IBzS3YFhE9oagxMmd CCyB8nTsB+GMN1orjdsPm8QnDcbDjmV6T6PcTxaaYfUvfco1XUVq1oTEJwIFSV2xFrY0av vRoUrA6mHjSX/LfOw7dBbCVQcZkcyFv7HhCjgZHVHJiwL6J8Ee0z9Lw9K899KX2cJlRPyw Ftg7Gk1vr7E8Q/NhD8nfv+gwR6cigTWj/I7Fgqjtv0ZYNcCztuoDfLu5p7gi3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704214810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tBBK/EwU7pvs6ZeVp5akyskSZHZWsymBjLCEnwhAF30=; b=Qbx2eMQjtaoAFjietk/VbZ4fEYK2zhslG1CHrJmSi5HnBuHZkL5/h7TeoN7/kO6aUmhApH z5b4XhwHxvQRplQHK7xKp4aa5KV1zOMd5Vj6/TjRqnhMQ1t/Iw2tySJBY2rrCYELE7Andv 4L6pDPBfFfn/gNA43cU98PTs0dHVgyqyvlL7S4E0Dhe7sx8VtOdRE9eUpP14b5uwSiiZQB 3UlorYHA8GiRMkH2+IOaX7+o8qH/g6yAF5KtQC9yilKOFLNPg6fzmqqp/gvS6/wvV1FYG4 WOLcNVdEXFVlROC+u6cl6YKR8D1W/reJK7OIF386hvoIAaERcUkAx8LQMRwbQw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T4Jxk1Bdqz181n; Tue, 2 Jan 2024 17:00:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 402H0AKC039819; Tue, 2 Jan 2024 17:00:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 402H0AAq039814; Tue, 2 Jan 2024 17:00:10 GMT (envelope-from git) Date: Tue, 2 Jan 2024 17:00:10 GMT Message-Id: <202401021700.402H0AAq039814@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Brooks Davis Subject: git: 94671881419f - stable/14 - libc: Centralize non-building of sbrk stubs List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 94671881419f0fb8014006266e5505feaf23daeb Auto-Submitted: auto-generated The branch stable/14 has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=94671881419f0fb8014006266e5505feaf23daeb commit 94671881419f0fb8014006266e5505feaf23daeb Author: Brooks Davis AuthorDate: 2024-01-02 16:22:13 +0000 Commit: Brooks Davis CommitDate: 2024-01-02 16:22:13 +0000 libc: Centralize non-building of sbrk stubs The actual implementation of sbrk(2) is on top of the undocumented break(2) system call. On powerpc* this means we don't build _sbrk and __sys_sbrk which were neither used nor exposed for linkage. Otherwise it is a no-op. The addition to lib/libc/sys/Makefile.inc is a direct commit to stable/14 in lieu of merging the removal of the sbrk and sstk syscalls. (cherry picked from commit 7893419d492c40ca82b68fca3dcc0f5f7047d39b) Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D43159 --- lib/libc/aarch64/sys/Makefile.inc | 3 +-- lib/libc/amd64/sys/Makefile.inc | 2 +- lib/libc/arm/sys/Makefile.inc | 2 +- lib/libc/i386/sys/Makefile.inc | 2 +- lib/libc/riscv/sys/Makefile.inc | 2 +- lib/libc/sys/Makefile.inc | 1 + 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/aarch64/sys/Makefile.inc b/lib/libc/aarch64/sys/Makefile.inc index 7cb0544a2997..ae48fd739477 100644 --- a/lib/libc/aarch64/sys/Makefile.inc +++ b/lib/libc/aarch64/sys/Makefile.inc @@ -8,5 +8,4 @@ MDASM= cerror.S \ vfork.S # Don't generate default code for these syscalls: -NOASM+= sbrk.o \ - vfork.o +NOASM+= vfork.o diff --git a/lib/libc/amd64/sys/Makefile.inc b/lib/libc/amd64/sys/Makefile.inc index 32c03ccf2963..658fbd2add50 100644 --- a/lib/libc/amd64/sys/Makefile.inc +++ b/lib/libc/amd64/sys/Makefile.inc @@ -7,4 +7,4 @@ SRCS+= \ MDASM= vfork.S cerror.S getcontext.S # Don't generate default code for these syscalls: -NOASM+= sbrk.o vfork.o +NOASM+= vfork.o diff --git a/lib/libc/arm/sys/Makefile.inc b/lib/libc/arm/sys/Makefile.inc index 398ac494f2bc..3a86936a7b23 100644 --- a/lib/libc/arm/sys/Makefile.inc +++ b/lib/libc/arm/sys/Makefile.inc @@ -4,4 +4,4 @@ SRCS+= __vdso_gettc.c \ MDASM= Ovfork.S cerror.S syscall.S # Don't generate default code for these syscalls: -NOASM+= sbrk.o vfork.o +NOASM+= vfork.o diff --git a/lib/libc/i386/sys/Makefile.inc b/lib/libc/i386/sys/Makefile.inc index accdc3367ac8..57a8af428aca 100644 --- a/lib/libc/i386/sys/Makefile.inc +++ b/lib/libc/i386/sys/Makefile.inc @@ -4,7 +4,7 @@ SRCS+= i386_get_fsbase.c i386_get_gsbase.c i386_get_ioperm.c i386_get_ldt.c \ MDASM= Ovfork.S cerror.S getcontext.S syscall.S -NOASM+= sbrk.o vfork.o +NOASM+= vfork.o MAN+= i386_get_ioperm.2 i386_get_ldt.2 i386_vm86.2 MAN+= i386_set_watch.3 diff --git a/lib/libc/riscv/sys/Makefile.inc b/lib/libc/riscv/sys/Makefile.inc index f1cc8d489553..cd8ba4f11557 100644 --- a/lib/libc/riscv/sys/Makefile.inc +++ b/lib/libc/riscv/sys/Makefile.inc @@ -6,4 +6,4 @@ MDASM= cerror.S \ vfork.S # Don't generate default code for these syscalls: -NOASM+= sbrk.o vfork.o +NOASM+= vfork.o diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 480002f9875e..1acc66c5f726 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -18,6 +18,7 @@ # NOASM= exit.o \ getlogin.o \ + sbrk.o \ sstk.o \ yield.o PSEUDO= _exit.o \