From de703b182cac46505b8b003f72d778d6cae0181f Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Wed, 27 Jan 2021 16:14:40 -0800 Subject: [PATCH] Fix amalgamated release objects for older distros We now pass -Wa,--nocompress-debug-sections to GCC so it won't use ELF compression, since that causes "unable to initialize decompress status for section .debug_aranges" when linked with past releases of binutils Please note: this issue only impacts users who download cosmopolitan.a from the website. Building from source isn't impacted, since we vendor GCC 9.2.0 and Binutils 2.32 static binaries in the third_party folder. Thanks @vshymanskyy for reporting this! See #32 --- build/definitions.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/definitions.mk b/build/definitions.mk index 68da4bf7..b715438a 100644 --- a/build/definitions.mk +++ b/build/definitions.mk @@ -171,7 +171,8 @@ DEFAULT_CXXFLAGS = \ DEFAULT_ASFLAGS = \ -W \ -I. \ - --noexecstack + --noexecstack \ + --nocompress-debug-sections DEFAULT_LDFLAGS = \ -static \