From patchwork Fri Sep 29 21:29:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 820084 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-85141-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="EHX33vn8"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y3l7g551lz9t67 for ; Sat, 30 Sep 2017 07:29:35 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=hH5k8bhIQCF7zs8+8cFl/ea2T5dha J+1gEcET7YlIp3VUeiREY0sFIujpANRu0uo6opA5OZKJfWCxDRyVyLs+4KPHSVpH pyFyOHJ7WHkHAclmKGAeN95pGCa2XSvNTKtiyR/5YHUyELzbbYOeeJEuwOqbl9Z6 ciVJmIKHJ5vHzs= 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:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=cpE5miwcubyG0NLwylWbIyQVCAQ=; b=EHX 33vn8Lfm9uHGWRFcC31yX+uJ9Eez8Mty8EwYm6qS7Ig8FUHGNZMYAkJlZXniJuI7 D2vhdbjof3aHTFqh2NNZ6y/4RHnoZsI3iGcoGBBnWJjIlYXND4ZuNcs4K2XsxrS2 nGsUPs5ndfsq8tNq1JmJzKCCj0vzqCDL0dGG/biA= Received: (qmail 17973 invoked by alias); 29 Sep 2017 21:29:26 -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 17460 invoked by uid 89); 29 Sep 2017 21:29:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:830 X-HELO: mail-io0-f181.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=knfhVMYBqQygHvLutSgJS7Z/1D4ns288EfCBGKEGBi0=; b=W/vXoN1FY1/NK/FLAkso3MrXci1HNrA4FuhfysB72TJym/7pdueO0sC8SWWlQxQ5v7 6ySq9FwosyqNciOsdentnW5JQ5JHnDc8zVDbwWJSFEdrF8sXDtc/edmzNdGfNNYndhHt vQoNY2FiQZyM6bLezH0lIiXHhzupPpXRxElGnbpopq3HTz0nogXQz2po0eI8HdYIicPR ccdFzYp3iPtwZZRe9gvX1CcxrR71RrIL6rBfrwER23BgsSZglDyTzc1MmeG2MmOGa0mv rOUBv8ZdsgfjVnFkf1OQlL6m2mNQOLNehYo9e90Aj9SHP+DdvUBDOH0dd07+8IrJcQ7e mTJw== X-Gm-Message-State: AMCzsaWxUFAsnaUY2lLxkBkFgwgnPLXJtkBjwBATrkqWq+jADObdyUfP dpRHBXlKN6FyWJLZmngHq6KsNzVx X-Google-Smtp-Source: AOwi7QD2/RC7zzyqhUaufAp9r7CKaVLBxA1b++7OFjk0hFua8I32bixj4oQSSMfxPcqfGZDf5T9w8Q== X-Received: by 10.107.152.75 with SMTP id a72mr14579743ioe.242.1506720562796; Fri, 29 Sep 2017 14:29:22 -0700 (PDT) Date: Fri, 29 Sep 2017 14:29:14 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH] tile: Check SHARED instead PIC for SYSCALL_ERROR_NAME Message-ID: <20170929212914.GA2482@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.0 (2017-09-02) For static PIE code, PIC is defined and SHARED is undefined. We should check SHARED instead PIC for SYSCALL_ERROR_NAME. OK for master? * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME): Check SHARED instead PIC. --- sysdeps/unix/sysv/linux/tile/sysdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/tile/sysdep.h b/sysdeps/unix/sysv/linux/tile/sysdep.h index fb1b89c280..6e37fd2a08 100644 --- a/sysdeps/unix/sysv/linux/tile/sysdep.h +++ b/sysdeps/unix/sysv/linux/tile/sysdep.h @@ -42,7 +42,7 @@ #define ret jrp lr -#ifndef PIC +#ifndef SHARED /* For static code, on error jump to __syscall_error directly. */ # define SYSCALL_ERROR_NAME __syscall_error #elif IS_IN (libc) || IS_IN (libpthread)