Skip to content

Commit 27eb1e8

Browse files
committed
config.mak.dist: add example to turn off default compressed debug sections
closes richfelker#73
1 parent 3398364 commit 27eb1e8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

config.mak.dist

+11
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@
8080

8181
# GCC_CONFIG += --enable-languages=c,c++
8282

83+
# Binutils 2.32 and newer (default in mcm since mid-2019) default to emit
84+
# compressed debug info sections, which are a relatively new feature that
85+
# breaks older tooling, such as using so built libraries/executables with
86+
# older binutils or gdb versions.
87+
# This can be turned off in favor of traditional debug sections by
88+
# uncommenting the following line.
89+
# Compressed debug sections can still explicitly be requested by adding
90+
# -Wl,--compress-debug-sections=zlib or -gz=zlib to C/CXXFLAGS.
91+
92+
# BINUTILS_CONFIG += --enable-compressed-debug-sections=none
93+
8394
# You can keep the local build path out of your toolchain binaries and
8495
# target libraries with the following, but then gdb needs to be told
8596
# where to look for source files.

0 commit comments

Comments
 (0)