From patchwork Tue Dec 31 18:26:13 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: 854391 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp7049979wrq; Tue, 31 Dec 2024 10:31:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWwlsa7wXYeligkIfMzVLJRffsgG7LZqlLjJ4itFiJRAQFWq1NFfdBa1nAFAnGVUVT8bc1EDw==@linaro.org X-Google-Smtp-Source: AGHT+IHic2Ra6addFPJS7xGSwscAlgrw4rTkvt3pF7E9+BMT/OnHIJVimH59Yi+hJAuBcQGZZSiK X-Received: by 2002:a05:6102:6e88:b0:4b2:cc94:1877 with SMTP id ada2fe7eead31-4b2cc941e10mr27129614137.13.1735669897654; Tue, 31 Dec 2024 10:31:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1735669897; cv=pass; d=google.com; s=arc-20240605; b=KZ7bQivISuAXzCbl/BzevNmvLI0r6fwBH8jQPkmoGFMBlcBRoOy7LgsJn03YWJ8bkt /7vyJUuERU3AiodRgwgVwKJrBAhYEuK32DRwwjni9MliaIXR8lWuKcUP7zPb6DsTcHAJ a1PRmhptK5/ZielERY3n59PIW9PWzycbu6jY/aslRv3FS6S25qn/EFnN8lI9mrsNY2vC EWWZmrShzSFfYWf1e0xJS9uPwrWsfdybIFWH01TouaC/jZtW9i6d8yU8/qCsuE89gaoq AZNKNXyN3Cm5VOkrbgcPfxV+Bl9knD+P8bfuZZbLa42gXdSc8krwwGG5F9ZpmtYJTUQO ISQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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 :dkim-filter; bh=DEvGX96DqG3KBM5zGoGDfzfR3wUcBVN+ImIzTJKh26k=; fh=d7KdQ+eBG5Owb97PZQUBRjccSsV/hB6hMlyGG6W37vA=; b=OH3i4/KyAaoRNrOxqL/1TuSF/dfu/73pediA1zXpAiJ6yejxQ7rwrKIsf8GSqLHihr 3R0AV3ew7BQupTUMD6rofrVaGaD9DQ5TqlIi9uhE12AZA53G8RARfwufJiQoDNBhdRln U4RXFs2K+C7IPzyFE8e+RccHDKLzn248CAt/rNuho1xZLyHWmOjp0X7WTKU1D2Alx63U 8uiTfHTcV73eLWIqaAXq7tCBRLWLIbaImJnDEJis4P5v5W/jXrAffBoToxcfxZiMKt3a L8l6fQi7AwxyK3ak+M5ZXE3HJZ1HAx3A5gdKYaLEC6JD90DMvtw50a2p9pc1y0OHXRMl igxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dhNyvsLS; 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 ada2fe7eead31-4b2bfb1d890si8261678137.251.2024.12.31.10.31.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2024 10:31:37 -0800 (PST) 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=dhNyvsLS; 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 3C7C83858D1E for ; Tue, 31 Dec 2024 18:31:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C7C83858D1E Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=dhNyvsLS X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id ADED33858C48 for ; Tue, 31 Dec 2024 18:27:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ADED33858C48 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 ADED33858C48 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::635 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735669628; cv=none; b=le6rQa2og+A+RlO9hvAh8JavE5jMyK07Jh1pecMmYieUbjyQAq3Fc93Q6z6oFB0eq8jU/dwClcmxtWIQoDMGGQMAi1swWSP6gXYGG8BJu8ff1LtngNeI1iT12wppJBbf2JcwPFuuM0rLQyOExgDFwoYZvym9PAyK5H995lr5xIg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735669628; c=relaxed/simple; bh=IYo3plGgz6I8IlTcPBOtcsC2nSujOGNxxOLiIyrOfRw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ZaMTN+ptiYwfVWJRdDY9AZQJArpJiRQvwoN8jxwwrvJ45tEAqJkCt3aEvFIiyYabxWyAltLC0tEoQudhT0pGmn1UxUH2MwsWyu6gkch9qgf759NYER0xyODMfMuhJ6da1TIy15ZyGC9WD1Ba0weTaum7knX5JOCxUYVb3QYPNJg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-21670dce0a7so45049525ad.1 for ; Tue, 31 Dec 2024 10:27:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735669627; x=1736274427; 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=DEvGX96DqG3KBM5zGoGDfzfR3wUcBVN+ImIzTJKh26k=; b=dhNyvsLSgjcRIPKj3SNL1nQ+gwdBKvSNlSEOjKON8uYbXvJLwJjrAAG5szXEEb3ki/ VnMt0nswxNwVEl6hdO0tN7NKFVClIf4tfo1ymgx9Hk5Lim91NhbYOS4aali6+JGHXNKS rTZuUH28Iivy4N+pQItj1D/cU1pp810Ya+38rvbsSW96laTM2KBR9WWL8HLVgH2P2iMZ j87jh7MuhzPI/MqazAr935g/O2PEQvomSHMD2NLqxZU9djTkNVeVlIMBTx7Svh5xNoKE 2Us+Ro4ztwSwzUtE9cSru/D5nFDK35+jlq8nSRBVvW/nnNWGY+x6Ksn2Ak0RTA7EbKNW tT7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735669627; x=1736274427; 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=DEvGX96DqG3KBM5zGoGDfzfR3wUcBVN+ImIzTJKh26k=; b=wsh/fNNYpLf519iC7uQartP6FHiJvPfy9wVGCA9Bi7fkLCCbOkd2IXtdrvEdWc1Ao6 72C732TiloDsxFPcWGPJT9Etrj0KR8vUDId8HKNQys9f/Ly5dW5cJ04F//JnExygj14/ MCEDAAQgVh1XmeqDkDHx/jWbKojy13pk9QfbHPB5Tk3mWEiTuuhuNjTkNIkSm/56kK6R 3RDzRM7PxaGfAkRSaJPPHetORJ7xhP0GTnJqgnJCqkYws7gb4V9rEvNfdTwM/X2qp8IT ORYmHaSYkViuTd4bCHWIyReHHzhfP1g0yYbWYgPvhciA+PLalm4GrvhteLU1iEOGj/e/ CvJA== X-Gm-Message-State: AOJu0Yztr6IPwnizfl3tVPQ/JcCg1OcpbeDOGN8SsuJvrcg6i5SrDfDl LR/RqCQNznQsnVzQDg1t9FXDk/frU+KwKJ2f297u7Yvfsz2evSevV6C96LbxDb2w1MgMF9JV4Ub 2 X-Gm-Gg: ASbGncsjc93OzWmBSgjmw5C/6+yoZoBiw0PEI175PNRpyJyyWG0fG+l2y/tqo7zEtQ8 qqXjA85ruqYFGEOKWLS+aIRHExH1U0tB6ydxGzWuXJJfMLjdlL2EqYBoj1ABz5UMNKzNsLCQK+a krvAVs5efbB3t1kaJgftwUAC1t/SPLL7rtnppqfDOIOew4ISMY927MbniJm6+656Se9kG9L+hMv froqtpxBTWDkUaXOltIm2q+BLRKenEyWBzzLmU9ZrGniTNgJfkhsotQtD+xXeLHD/bCgMUVMHYM t6jpgFbZnr60mFnxWn+mtepnOwiT X-Received: by 2002:a17:902:ef12:b0:216:52a5:dd41 with SMTP id d9443c01a7336-219e6ec13bcmr631696635ad.31.1735669627032; Tue, 31 Dec 2024 10:27:07 -0800 (PST) Received: from ubuntu-vm.. (201-92-184-234.dsl.telesp.net.br. [201.92.184.234]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc9f5046sm198693105ad.179.2024.12.31.10.27.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2024 10:27:06 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Sam James , "H . J . Lu" Subject: [PATCH 7/7] libio: Disable stack protector for tst-fopen-compat with clang Date: Tue, 31 Dec 2024 15:26:13 -0300 Message-ID: <20241231182649.1811734-8-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241231182649.1811734-1-adhemerval.zanella@linaro.org> References: <20241231182649.1811734-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 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 For aarch64, even with -fno-pie clang 18.1.3 seems to generate non valid relocations: tst-fopen-compat.o(.text+0xc): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `__stack_chk_guard@@GLIBC_2.17' Disable stack protection in this case. --- libio/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libio/Makefile b/libio/Makefile index 3b5adff74d..98f626a4c8 100644 --- a/libio/Makefile +++ b/libio/Makefile @@ -313,6 +313,9 @@ tst-fopen-compat-ARGS = tst-fopen-compat.c # Disable PIE to trigger copy relocation. CFLAGS-tst-fopen-compat.c += -fno-pie tst-fopen-compat-no-pie = yes +ifeq ($(have-test-clang),yes) +CFLAGS-tst-fopen-compat.c += $(no-stack-protector) +endif endif shared-only-routines = oldiofopen oldiofdopen oldiofclose oldfileops \