87 lines
3.1 KiB
Diff
87 lines
3.1 KiB
Diff
|
diff --git a/elf/Makefile b/elf/Makefile
|
||
|
index 41e0f2e8c4..95fd4c73a5 100644
|
||
|
--- a/elf/Makefile
|
||
|
+++ b/elf/Makefile
|
||
|
@@ -177,6 +177,8 @@ CFLAGS-dl-write.os += $(rtld-early-cflags)
|
||
|
CFLAGS-dl-writev.os += $(rtld-early-cflags)
|
||
|
CFLAGS-rtld.os += $(rtld-early-cflags)
|
||
|
|
||
|
+CFLAGS-ldconfig.c += -Wno-use-after-free
|
||
|
+
|
||
|
ifeq ($(unwind-find-fde),yes)
|
||
|
routines += unwind-dw2-fde-glibc
|
||
|
shared-only-routines += unwind-dw2-fde-glibc
|
||
|
diff --git a/intl/Makefile b/intl/Makefile
|
||
|
index 315c75a18f..00e4c363a5 100644
|
||
|
--- a/intl/Makefile
|
||
|
+++ b/intl/Makefile
|
||
|
@@ -128,6 +128,8 @@ $(objpfx)msgs.h: po2test.awk $(objpfx)tst-gettext-de.po
|
||
|
$(make-target-directory)
|
||
|
LC_ALL=C $(AWK) -f $^ > $@
|
||
|
|
||
|
+CFLAGS-localealias.c += -Wno-use-after-free
|
||
|
+
|
||
|
CFLAGS-tst-gettext.c += -DTESTSTRS_H=\"$(objpfx)msgs.h\"
|
||
|
CFLAGS-tst-translit.c += -DOBJPFX=\"$(objpfx)\"
|
||
|
CFLAGS-tst-gettext2.c += -DOBJPFX=\"$(objpfx)\"
|
||
|
diff --git a/io/Makefile b/io/Makefile
|
||
|
index cf265dc9b9..c53cf209ee 100644
|
||
|
--- a/io/Makefile
|
||
|
+++ b/io/Makefile
|
||
|
@@ -123,9 +123,9 @@ CFLAGS-fstatvfs.c += -fexceptions
|
||
|
CFLAGS-fts.c += -Wno-uninitialized $(uses-callbacks) -fexceptions
|
||
|
CFLAGS-fts64.c += -Wno-uninitialized $(uses-callbacks) -fexceptions
|
||
|
CFLAGS-fts64-time64.c += -Wno-uninitialized $(uses-callbacks) -fexceptions
|
||
|
-CFLAGS-ftw.c += $(uses-callbacks) -fexceptions
|
||
|
-CFLAGS-ftw64.c += $(uses-callbacks) -fexceptions
|
||
|
-CFLAGS-ftw64-time64.c += $(uses-callbacks) -fexceptions
|
||
|
+CFLAGS-ftw.c += $(uses-callbacks) -fexceptions -Wno-use-after-free
|
||
|
+CFLAGS-ftw64.c += $(uses-callbacks) -fexceptions -Wno-use-after-free
|
||
|
+CFLAGS-ftw64-time64.c += $(uses-callbacks) -fexceptions -Wno-use-after-free
|
||
|
CFLAGS-posix_fallocate.c += -fexceptions
|
||
|
CFLAGS-posix_fallocate64.c += -fexceptions
|
||
|
CFLAGS-fallocate.c += -fexceptions
|
||
|
diff --git a/malloc/Makefile b/malloc/Makefile
|
||
|
index 2329cf718a..677773b86b 100644
|
||
|
--- a/malloc/Makefile
|
||
|
+++ b/malloc/Makefile
|
||
|
@@ -259,6 +259,13 @@ include ../Rules
|
||
|
CFLAGS-mcheck-init.c += $(PIC-ccflag)
|
||
|
CFLAGS-obstack.c += $(uses-callbacks)
|
||
|
|
||
|
+CFLAGS-tst-realloc.c += -Wno-use-after-free
|
||
|
+CFLAGS-tst-obstack.c += -Wno-use-after-free
|
||
|
+CFLAGS-tst-malloc-check.c += -Wno-use-after-free
|
||
|
+CFLAGS-tst-malloc-backtrace.c += -Wno-use-after-free
|
||
|
+CFLAGS-tst-malloc-too-large.c += -Wno-use-after-free
|
||
|
+CFLAGS-tst-mallocalign1.c += -Wno-use-after-free
|
||
|
+
|
||
|
$(objpfx)libmcheck.a: $(objpfx)mcheck-init.o
|
||
|
-rm -f $@
|
||
|
$(patsubst %/,cd % &&,$(objpfx)) \
|
||
|
diff --git a/stdlib/Makefile b/stdlib/Makefile
|
||
|
index 8236741984..dbacf88218 100644
|
||
|
--- a/stdlib/Makefile
|
||
|
+++ b/stdlib/Makefile
|
||
|
@@ -196,6 +196,7 @@ extra-test-objs += tst-putenvmod.os
|
||
|
|
||
|
generated += isomac isomac.out tst-putenvmod.so
|
||
|
|
||
|
+CFLAGS-setenv.c += -Wno-use-after-free
|
||
|
CFLAGS-bsearch.c += $(uses-callbacks)
|
||
|
CFLAGS-msort.c += $(uses-callbacks)
|
||
|
CFLAGS-qsort.c += $(uses-callbacks)
|
||
|
diff --git a/support/Makefile b/support/Makefile
|
||
|
index 6dc6c9d49a..7dafcffb71 100644
|
||
|
--- a/support/Makefile
|
||
|
+++ b/support/Makefile
|
||
|
@@ -234,6 +234,8 @@ CFLAGS-support_paths.c = \
|
||
|
CFLAGS-timespec.c += -fexcess-precision=standard
|
||
|
CFLAGS-timespec-time64.c += -fexcess-precision=standard
|
||
|
|
||
|
+CFLAGS-tst-support-open-dev-null-range.c += -Wno-use-after-free
|
||
|
+
|
||
|
ifeq (,$(CXX))
|
||
|
LINKS_DSO_PROGRAM = links-dso-program-c
|
||
|
else
|