From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id 84C1A386F800; Tue, 28 Apr 2020 15:13:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84C1A386F800 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc] misc: Remove sstk from the autogenerated system call list X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/master X-Git-Oldrev: dbb188dd87ffdbf0ca3d9cd118ad4176439fb294 X-Git-Newrev: 6d246cb852d3c5ab721dc583112a59ac47dc374e Message-Id: <20200428151355.84C1A386F800@sourceware.org> Date: Tue, 28 Apr 2020 15:13:55 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2020 15:13:55 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6d246cb852d3c5ab721dc583112a59ac47dc374e commit 6d246cb852d3c5ab721dc583112a59ac47dc374e Author: Florian Weimer Date: Tue Apr 28 12:10:32 2020 +0200 misc: Remove sstk from the autogenerated system call list This change should not have an effect because the system call was never defined. Also add the misssing attribute_compat_text_section attribute to the sstk function (a minor optimization). Also update the NEWS file to document the change. Fixes commit 9cc93ba0973ad04ee26c515a1552afb85e73c6ba ("misc: Turn sstk into a compat symbol"). Diff: --- NEWS | 4 ++++ misc/sstk.c | 2 +- sysdeps/unix/syscalls.list | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 0e627b3405..f58436c91a 100644 --- a/NEWS +++ b/NEWS @@ -26,6 +26,10 @@ Deprecated and removed features, and other changes affecting compatibility: but always fails with ENOSYS. This reflects the removal of the system call from all architectures, starting with Linux 5.5. +* The sstk function is no longer available to newly linked binaries. + Its implementation always returned with a failure, and the function + was not declared in any header file. + Changes to build and runtime requirements: [Add changes to build and runtime requirements here] diff --git a/misc/sstk.c b/misc/sstk.c index 0a2a967917..dda6f7b426 100644 --- a/misc/sstk.c +++ b/misc/sstk.c @@ -19,7 +19,7 @@ #include #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_32) -void * +void * attribute_compat_text_section sstk (int increment) { __set_errno (ENOSYS); diff --git a/sysdeps/unix/syscalls.list b/sysdeps/unix/syscalls.list index 01c4a0e6b1..e8f8718b04 100644 --- a/sysdeps/unix/syscalls.list +++ b/sysdeps/unix/syscalls.list @@ -78,7 +78,6 @@ sigaction - sigaction i:ipp __sigaction sigaction sigsuspend - sigsuspend Ci:p sigsuspend socket - socket i:iii __socket socket socketpair - socketpair i:iiif socketpair -sstk - sstk b:i sstk statfs - statfs i:sp __statfs statfs swapoff - swapoff i:s swapoff swapon - swapon i:s swapon