From patchwork Mon Mar 31 16:48:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 877302 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp1851172wrs; Mon, 31 Mar 2025 09:49:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2lQeDMpqyVhK2BjVY6nN8xJfNYE61t5RxOzMARlgtMUwb78kAGa0DuJ6QQ+cxS0+FRg3cog==@linaro.org X-Google-Smtp-Source: AGHT+IHw6hdmoUNrPmwTr3p+wx49YODNZYlq57fayHj58AR4OG4zqTlQ8bgkbQVUmE5vWd8igcx/ X-Received: by 2002:a05:620a:2995:b0:7c5:4788:a160 with SMTP id af79cd13be357-7c69087dcecmr1273058485a.44.1743439745188; Mon, 31 Mar 2025 09:49:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1743439745; cv=pass; d=google.com; s=arc-20240605; b=HfeEWXMJaDHxTeWN+Lkpdtudayc4aRy8/yvQpj+GZthSYAawDF0FJCSkudoOFmbHVz pyYIw9qCSxOWI3G+vxA9cxHPjZ1H80baPsLE71KB9sIIhf8HGGfx2f+qXznsIYzDWPps +pRrPKdTIi5I/rLkAXiN8kfvRqhExCzCpYZAaFP3k0CcmfSw9XifpV9fh3+TozzwtXxX H5C5hFOQKO8dkutyyfpLYnDQkxth7Nn+YMQFiEb5KyABhJIOjsRsUzfynB6JqMbxOvrF nH4wsIr0l6VCkt55f1cWFCYOhSpSS6a+RNwnrGbLypQxO9uHJilPfbc3Pg5FsSXMeWYg z8RQ== 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:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter:arc-filter:dmarc-filter:delivered-to:dkim-filter; bh=6aAoX/uL1Cy3f/rHPYxua4ia2ARqh13TWJTC9ypGo0A=; fh=VS5BQMo6c3DKFvQaqLz8T9KPMCQeiCUJRozG/y8dgmM=; b=Ox+8RleLAzBY+jkEA+m2d4r7ECWBcSeK58WHjdOQMDlWUC0PIH+kVEV3ZvUCh7mhpm yEhlC2UQB6eQi4NKRrMZQqHvy6he9eNssWzn7/5/kl5+3iMpxWw2qSBnwzbcV8MHTRtW yfZfBigCV1hnlliMOy+AUWpS8zI7UCoEqmbu5h/EpjmnhXHkAG7Giy0qO+Z/jomj785h YJOq561tr4kjSmZlx0tE0IugH+dag7t9hlz5f7blMByFstXUW7Irumha9XwU3mlCS8KF az8qGGQACknt2t73eg7q4dMdJJyD8+Z/NGlqfSLmftp2TBHyxgnjlbi3nJbPNidvX3iB SBQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="SNc/SZRJ"; 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 af79cd13be357-7c5f77dab18si713633985a.596.2025.03.31.09.49.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Mar 2025 09:49:05 -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="SNc/SZRJ"; 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 94644385AC21 for ; Mon, 31 Mar 2025 16:49:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94644385AC21 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=SNc/SZRJ 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 2609B385AC3D for ; Mon, 31 Mar 2025 16:48:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2609B385AC3D 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 2609B385AC3D 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=1743439728; cv=none; b=AU8ufOiyZ4l6LYZZT+pURxUkwSDSpioFgY71wrBOc1ZON168peqoCFGhQCtamv3ik/JbMzyvIIq1WMCORY7VFqGqHSC4LwF3O+INonNPWZR3rcDamDlbJrFiPTXa0X+wxpwviRjB/3dGhwvUvzWODdFVB1xZtPTQC5vg1OKZU3U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1743439728; c=relaxed/simple; bh=du2Hw9MV0G4Cc95um43DF7JP9Re54WrvHiEYpXW/AO4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Lqf3IsJXxK4wNlBeNqgA1ykcD2faEM8nNzz9kf0jCo12sFR/bdjt90gMOlRVcpctUpeYigXugspRUrt2gHCeFYJayL+fQUdJ+3DbkCzW1Rp4/5J2xLgTWuIZBF/Wzl8GYlYlOeWoGkdqluv60GsMLXFYDBNkLp3iMLjdijZZGwc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2609B385AC3D Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-22622ddcc35so9640505ad.2 for ; Mon, 31 Mar 2025 09:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743439727; x=1744044527; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6aAoX/uL1Cy3f/rHPYxua4ia2ARqh13TWJTC9ypGo0A=; b=SNc/SZRJoGZ49Vq+yErltDp+JIfBdMHu3yQdTSOjccse8QEE28W3nJpJrCs1F0trxa 1T0lFkvWC9wD8A/IXGYPlmz57/vS6OVPW77E+Am2X/psGO8UqfZRw2eRB6PUTepAVpJD +quX3afE+tSQyawtFj6VJ746d+EjW3R5nKxDFPg4KRBRyWB9pMuHohTCkY6g+A1QqdeP yi+CUY0VU3JPEdltjBO3dHA38k+5yvBcysGM9DdSeEOPBmvofIpHJDU5h/ahvxbAUXzt R25GRvZ9XWLNcD4Q0XpaKDO1wgh+bPKzOCWh13vMINw61b+TePNss9dtdh4o+gBXyVU7 AM6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743439727; x=1744044527; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6aAoX/uL1Cy3f/rHPYxua4ia2ARqh13TWJTC9ypGo0A=; b=Q/TV7LcmFvwrc3Laa71l7JYsHm5x7Sph9eKCIpo2jzQrnorowS1zcB82RGMcT/A4lD Pp2VNTqwSR94P20rj2td66m53h5T2wNp5o65ijTnTrUetvTGkqz/HfDMKUIX3Pvo7UtR HzadhmKlsBjeGUUG5oC6vhOXgDmziUf6wFvIYmF/b5H4J9bano5Mii3KEkbqB/IgAHch NVaSpja0Vb7+/tt3/LUVyz597w7BXlGKKZopRUpSqyA2u3G+g1+74b5ulxhRn4q1ftJN IeeecShOdcYEPsmmimnryp7CpwDXRRJhxCvd+RV2RavjwhXDl7i+LpnmXdRU0mu05PCZ qn2A== X-Gm-Message-State: AOJu0YzKVyiBJAk/sJewXma/wnO1f0nWtsTPT8FghqKY5e1oJ2YK9FA1 GD1bQcmWcQrvGqeJl2qrswMenl/qbHB+D1yqiQO6IDxi3a4epwaqs/hqXNUP4KmYg9Y2V88neSM u X-Gm-Gg: ASbGnct3B7oA2VWMAnGE8r87YB3aoF6TX70iyYJL1m04PorFazzbsy26aJAUF8gZWSf yIIeFZktiYF0zM9+wR4XpJ/Fw2qaoc43SuRyn2ZFVgnsOlWqNJlAP11YgX2fNZfBYUrVDXQV6bI +VUK+xTg7YcfQX4mhsQf357HBMcnV+Oup8ohkuEM+xD0W32D9NirMaNg/kMCENlwCrWJT5stJUb 8BfhyE+ab7ZNfPOXyjlHd0cAFLEPi7UDbm8MLAmk9cAqi8uB8/Xel3SDxgfbtJBaMHhum9xd54K /QFf66lx3whE2jvyAkETyKWXwrfC/J0nvGf4Ud+mv9mlTueA157UHkcJCGszECvXVqEXNkYI3de ANmaMm8DTypXgeQn4 X-Received: by 2002:a17:902:e94d:b0:223:635d:3e38 with SMTP id d9443c01a7336-2292f95d908mr154330015ad.15.1743439726664; Mon, 31 Mar 2025 09:48:46 -0700 (PDT) Received: from ubuntu-vm.. (200-153-194-92.dsl.telesp.net.br. [200.153.194.92]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2291eee22a2sm71241945ad.81.2025.03.31.09.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Mar 2025 09:48:46 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Yury Khrustalev , John David Anglin Subject: [PATCH] elf: Fix tst-origin build when toolchain defaults to --as-needed Date: Mon, 31 Mar 2025 13:48:32 -0300 Message-ID: <20250331164840.3038874-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 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 From: John David Anglin Checked on aarch64-linux-gnu. Reviewed-by: Florian Weimer --- elf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elf/Makefile b/elf/Makefile index 1282a5bffb..250348c231 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -3453,7 +3453,8 @@ $(objpfx)tst-dlopen-constructor-null-mod2.so: \ CFLAGS-tst-origin.c += $(no-stack-protector) CFLAGS-liborigin-mod.c += $(no-stack-protector) # Link tst-origin with liborigin-mod.so, but without a full path. -LDFLAGS-tst-origin += -Wl,-rpath,\$$ORIGIN -L$(subst :, -L,$(rpath-link)) -lorigin-mod +LDFLAGS-tst-origin += -Wl,-rpath,\$$ORIGIN -L$(subst :, -L,$(rpath-link)) +LDLIBS-tst-origin += -lorigin-mod $(objpfx)tst-origin: +nolink-deps += $(objpfx)liborigin-mod.so $(objpfx)tst-origin: $(objpfx)liborigin-mod.so $(objpfx)tst-origin.out: tst-origin.sh $(objpfx)tst-origin