[PATCH] binutils, gdb: support zstd compressed debug sections

Simon Marchi simark@simark.ca
Mon Sep 19 10:54:35 GMT 2022


> I am unfamilir with autotools, but I agree that pkg-config is better.  Changed to PKG_CHECK_MODULES
> and pushed the change to
> https://gitlab.com/MaskRay/binutils-gdb/-/commits/zstd

Thanks, I'll take a proper look when you post a v2.

> However, now `make all-gdb` fails to link because gdb/Makefile does not have `ZSTD_LIBS = -lzstd` ...

For GDB, you can copy what we do for debuginfod in gdb/Makefile.in,
which would mean:

ZSTD_CFLAGS = @ZSTD_CFLAGS@
ZSTD_LIBS = @ZSTD_LIBS@

And use $(ZSTD_CFLAGS) and $(ZSTD_LIBS) where appropriate.

Simon



More information about the Binutils mailing list