File crt-nocompress-debug-sections.patch of Package glibc.14271
Index: glibc-2.26/csu/Makefile
===================================================================
--- glibc-2.26.orig/csu/Makefile
+++ glibc-2.26/csu/Makefile
@@ -87,6 +87,9 @@ include ../Rules
# Make these in the lib pass so they're available in time to link things with.
subdir_lib: $(extra-objs:%=$(objpfx)%)
+$(addprefix $(objpfx),$(crtstuff:=.o)): CFLAGS-.o += -Wa,--nocompress-debug-sections
+$(addprefix $(objpfx),$(crtstuff:=.o)): ASFLAGS-.o += -Wa,--nocompress-debug-sections
+
define link-relocatable
$(CC) -nostdlib -nostartfiles -r -o $@ $^
endef