From patchwork Thu Dec 14 12:10:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121917 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6718349qgn; Thu, 14 Dec 2017 04:11:02 -0800 (PST) X-Google-Smtp-Source: ACJfBot3F6WdrHgnZoPz076SVGyU7lbWhRkOvMhO2c/W29AHXLiDRuPy4IMo7Ng8HRroAd0uvIve X-Received: by 10.84.160.233 with SMTP id v38mr4261483plg.369.1513253462058; Thu, 14 Dec 2017 04:11:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513253462; cv=none; d=google.com; s=arc-20160816; b=GHTmjqeTky48/cYkZFDRbqmlB0GEq5N3crleps18IyupnEEHrurgVLMjKJ1QbsH2IW p2v/3v8aMwRW1gJXpZjSJkwOljvssRAM7zq7IWu0bnNIrpZYEeI+pUyU3U/el6RlyFYV u8GAcuh/8HcAHnixxbhazg+XZFzMqxQrVbtn92p6MnPeRqGQUlUL51vGBcoA7CiRz+Kw FSkotijovATlAPhtz3kr3gA0nSbhHit3gm80wZO4+PlAKmsbOE9St2nS+12C2pUrwzbC 55LRdGeaDRMM4Xkpp/qGfbyR7ns1cqwe/t8Lv5Av0aGoVn15LDi5Zp0wdvRGXhaxTX81 dv+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:delivered-to:sender:list-help :list-post:list-archive:list-subscribe:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=sIaee3k4QZD9XEplDj6+ZMiMCCQaoL7uaYs/9f8z7Pw=; b=sK77HamFyD0G3eCU44FeidLZLArCtSxH95gZLF867xeXnKBz3UPxaV5FpiJrm6Ctvr ZcOqVQ9aMoDyQPqLNNl22Qlw7liWwGU557ws1RYC5hoEig/RvEhP/A/HPX6RJX6WUFc0 L1N71Q52o5YahEv0+0Q7DibRSwDwRto7D3BPv003aV+RhaZuWXDI3bi+pqgEGVsHBHji jrp5n3+++ibA7OMa5mX+PM6wClLO+GyqVsw5faFKTDrDcTIaGQ7CT91bdtNlg9TrG4Oc 6csxnkrtRexhLJS9/vwQGacdNOwz95S0hbq/fVN+J2Lc+Fgns/hNj2F/9ygbLDqEgTLR OExQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=F9AkoURR; spf=pass (google.com: domain of libc-alpha-return-88126-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-88126-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id i7si3055550plt.427.2017.12.14.04.11.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 04:11:02 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-88126-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=F9AkoURR; spf=pass (google.com: domain of libc-alpha-return-88126-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-88126-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=heW3fgaSJ19uLiEQVOJfnceVOLskwZaSsDIUX7dBv1FrfXD3PnqIJ d8RbDmCeLWkzovOQP3YB5FnrEjj2g4lVyiW9yQ1EjI43t+6LcC+ZTM4uY8ksUa/W /GoPS6yaY2DADlruq6rfotgsZtrqLfMSSum6EZfXhShGtM5UIJdphY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=94y/oyqhfhx9MoZEZHUIBx+Cunk=; b=F9AkoURR9sfSm6gdOYeVgah3M9Vu Ejmg2LXfBpIT59tUJh0QMMKZLapCtgJT6dU3k9p2SHE9Ebp4hBQaNjib41iJt8u6 d+YRqjjC514/J/85+CH8M5+wRQw/r4fJ9rMK4DHpUGr6ZB3B64bxpyDOHZimdxLE iCzWjFUZ1V3twoo= Received: (qmail 51186 invoked by alias); 14 Dec 2017 12:10:52 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 51171 invoked by uid 89); 14 Dec 2017 12:10:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qt0-f194.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=sIaee3k4QZD9XEplDj6+ZMiMCCQaoL7uaYs/9f8z7Pw=; b=UVDx9C6tgmAqJs6en1unpipUEFPv0UjQWITpV4XbPoXNrQ1yuA2FnsF2cAQ/cepGFs I4rgNYcCxBEgOnKDQiwlqNuCqzIx/tiyK0kdxEXvg8/G9r5awZfCkg9DorFwwRWAr/yl /N+SkoN+WDeuteHoKlgw8SFVDd5pVsQmv61RX10hpkBC3v1RD1y+VlxKGYagOi/jOsSP r3I5TMxYxdJSd27xAsDcS5bbFZVS8QJJ6gAkWVEo6IFyBie81zmhcRfVPQMMKBwy0e9k Vfn1RkN7McGObj1I6iXxIA+mwP0jenxYBetJevkEgkZNe4br1XHEescv/F9aSdLixSBa 9ejA== X-Gm-Message-State: AKGB3mJ4mzYLZ5iehEiF47ycUzbxLiHF3bnUkQQly3gwU3esoxJXkRy3 v0w3AANIHnuxSMJLzqY4U9qyhpBEzD8= X-Received: by 10.200.56.137 with SMTP id f9mr15090701qtc.116.1513253444114; Thu, 14 Dec 2017 04:10:44 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH] sh: Fix clone exit return code Date: Thu, 14 Dec 2017 10:10:36 -0200 Message-Id: <1513253436-11438-1-git-send-email-adhemerval.zanella@linaro.org> Since 3f823e87cc (Call exit directly in clone (BZ #21512)) SH clone implementation fails to set the exit code resulting in the failures: FAIL: nptl/tst-align-clone FAIL: nptl/tst-getpid1 This patch fixes the both testcases. * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return code. Signed-off-by: Adhemerval Zanella --- ChangeLog | 6 ++++++ sysdeps/unix/sysv/linux/sh/clone.S | 1 + 2 files changed, 7 insertions(+) -- 2.7.4 diff --git a/sysdeps/unix/sysv/linux/sh/clone.S b/sysdeps/unix/sysv/linux/sh/clone.S index b13a64b..d369a82 100644 --- a/sysdeps/unix/sysv/linux/sh/clone.S +++ b/sysdeps/unix/sysv/linux/sh/clone.S @@ -73,6 +73,7 @@ ENTRY(__clone) mov.l @(4,r15), r4 /* we are done, passing the return value through r0 */ + mov r0, r4 mov #+SYS_ify(exit), r3 trapa #0x15 .align 2