From 27eb1e8bd73d80a2bc5805acbf53e78ba7eae251 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 20 Aug 2021 01:07:15 +0000 Subject: [PATCH] config.mak.dist: add example to turn off default compressed debug sections closes #73 --- config.mak.dist | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config.mak.dist b/config.mak.dist index 181976c..0e4e28c 100644 --- a/config.mak.dist +++ b/config.mak.dist @@ -80,6 +80,17 @@ # GCC_CONFIG += --enable-languages=c,c++ +# Binutils 2.32 and newer (default in mcm since mid-2019) default to emit +# compressed debug info sections, which are a relatively new feature that +# breaks older tooling, such as using so built libraries/executables with +# older binutils or gdb versions. +# This can be turned off in favor of traditional debug sections by +# uncommenting the following line. +# Compressed debug sections can still explicitly be requested by adding +# -Wl,--compress-debug-sections=zlib or -gz=zlib to C/CXXFLAGS. + +# BINUTILS_CONFIG += --enable-compressed-debug-sections=none + # You can keep the local build path out of your toolchain binaries and # target libraries with the following, but then gdb needs to be told # where to look for source files.