Blame SOURCES/rhel8_build.patch

de145c
--- crash-gcore-command-1.3.1/gcore.mk.orig
de145c
+++ crash-gcore-command-1.3.1/gcore.mk
de145c
@@ -102,7 +102,7 @@ gcore.so: gcore.c $(INCDIR)/defs.h
de145c
 		echo "gcore: architecture not supported"; \
de145c
 	else \
de145c
 		make -f gcore.mk $(GCORE_OFILES) && \
de145c
-		gcc $(RPM_OPT_FLAGS) $(CFLAGS) $(TARGET_CFLAGS) $(COMMON_CFLAGS) $(ARCH_CFLAGS) -nostartfiles -shared -rdynamic $(GCORE_OFILES) -o $@ $< ; \
de145c
+		gcc $(RPM_OPT_FLAGS) $(CFLAGS) $(TARGET_CFLAGS) $(COMMON_CFLAGS) $(ARCH_CFLAGS) -nostartfiles -shared -rdynamic $(GCORE_OFILES) -Wl,-z,now -o $@ $< ; \
de145c
 	fi;
de145c
 
de145c
 %.o: %.c $(INCDIR)/defs.h