Blame SOURCES/gcc8-libgcc-hardened.patch

f56e54
--- libgcc/config/t-slibgcc.mp	2018-10-03 16:07:00.336990246 -0400
f56e54
+++ libgcc/config/t-slibgcc	2018-10-03 16:06:26.719946740 -0400
f56e54
@@ -30,9 +30,10 @@ SHLIB_LC = -lc
f56e54
 SHLIB_MAKE_SOLINK = $(LN_S) $(SHLIB_SONAME) $(SHLIB_DIR)/$(SHLIB_SOLINK)
f56e54
 SHLIB_INSTALL_SOLINK = $(LN_S) $(SHLIB_SONAME) \
f56e54
 	$(DESTDIR)$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
f56e54
+SHLIB_EXTRA_LDFLAGS = -Wl,-z,relro  -Wl,-z,now
f56e54
 
f56e54
 SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
f56e54
-	$(SHLIB_LDFLAGS) \
f56e54
+	$(SHLIB_LDFLAGS) $(SHLIB_EXTRA_LDFLAGS) \
f56e54
 	-o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \
f56e54
 	$(SHLIB_OBJS) $(SHLIB_LC) && \
f56e54
 	rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \