xtensa: enable stack protector
[sfrench/cifs-2.6.git] / arch / xtensa / boot / lib / Makefile
index d2a7f48564a470d5af6352da21a3affac9566180..2fe182915b63e0e719b3a9dcdc98a7099832d88c 100644 (file)
@@ -15,6 +15,10 @@ CFLAGS_REMOVE_inftrees.o = -pg
 CFLAGS_REMOVE_inffast.o = -pg
 endif
 
+CFLAGS_REMOVE_inflate.o += -fstack-protector -fstack-protector-strong
+CFLAGS_REMOVE_zmem.o += -fstack-protector -fstack-protector-strong
+CFLAGS_REMOVE_inftrees.o += -fstack-protector -fstack-protector-strong
+CFLAGS_REMOVE_inffast.o += -fstack-protector -fstack-protector-strong
 
 quiet_cmd_copy_zlib = COPY    $@
       cmd_copy_zlib = cat $< > $@