From patchwork Tue Mar 12 16:21:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 779763 Delivered-To: patch@linaro.org Received: by 2002:a5d:604e:0:b0:33e:7753:30bd with SMTP id j14csp2108801wrt; Tue, 12 Mar 2024 09:22:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyADWT4MH/Zo+zq4aayMjWELtH2IQEAfWYlBcll6QyDMs4UjjXGLsEBsggPadK5+2onxgkgrlSi/UDbgN+O5gf X-Google-Smtp-Source: AGHT+IFRrgmGIFHR3eANx0l1dTNNu/QBGEdI1N+9dFxIhwCYfqyLLqfSElQMeaAKCUycjDllh2Qq X-Received: by 2002:a05:6214:9c2:b0:68f:709d:a47f with SMTP id dp2-20020a05621409c200b0068f709da47fmr10683940qvb.47.1710260549898; Tue, 12 Mar 2024 09:22:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710260549; cv=pass; d=google.com; s=arc-20160816; b=iFpozWE6GhDhAOnDjT97BOtEiYM/S3vaqaUY2VA388ELfjnkUnEfhM0Batod/eWJaX oKs+R5IBW6SYg/Pd6Gw/8yiA0ZbHvUL0HwiA8bzQi6269xXDUfKsrqtB6qeoMXcpm5o8 WsX8ZXzOv6wM8WmY+yPaA9VirfJxuZA0JHScoy8wiKrITTcDLO53oprKsoFpkVer5Dsv tITLJ8+Cwsx3XE4cCCGQthgwk9FGKPN0bEUGNyC16xjCcwBWgsM0ImyitXN8xFYEkML4 yQsJtHcC6HUduNOFJW2jOMtDlwR98GXrJZEspO24qtNuLJixAKK4OwxKRwEKPuHNMqBJ McGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=IXuZbGci6araf1psoT7pszenLYLi2fGoR+v1/z539yo=; fh=k4A9fGM2KUtA3m3HgvE6TF6MwPw8Oc7La+zAHJuZSnk=; b=T9p2GA6CmXJKwo+ifIDLVn0IB3jzig68K0TEm6vPQZeihtR3JAoawOSIkch0iagO+e dQKhJxRbyAWQlcgaXGWEmz0IQEZ6o4QoZ2ic+zxBN1ragfbq1unSZVNZmILGLJn9E85F e4+7nJcFuzJei+k+7/AyWBvuxgeOmMHQt4F82bKPH6rrgdOx8ViavVCD5Nbf4vF6i4N3 SFmLELW3KJXRN9EExHyF5jvIBZ251jiNpvg6bVBUSUSJ9Wj1VGdO1BAk2OGN9lgjoKG9 C4v/4ZR/hMDEttz6oXTE6Pdj50y4OyNJOF+u51GlgVJTzeu0tFAsFN3h2VWEfct+yTxR 76Vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fwUq1kFp; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id p17-20020a05620a113100b007883ff354c0si7672999qkk.84.2024.03.12.09.22.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 09:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fwUq1kFp; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 853BB3857B9B for ; Tue, 12 Mar 2024 16:22:29 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id CB4BE385841E for ; Tue, 12 Mar 2024 16:21:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CB4BE385841E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CB4BE385841E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::636 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710260490; cv=none; b=HrtChvJ0vmBJbLrbM+IJyCio//mjmKEmIKfMEw70pM2GYO+2gW2XBCsB75cADVWQDlcUE4QXFhaqRMwgNWz0gs239sO+0ypbFNzq8sU63ONBPg1D5CYO8TdtSiLk2t2og9OvaV+5M+LF0dAQ7zzORG8SJyviVkSnrUTmD35chxg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710260490; c=relaxed/simple; bh=7arUqFkaTo+/W3oRPhJ9Onmd8semfqBSFOBDQsPpI2g=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=xbOBvN/h1YHm+5rYcM6csMeB+zHQ1ct9qgDGHhXGOWOZJsjtpWg2ZpJ5000qXBBzpk6jcTyniLeNasE+0hUV1EOhLm0CvI1AhTARykW5a1nfH3Yj8nJSPi6C9R96TvLyDNtzLk+09ji9dw8z/AfWewF64D5R90yquy2Gf0ZR0e4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1dd68d4cff1so31672795ad.2 for ; Tue, 12 Mar 2024 09:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710260487; x=1710865287; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IXuZbGci6araf1psoT7pszenLYLi2fGoR+v1/z539yo=; b=fwUq1kFpEXlk/C7SymJqmuV76Yq4hXDL2eurhknsdU7KKR7nkELdlkW6BxohpPg8dT z7kgHhyF/iQLXP5HaNAFhsemMX4D51zzDALOvDpQBBXKRwzJyCRayyXiFKEi1XH3J24t 1Tk5KjFziMRIpUdPY+Gm7uQOn5ORtXFw9sqRTUb/wNPbKiib9HSal8oeJChGR1sBP9Fj MFsJ7aRYR7nBWxM/VsV/kR6WCfkGspJzvw150/EAAN0F6DR9iCUo9tvel/N+4Vo8IZnB D3CGvKon8QZSBOhUK+OwAQDO/RQnYv6qIRer6m81sP5s2BKRb1+16ZHcKqk5wfg/W0vN OOiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710260487; x=1710865287; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IXuZbGci6araf1psoT7pszenLYLi2fGoR+v1/z539yo=; b=WoJ58Cjru+iGHS4oJqp3wm2BWbwBWY8IJqTCJcO6njtGgnC6xeL0F6gVXbI1KiaoRP Ts+GuOobSt5u+VSOvGcX6iiv7nRmc01eFRjmkKxVzxFAyHHXOXWrLI6Akcxadums2rMg LV6/JGSCmcTne9hzthNq05iBZmUB4uPCLkcsc7vixV7N8ao0ly0eh7PFTitY2EfqEwAr NcbWZTMMa5p+sm6aHeG7laYUIdj8fchafjBEM/PdJHj8pmYUyekqStKCUq+dvKQtZfCT Ggi1yiB//WYx7abFBrrjFdMrR1rK9qXZ+3b847ddWF3KzhfbheZGoQRih6W3bD1TyMdx QI/w== X-Gm-Message-State: AOJu0YyiWw04+5WMQn6Q2teOqJT/KTDGMK+57lIai1Hvk67qkEARcgAM d+Ai1JSbGaB/U7alIHNjrAqDzc9QQ+sTsaJbZaneKedVB43wH4rKxJPaoSZEn11lIg9BLDErh2o T X-Received: by 2002:a17:902:bc8b:b0:1dc:2f30:e0dc with SMTP id bb11-20020a170902bc8b00b001dc2f30e0dcmr7452888plb.36.1710260487095; Tue, 12 Mar 2024 09:21:27 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:8dfd:281a:8caa:77d5:74db]) by smtp.gmail.com with ESMTPSA id o13-20020a170903008d00b001dbcf653017sm6913990pld.289.2024.03.12.09.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 09:21:26 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Szabolcs Nagy , "H . J . Lu" , Arjun Shankar Subject: [PATCH v2 1/3] Ignore undefined symbols for -mtls-dialect=gnu2 Date: Tue, 12 Mar 2024 13:21:18 -0300 Message-Id: <20240312162120.1360522-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240312162120.1360522-1-adhemerval.zanella@linaro.org> References: <20240312162120.1360522-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org So it does not fail for arm config that defaults to -mtp=soft (which issues a call to __aeabi_read_tp). Reviewed-by: H.J. Lu --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 59ff1e415d..117b48a421 100755 --- a/configure +++ b/configure @@ -7020,7 +7020,7 @@ void foo (void) } EOF if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles - conftest.c -o conftest 1>&5' + -shared conftest.c -o conftest 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? diff --git a/configure.ac b/configure.ac index 65799e5685..19b88a47a5 100644 --- a/configure.ac +++ b/configure.ac @@ -1297,7 +1297,7 @@ void foo (void) } EOF if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles - conftest.c -o conftest 1>&AS_MESSAGE_LOG_FD]) + -shared conftest.c -o conftest 1>&AS_MESSAGE_LOG_FD]) then libc_cv_mtls_dialect_gnu2=yes else