From: Ladislav Michl <oss-lists@triops.cz>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] ptxd_install_compression_format: handle no debug compression
Date: Tue, 9 Dec 2025 23:52:56 +0100 [thread overview]
Message-ID: <aTioSNh-JgOsWGCB@lenoch> (raw)
From: Ladislav Michl <ladis@triops.cz>
Some toolchains do not compress debug sections causing later objcopy
failure such as:
aarch64-linux-gnu-objcopy: unrecognized --compress-debug-sections type `'
Signed-off-by: Ladislav Michl <ladis@triops.cz>
---
scripts/lib/ptxd_make_xpkg_pkg.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index 6cac52e88..ece734450 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -390,7 +390,10 @@ ptxd_install_compression_format() {
libc="$(ptxd_cross_cc -print-file-name=libc.so.6 2> /dev/null)"
if [ -f "${libc}" ]; then
- comp="=$($(ptxd_get_ptxconf PTXCONF_COMPILER_PREFIX)readelf -t "${libc}" | sed -n -e '/COMPRESSED/{N;s/.*\(ZLIB\|ZSTD\).*/\1/p;q}' | tr '[:upper:]' '[:lower:]')"
+ comp="$($(ptxd_get_ptxconf PTXCONF_COMPILER_PREFIX)readelf -t "${libc}" | sed -n -e '/COMPRESSED/{N;s/.*\(ZLIB\|ZSTD\).*/\1/p;q}' | tr '[:upper:]' '[:lower:]')"
+ if [ -n "${comp}" ]; then
+ comp="=${comp}"
+ fi
fi
export ptxd_install_file_objcopy_args="--only-keep-debug --compress-debug-sections${comp}"
}
--
2.47.3
reply other threads:[~2025-12-09 22:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aTioSNh-JgOsWGCB@lenoch \
--to=oss-lists@triops.cz \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox