From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B8E8C433DF for ; Wed, 3 Jun 2020 19:58:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 685492074B for ; Wed, 3 Jun 2020 19:58:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KmelFWCZ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CEdEXIjb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 685492074B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:Subject:From:References:To:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qau6xBjkQteLhvFHqE+ye2G5tVQ05CZpmctdl0PlxBM=; b=KmelFWCZgeoxrT U3pX7Y2LhUSCJD6Do0RTcRKOzRac2rBhhiob97GWesW/8h59Z/MO540hRZ/zQzO6LUQfmkpr8GZv6 ABP2osl5D8DWDkxW8byPMCF0KFwmA13gjR/PhON85dp6dH+EE97ia8R2j1M1ZfKaoWTa0oFCHv8KU rQay4dz/5OzaiumfCtzsfuPaRFFU4iog6uOowXjWrC6zjhuNwlUukAObVFZEBzmZRqD1EL9gBGGNa 5p3UZGFGwUUhLW6Gz9nFl4rkCm1iQx3TjjnrhkSBYn/FtBL1dRpizWlOONawG3786Y6au7Wjw6T2F U8IhVqN5rGq2eSqJrV5Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jgZXC-0006TO-W5; Wed, 03 Jun 2020 19:58:47 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jgZX6-0006SG-E8 for linux-snps-arc@lists.infradead.org; Wed, 03 Jun 2020 19:58:45 +0000 Received: by mail-qk1-x741.google.com with SMTP id n11so3552225qkn.8 for ; Wed, 03 Jun 2020 12:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=to:cc:references:from:autocrypt:subject:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oo+DxM1A/Tc8lKSmCRm721y4S2AJmh+qXRiaK+oAGDU=; b=CEdEXIjbb9NsTAhMU+LeZ8XC0nuVQUiYaByWv3MuutizeZmMqG6cT5H68aNbdN1DE6 bu4U99RJMrKpsGmMfCtsyc8/VedQTS1kC0VG4CvVDOA8IzuY3w15ofPy0v2PUTqswuHf m3uMExyn5ZwXuGz14bL6AZEzQsc8Hraonaa913ZgQFY+IqUugtLyfDauLPuUs69UbPOL XvUW57JBzajPrcX3VLwSDP+uFHqwPCHlrXbUHwaeOJCeTp/uuBeL4KeRCJdXQswPoiP1 IMszyZ04m/4vmFHdqbEqT0yvy91FZ45QIQqskUu+9i9Z6A471yBRiUT8xI9Icdf1e0pj j37w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:autocrypt:subject :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=oo+DxM1A/Tc8lKSmCRm721y4S2AJmh+qXRiaK+oAGDU=; b=cbUFZLScTc6lWyJ84SgHqzxLMptmiXrQXtP0NhJum4I+4sq+yqiSPVTz4wWs4lW2kt DvhRTO2PiaKfVwirLQs1uWheoOyug0hwMWQgAvTnK+ZpU8yKIX1NnA+KUfo56hf1Mp01 WXmEleex+Pb0o5YGwU2dtMpuQNO1mJLybQwiYnGRiJ2eR2SmJ+KunRBiJp4+dlJL4znk L6+JFMXFIkK/jMUxJoNzXDOa74Cx2UDkAKRKi7Yz5c7WmtFu8XTUt340ry32VLJEqvx7 kluz6x8BYF+mDR4vehGp9vot2L1HqRNn78eMCl6rawyOlfNBA7tBvAMd00J2wZMQ8eNn M93Q== X-Gm-Message-State: AOAM533hbyGcFWrp91dfp643KsGzqGteIxtwRBfLeFTxEaUr6fPUrJPo x8/zvJ/ZagAFNOOlKAfTecuq3fhx1/4= X-Google-Smtp-Source: ABdhPJwiTuyA9nrm+icFfuQ6HrEu2E3w9jxt4u+DWOI6isUfz0mP68oUfeyVWX8Dv4NIh3FGpH1fqg== X-Received: by 2002:a37:65c3:: with SMTP id z186mr1454779qkb.368.1591214315589; Wed, 03 Jun 2020 12:58:35 -0700 (PDT) Received: from [192.168.1.4] ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id d14sm2750282qtr.17.2020.06.03.12.58.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jun 2020 12:58:35 -0700 (PDT) To: Vineet Gupta , libc-alpha@sourceware.org References: <20200423014126.10417-1-vgupta@synopsys.com> <20200423014126.10417-12-vgupta@synopsys.com> From: Adhemerval Zanella Autocrypt: addr=adhemerval.zanella@linaro.org; prefer-encrypt=mutual; keydata= mQINBFcVGkoBEADiQU2x/cBBmAVf5C2d1xgz6zCnlCefbqaflUBw4hB/bEME40QsrVzWZ5Nq 8kxkEczZzAOKkkvv4pRVLlLn/zDtFXhlcvQRJ3yFMGqzBjofucOrmdYkOGo0uCaoJKPT186L NWp53SACXguFJpnw4ODI64ziInzXQs/rUJqrFoVIlrPDmNv/LUv1OVPKz20ETjgfpg8MNwG6 iMizMefCl+RbtXbIEZ3TE/IaDT/jcOirjv96lBKrc/pAL0h/O71Kwbbp43fimW80GhjiaN2y WGByepnkAVP7FyNarhdDpJhoDmUk9yfwNuIuESaCQtfd3vgKKuo6grcKZ8bHy7IXX1XJj2X/ BgRVhVgMHAnDPFIkXtP+SiarkUaLjGzCz7XkUn4XAGDskBNfbizFqYUQCaL2FdbW3DeZqNIa nSzKAZK7Dm9+0VVSRZXP89w71Y7JUV56xL/PlOE+YKKFdEw+gQjQi0e+DZILAtFjJLoCrkEX w4LluMhYX/X8XP6/C3xW0yOZhvHYyn72sV4yJ1uyc/qz3OY32CRy+bwPzAMAkhdwcORA3JPb kPTlimhQqVgvca8m+MQ/JFZ6D+K7QPyvEv7bQ7M+IzFmTkOCwCJ3xqOD6GjX3aphk8Sr0dq3 4Awlf5xFDAG8dn8Uuutb7naGBd/fEv6t8dfkNyzj6yvc4jpVxwARAQABtElBZGhlbWVydmFs IFphbmVsbGEgTmV0dG8gKExpbmFybyBWUE4gS2V5KSA8YWRoZW1lcnZhbC56YW5lbGxhQGxp bmFyby5vcmc+iQI3BBMBCAAhBQJXFRpKAhsDBQsJCAcDBRUKCQgLBRYCAwEAAh4BAheAAAoJ EKqx7BSnlIjv0e8P/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13] ARC: Build Infrastructure Message-ID: Date: Wed, 3 Jun 2020 16:58:32 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200423014126.10417-12-vgupta@synopsys.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200603_125840_485971_DD5F411A X-CRM114-Status: GOOD ( 24.82 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-snps-arc@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org On 22/04/2020 22:41, Vineet Gupta via Libc-alpha wrote: > Signed-off-by: Vineet Gupta Some comments below. > --- > config.h.in | 3 + > sysdeps/arc/Implies | 3 + > sysdeps/arc/Makefile | 21 +++ > sysdeps/arc/Versions | 8 + > sysdeps/arc/configure | 182 +++++++++++++++++++++ > sysdeps/arc/configure.ac | 26 +++ > sysdeps/arc/nptl/Makefile | 22 +++ > sysdeps/arc/preconfigure | 14 ++ > sysdeps/unix/sysv/linux/arc/Implies | 3 + > sysdeps/unix/sysv/linux/arc/Makefile | 29 ++++ > sysdeps/unix/sysv/linux/arc/Versions | 16 ++ > sysdeps/unix/sysv/linux/arc/configure | 4 + > sysdeps/unix/sysv/linux/arc/configure.ac | 4 + > sysdeps/unix/sysv/linux/arc/ldconfig.h | 27 +++ > sysdeps/unix/sysv/linux/arc/shlib-versions | 7 + > 15 files changed, 369 insertions(+) > create mode 100644 sysdeps/arc/Implies > create mode 100644 sysdeps/arc/Makefile > create mode 100644 sysdeps/arc/Versions > create mode 100644 sysdeps/arc/configure > create mode 100644 sysdeps/arc/configure.ac > create mode 100644 sysdeps/arc/nptl/Makefile > create mode 100644 sysdeps/arc/preconfigure > create mode 100644 sysdeps/unix/sysv/linux/arc/Implies > create mode 100644 sysdeps/unix/sysv/linux/arc/Makefile > create mode 100644 sysdeps/unix/sysv/linux/arc/Versions > create mode 100644 sysdeps/unix/sysv/linux/arc/configure > create mode 100644 sysdeps/unix/sysv/linux/arc/configure.ac > create mode 100644 sysdeps/unix/sysv/linux/arc/ldconfig.h > create mode 100644 sysdeps/unix/sysv/linux/arc/shlib-versions > > diff --git a/config.h.in b/config.h.in > index dea43df438f6..08962dfed075 100644 > --- a/config.h.in > +++ b/config.h.in > @@ -109,6 +109,9 @@ > /* AArch64 big endian ABI */ > #undef HAVE_AARCH64_BE > > +/* ARC big endian ABI */ > +#undef HAVE_ARC_BE > + Why do you need this define exactly? It is not used anywhere in the code and for C code if is more straightforwar to use endian.h. > /* C-SKY ABI version. */ > #undef CSKYABI > > diff --git a/sysdeps/arc/Implies b/sysdeps/arc/Implies > new file mode 100644 > index 000000000000..780c4e246769 > --- /dev/null > +++ b/sysdeps/arc/Implies > @@ -0,0 +1,3 @@ > +wordsize-32 > +ieee754/flt-32 > +ieee754/dbl-64 Ok. > diff --git a/sysdeps/arc/Makefile b/sysdeps/arc/Makefile > new file mode 100644 > index 000000000000..56ac503bfe43 > --- /dev/null > +++ b/sysdeps/arc/Makefile > @@ -0,0 +1,21 @@ > +# ARC Makefile > +# Copyright (C) 1993-2020 Free Software Foundation, Inc. > +# This file is part of the GNU C Library. > + > +# The GNU C Library is free software; you can redistribute it and/or > +# modify it under the terms of the GNU Lesser General Public > +# License as published by the Free Software Foundation; either > +# version 2.1 of the License, or (at your option) any later version. > + > +# The GNU C Library is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > +# Lesser General Public License for more details. > + > +# You should have received a copy of the GNU Lesser General Public > +# License along with the GNU C Library. If not, see > +# . > + > +# We don't support long doubles as a distinct type. We don't need to set > +# this variable; it's here mostly for documentational purposes. > +long-double-fcts = no Ok. > diff --git a/sysdeps/arc/Versions b/sysdeps/arc/Versions > new file mode 100644 > index 000000000000..6ac7b8e49505 > --- /dev/null > +++ b/sysdeps/arc/Versions > @@ -0,0 +1,8 @@ > +libc { > + GLIBC_2.32 { > + __mcount; > + } Hum, does ARC require a different symbol name than the one provided by gmon/Versions? > + GLIBC_PRIVATE { > + __syscall_error; > + } > +} > diff --git a/sysdeps/arc/configure b/sysdeps/arc/configure > new file mode 100644 > index 000000000000..5820017d6505 > --- /dev/null > +++ b/sysdeps/arc/configure > @@ -0,0 +1,182 @@ > +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! > + # Local configure fragment for sysdeps/arc. > + > +$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h > + > +libc_cv_have_sdata_section=no > + > +# For ARC, historically ; was used for comments and not newline > +# Later # also got added to comment list, but ; couldn't be switched to > +# canonical newline as there's lots of code out there which will break > +libc_cv_asm_line_sep='`' > +cat >>confdefs.h <<_ACEOF > +#define ASM_LINE_SEP $libc_cv_asm_line_sep > +_ACEOF > + > + > +# For big endian ABI, generate a symbol for selecting right dynamic linker > + > + > +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 > +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } > +if ${ac_cv_path_GREP+:} false; then : > + $as_echo_n "(cached) " >&6 > +else > + if test -z "$GREP"; then > + ac_path_GREP_found=false > + # Loop through the user's path and test for each of PROGNAME-LIST > + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR > +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin > +do > + IFS=$as_save_IFS > + test -z "$as_dir" && as_dir=. > + for ac_prog in grep ggrep; do > + for ac_exec_ext in '' $ac_executable_extensions; do > + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" > + as_fn_executable_p "$ac_path_GREP" || continue > +# Check for GNU ac_path_GREP and select it if it is found. > + # Check for GNU $ac_path_GREP > +case `"$ac_path_GREP" --version 2>&1` in > +*GNU*) > + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; > +*) > + ac_count=0 > + $as_echo_n 0123456789 >"conftest.in" > + while : > + do > + cat "conftest.in" "conftest.in" >"conftest.tmp" > + mv "conftest.tmp" "conftest.in" > + cp "conftest.in" "conftest.nl" > + $as_echo 'GREP' >> "conftest.nl" > + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break > + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break > + as_fn_arith $ac_count + 1 && ac_count=$as_val > + if test $ac_count -gt ${ac_path_GREP_max-0}; then > + # Best one so far, save it but keep looking for a better one > + ac_cv_path_GREP="$ac_path_GREP" > + ac_path_GREP_max=$ac_count > + fi > + # 10*(2^10) chars as input seems more than enough > + test $ac_count -gt 10 && break > + done > + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; > +esac > + > + $ac_path_GREP_found && break 3 > + done > + done > + done > +IFS=$as_save_IFS > + if test -z "$ac_cv_path_GREP"; then > + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 > + fi > +else > + ac_cv_path_GREP=$GREP > +fi > + > +fi > +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 > +$as_echo "$ac_cv_path_GREP" >&6; } > + GREP="$ac_cv_path_GREP" > + > + > +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 > +$as_echo_n "checking for egrep... " >&6; } > +if ${ac_cv_path_EGREP+:} false; then : > + $as_echo_n "(cached) " >&6 > +else > + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 > + then ac_cv_path_EGREP="$GREP -E" > + else > + if test -z "$EGREP"; then > + ac_path_EGREP_found=false > + # Loop through the user's path and test for each of PROGNAME-LIST > + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR > +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin > +do > + IFS=$as_save_IFS > + test -z "$as_dir" && as_dir=. > + for ac_prog in egrep; do > + for ac_exec_ext in '' $ac_executable_extensions; do > + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" > + as_fn_executable_p "$ac_path_EGREP" || continue > +# Check for GNU ac_path_EGREP and select it if it is found. > + # Check for GNU $ac_path_EGREP > +case `"$ac_path_EGREP" --version 2>&1` in > +*GNU*) > + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; > +*) > + ac_count=0 > + $as_echo_n 0123456789 >"conftest.in" > + while : > + do > + cat "conftest.in" "conftest.in" >"conftest.tmp" > + mv "conftest.tmp" "conftest.in" > + cp "conftest.in" "conftest.nl" > + $as_echo 'EGREP' >> "conftest.nl" > + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break > + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break > + as_fn_arith $ac_count + 1 && ac_count=$as_val > + if test $ac_count -gt ${ac_path_EGREP_max-0}; then > + # Best one so far, save it but keep looking for a better one > + ac_cv_path_EGREP="$ac_path_EGREP" > + ac_path_EGREP_max=$ac_count > + fi > + # 10*(2^10) chars as input seems more than enough > + test $ac_count -gt 10 && break > + done > + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; > +esac > + > + $ac_path_EGREP_found && break 3 > + done > + done > + done > +IFS=$as_save_IFS > + if test -z "$ac_cv_path_EGREP"; then > + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 > + fi > +else > + ac_cv_path_EGREP=$EGREP > +fi > + > + fi > +fi > +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 > +$as_echo "$ac_cv_path_EGREP" >&6; } > + EGREP="$ac_cv_path_EGREP" > + > + > +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 > +$as_echo_n "checking for big endian... " >&6; } > +if ${libc_cv_arc_be+:} false; then : > + $as_echo_n "(cached) " >&6 > +else > + cat confdefs.h - <<_ACEOF >conftest.$ac_ext > +/* end confdefs.h. */ > +#ifdef __BIG_ENDIAN__ > + yes > + #endif > + > +_ACEOF > +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | > + $EGREP "yes" >/dev/null 2>&1; then : > + libc_cv_arc_be=yes > +else > + libc_cv_arc_be=no > +fi > +rm -f conftest* > + > +fi > +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arc_be" >&5 > +$as_echo "$libc_cv_arc_be" >&6; } > +if test $libc_cv_arc_be = yes; then > + # For shlib-versions. > + $as_echo "#define HAVE_ARC_BE 1" >>confdefs.h > + > + config_vars="$config_vars > +default-abi = ilp32_be" > +else > + config_vars="$config_vars > +default-abi = ilp32" > +fi > diff --git a/sysdeps/arc/configure.ac b/sysdeps/arc/configure.ac > new file mode 100644 > index 000000000000..d5bcd2a58cdc > --- /dev/null > +++ b/sysdeps/arc/configure.ac > @@ -0,0 +1,26 @@ > +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. > +# Local configure fragment for sysdeps/arc. > + > +AC_DEFINE(PI_STATIC_AND_HIDDEN) > +libc_cv_have_sdata_section=no The libc_cv_have_sdata_section is done by configure.ac, why do you need to explicit set it here? > + > +# For ARC, historically ; was used for comments and not newline > +# Later # also got added to comment list, but ; couldn't be switched to > +# canonical newline as there's lots of code out there which will break > +libc_cv_asm_line_sep='`' > +AC_DEFINE_UNQUOTED(ASM_LINE_SEP, $libc_cv_asm_line_sep) > + Ok. > +# For big endian ABI, generate a symbol for selecting right dynamic linker > +AC_CACHE_CHECK([for big endian], > + [libc_cv_arc_be], > + [AC_EGREP_CPP(yes,[#ifdef __BIG_ENDIAN__ > + yes > + #endif > + ], libc_cv_arc_be=yes, libc_cv_arc_be=no)]) > +if test $libc_cv_arc_be = yes; then > + # For shlib-versions. > + AC_DEFINE(HAVE_ARC_BE) > + LIBC_CONFIG_VAR([default-abi], [ilp32_be]) > +else > + LIBC_CONFIG_VAR([default-abi], [ilp32]) > +fi The ilp32 naming is usually set for ILP32 architectures that uses 64-bit registers type on 32 bit VMA (for instance mips64n32, x32, or aarch64_ilp32). I don't think this is the case for ARC, so I think this naming might be confusing. > diff --git a/sysdeps/arc/nptl/Makefile b/sysdeps/arc/nptl/Makefile > new file mode 100644 > index 000000000000..6f387c53905d > --- /dev/null > +++ b/sysdeps/arc/nptl/Makefile > @@ -0,0 +1,22 @@ > +# NPTL makefile fragment for ARC. > +# Copyright (C) 2005-2020 Free Software Foundation, Inc. > +# > +# This file is part of the GNU C Library. > +# > +# The GNU C Library is free software; you can redistribute it and/or > +# modify it under the terms of the GNU Lesser General Public > +# License as published by the Free Software Foundation; either > +# version 2.1 of the License, or (at your option) any later version. > +# > +# The GNU C Library is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > +# Lesser General Public License for more details. > +# > +# You should have received a copy of the GNU Lesser General Public > +# License along with the GNU C Library. If not, see > +# . > + > +ifeq ($(subdir),csu) > +gen-as-const-headers += tcb-offsets.sym > +endif Ok. > diff --git a/sysdeps/arc/preconfigure b/sysdeps/arc/preconfigure > new file mode 100644 > index 000000000000..a79db0239ae6 > --- /dev/null > +++ b/sysdeps/arc/preconfigure > @@ -0,0 +1,14 @@ > +case "$machine" in > +arc*) > + base_machine=arc > + machine=arc > + > + gccfloat=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep __ARC_FPU_| wc -l` > + if test "$gccfloat" != "0"; then > + with_fp_cond=1 > + else > + with_fp_cond=0 > + fi > + ;; > + > +esac Ok. > diff --git a/sysdeps/unix/sysv/linux/arc/Implies b/sysdeps/unix/sysv/linux/arc/Implies > new file mode 100644 > index 000000000000..7f739a0340b6 > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/arc/Implies > @@ -0,0 +1,3 @@ > +arc/nptl > +unix/sysv/linux/generic/wordsize-32 > +unix/sysv/linux/generic Ok. > diff --git a/sysdeps/unix/sysv/linux/arc/Makefile b/sysdeps/unix/sysv/linux/arc/Makefile > new file mode 100644 > index 000000000000..7958625f6d5c > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/arc/Makefile > @@ -0,0 +1,29 @@ > +ifeq ($(subdir),stdlib) > +gen-as-const-headers += ucontext_i.sym > +endif > + > +ifeq ($(subdir),signal) > +sysdep_routines += sigrestorer > +endif > + > +ifeq ($(subdir),misc) > +# MIPS/Tile-style cacheflush routine > +sysdep_headers += sys/cachectl.h > +sysdep_routines += cacheflush > +endif > + > +ifeq ($(subdir),elf) > +ifeq ($(build-shared),yes) > +# This is needed for DSO loading from static binaries. > +sysdep-dl-routines += dl-static > +endif > +endif > + > +abi-variants := ilp32 ilp32_be > + > +ifeq (,$(filter $(default-abi),$(abi-variants))) > +$(error Unknown ABI $(default-abi), must be one of $(abi-variants)) > +endif > + > +abi-ilp32-condition := !defined __BIG_ENDIAN__ > +abi-ilp32_be-condition := defined __BIG_ENDIAN__ Ok with the 'ilp32' naming module described above. > diff --git a/sysdeps/unix/sysv/linux/arc/Versions b/sysdeps/unix/sysv/linux/arc/Versions > new file mode 100644 > index 000000000000..292f1974b02a > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/arc/Versions > @@ -0,0 +1,16 @@ > +ld { > + GLIBC_PRIVATE { > + # used for loading by static libraries > + _dl_var_init; > + } > +} > +libc { > + GLIBC_2.32 { > + _flush_cache; > + cacheflush; > + } > + GLIBC_PRIVATE { > + # A copy of sigaction lives in libpthread, and needs these. > + __default_rt_sa_restorer; > + } > +} Afaik all other ABIs that requires the sa_restores uses a local symbol in libpthread. I don't have a strong preference here. > diff --git a/sysdeps/unix/sysv/linux/arc/configure b/sysdeps/unix/sysv/linux/arc/configure > new file mode 100644 > index 000000000000..56ec14357507 > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/arc/configure > @@ -0,0 +1,4 @@ > +# This file is generated from configure.in by Autoconf. DO NOT EDIT! > + # Local configure fragment for sysdeps/unix/sysv/linux/arc. > + > +arch_minimum_kernel=5.1.0 > diff --git a/sysdeps/unix/sysv/linux/arc/configure.ac b/sysdeps/unix/sysv/linux/arc/configure.ac > new file mode 100644 > index 000000000000..8af5a12cc248 > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/arc/configure.ac > @@ -0,0 +1,4 @@ > +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. > +# Local configure fragment for sysdeps/unix/sysv/linux/arc. > + > +arch_minimum_kernel=5.1.0 OK. > diff --git a/sysdeps/unix/sysv/linux/arc/ldconfig.h b/sysdeps/unix/sysv/linux/arc/ldconfig.h > new file mode 100644 > index 000000000000..4896ec005c8e > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/arc/ldconfig.h > @@ -0,0 +1,27 @@ > +/* ldconfig default paths and libraries. Linux/RISC-V version. > + Copyright (C) 2001-2020 Free Software Foundation, Inc. > + This file is part of the GNU C Library. > + > + The GNU C Library is free software; you can redistribute it and/or > + modify it under the terms of the GNU Lesser General Public > + License as published by the Free Software Foundation; either > + version 2.1 of the License, or (at your option) any later version. > + > + The GNU C Library is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + Lesser General Public License for more details. > + > + You should have received a copy of the GNU Lesser General Public > + License along with the GNU C Library. If not, see > + . */ > + > +#include > + > +#define SYSDEP_KNOWN_INTERPRETER_NAMES \ > + { "/lib/ld-linux-arc.so.2", FLAG_ELF_LIBC6 }, \ > + { "/lib/ld-linux-arceb.so.2", FLAG_ELF_LIBC6 }, > + > +#define SYSDEP_KNOWN_LIBRARY_NAMES \ > + { "libc.so.6", FLAG_ELF_LIBC6 }, \ > + { "libm.so.6", FLAG_ELF_LIBC6 }, Ok. > diff --git a/sysdeps/unix/sysv/linux/arc/shlib-versions b/sysdeps/unix/sysv/linux/arc/shlib-versions > new file mode 100644 > index 000000000000..343c0a04500e > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/arc/shlib-versions > @@ -0,0 +1,7 @@ > +DEFAULT GLIBC_2.32 > + > +%ifdef HAVE_ARC_BE > +ld=ld-linux-arceb.so.2 > +%else > +ld=ld-linux-arc.so.2 > +%endif > Ok. _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc