Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793766627; b=gKkCPCyf289r0umxwyLPqbQj/vBv3lQLfoFdhGDIAANA9XAiSU8/AUa/C0HEaATqZ5cL 5V5y96dWGkXsERy9lPpy9z3X86Q5FY7mr+40oOtJ5StDTqcm64TvGXKVJZ75RSnr/4nEu 0OxaIirr+vnXyQWd+0X350DtMaRs961wbOh7CUt0BEYimn4PjS32Y8tkD+1uKFr9EB/wu 4H32qpSQqwWo9o5WlnpP3AVhu4lWEAO0CAHSTYoKYxl7vlgInfwBOfoD3gdcIqjT9ytZu gPe3nxrHw+tJwC7muofJrKeDZeCuSS/kBnBGcITWDx7KCU1Qs2LlXxK8Dj1nsnJQSkA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793766627; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=h4jb5xa1q8l407p1Mod4RUtxmtTO0FmmjcGLjgwkwiY=; b=Lj0VkVrgiAtkyaWWJy2nXmjUQyY40NLhXERjtlpZvNrYI45enAlDAP3J1O1F2DsNXNlg WaGyPu9PMY7xnCavzGpM1SNCXof1RSi1XsM1afscBDYP+tk/olNeff4VEvkjNU1+9n7MP y/PefpuN1SRV4vmkTJrdw6UVkPnxorBbpIxW/us5VWQY959aRGv4DOKl70+Nkzfr6FpUx IdTNI+9dL2PajEXQGDDWH4g+I0neXyF8I5wx+o71c3qPNmQUvXUOdPfutb6fKd0m8n0P8 WiRpFtwlwj/WOejMmoHHjISEIagzRjJc6NBUaiWt+Z5QXN84q9JeK/KHTQxZg8mn7Sw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=pHVZB5Sm; arc=none smtp.remote-ip=74.125.82.198 Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F969606A33B for ; Wed, 4 Nov 2026 04:30:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0F969606A33B Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=pHVZB5Sm Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-36a223755e4so1036763eec.0 for ; Tue, 03 Nov 2026 20:30:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1793766626; x=1794371426; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=h4jb5xa1q8l407p1Mod4RUtxmtTO0FmmjcGLjgwkwiY=; b=pHVZB5Sm3KMzAWRcG28OSC0xG4KhDva279w0FY5Sm5aS4tVtOIetvUeR4aQO6qMm63 3AYFfDUIXcYkK+98I5H9IBbYM5SNNUe20vZiG4WQ6m3K+/7cjZqmrjPQjv0Ezar9DJFs dlpc22KihrXhls+bw0HGNJZSfMY59L/Y8n1Uf118kXyuzzTALHSC05/2FIfa/CV0uUkU lrPFfBWAE3crGj6fZEsnwjIa4ak4hO2mhy6fb1CByxnYxV9ElCBdQ05G8XmQrzf+sbeN pFAj9t5R9qxPK6fHRbBUGE02laq41gIeqJhULiodhKLiFqKSYrbtWXept5noL1OO3BfG bmmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793766626; x=1794371426; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=h4jb5xa1q8l407p1Mod4RUtxmtTO0FmmjcGLjgwkwiY=; b=Cf8Qr+jOHXHTli4h9Yp83JbS053md7WCczzEMbIElJPpsSoNVjxhxPgoxcCHDhqCIm IbIKdsrTo68y3RbDjAw6tSDJQZVu20v4xwViCnUPZb2MvIX9PF6By3M8nufFmNmESioc H+NxIBXUJ2uB6qpbTYCFq2JbgoXQTSW9tUtp6JgETGi0+OE0EW5DEujkQnD9Q+NSE4X7 1zYXBMNP5mBpeqFwYhX00VomOIdLGB0cYL4ruWdMHKVhg9Hn6kl33dqHg6gp3suV3y8M 3EuAuVxfMaJY1FJqQY9Cu4Q63bZIrMEPvgMP3YQ2EOsfnWCDDv6YFesoc24E/3U5bL6X shyg== X-Forwarded-Encrypted: i=1; AKwUvBwiAagCvuSXOcm1wzukdUz7d8ikh8aqWdUemkrE+QJqC3EvWWGJB0dByry/MXK8ZYSTiiU=@vger.kernel.org X-Gm-Message-State: APuU4Z9RAcjGZ2RP1wP4zN8ZiE6l4fV45e4tFX2PzQfJuti3GtJTqOw1 UAdSpsXZ9BhXE7995qwi9Sh16FR2GDKDph9wo9M9fiqJ4tndUf0OVU9qbc8oePR9XyV/M256W+V RzZfcKa1r+g== X-Received: from dycc2.prod.google.com ([2002:a05:693c:60c2:b0:359:a8c8:38e2]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7301:2a05:b0:36c:b138:651e with SMTP id 5a478bee46e88-36cb1386818mr2042119eec.22.1793766625795; Tue, 03 Nov 2026 20:30:25 -0800 (PST) Date: Tue, 3 Nov 2026 20:30:05 -0800 In-Reply-To: <20261104043006.1199857-1-irogers@google.com> X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261104043006.1199857-1-irogers@google.com> X-Mailer: git-send-email 2.56.0.385.gac671c819a-goog Message-ID: <20261104043006.1199857-4-irogers@google.com> Subject: [PATCH v3 3/4] bpftool: Add explicitly sequenced -lzstd to libbfd feature fallback From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Ian Rogers , Adrian Hunter , Quentin Monnet , Josh Poimboeuf Cc: Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , James Clark , Leo Yan , linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Distributions like Fedora ship a statically compiled binutils libbfd that depends on zstd to decompress sections (e.g. undefined reference to 'ZSTD_decompress'). Add libbfd-liberty-z-zstd to FEATURE_TESTS and FEATURE_DISPLAY in tools/bpf/bpftool/Makefile and append the '-lbfd -ldl -lopcodes -liberty -lz -lzstd' branch to the libbfd fallback chain. Acked-by: Quentin Monnet Signed-off-by: Ian Rogers --- tools/bpf/bpftool/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index b0f7168e7943..1cac4508eb0c 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -125,6 +125,7 @@ FEATURE_TESTS += libcap FEATURE_TESTS += libbfd FEATURE_TESTS += libbfd-liberty FEATURE_TESTS += libbfd-liberty-z +FEATURE_TESTS += libbfd-liberty-z-zstd FEATURE_TESTS += disassembler-four-args FEATURE_TESTS += disassembler-init-styled FEATURE_TESTS += libelf-zstd @@ -135,6 +136,7 @@ FEATURE_DISPLAY += libcap FEATURE_DISPLAY += libbfd FEATURE_DISPLAY += libbfd-liberty FEATURE_DISPLAY += libbfd-liberty-z +FEATURE_DISPLAY += libbfd-liberty-z-zstd endif check_feat := 1 @@ -201,6 +203,8 @@ else LIBS += -lbfd -ldl -lopcodes -liberty else ifeq ($(feature-libbfd-liberty-z),1) LIBS += -lbfd -ldl -lopcodes -liberty -lz + else ifeq ($(feature-libbfd-liberty-z-zstd),1) + LIBS += -lbfd -ldl -lopcodes -liberty -lz -lzstd endif # If one of the above feature combinations is set, we support libbfd -- 2.56.0.385.gac671c819a-goog