Blame SOURCES/gcc9-rh1574936.patch

d0de29
crt files and statically linked libgcc objects cause false positives
d0de29
in annobin coverage, so we add the assembler flag to generate notes
d0de29
for them.
d0de29
d0de29
The patch also adds notes to libgcc_s.so, but this is harmless because
d0de29
these notes only confer that there is no other annobin markup.
d0de29
d0de29
2018-07-25  Florian Weimer  <fweimer@redhat.com>
d0de29
d0de29
	* Makefile.in (LIBGCC2_CFLAGS, CRTSTUFF_CFLAGS): Add
d0de29
	-Wa,--generate-missing-build-notes=yes.
d0de29
d0de29
--- libgcc/Makefile.in	2018-01-13 13:05:41.000000000 +0100
d0de29
+++ libgcc/Makefile.in	2018-07-25 13:15:02.036226940 +0200
d0de29
@@ -244,6 +244,7 @@
d0de29
 LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \
d0de29
 		 $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \
d0de29
 		 -fbuilding-libgcc -fno-stack-protector \
d0de29
+		 -Wa,--generate-missing-build-notes=yes \
d0de29
 		 $(INHIBIT_LIBC_CFLAGS)
d0de29
 
d0de29
 # Additional options to use when compiling libgcc2.a.
d0de29
@@ -297,6 +298,7 @@
d0de29
   $(NO_PIE_CFLAGS) -finhibit-size-directive -fno-inline -fno-exceptions \
d0de29
   -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \
d0de29
   -fbuilding-libgcc -fno-stack-protector $(FORCE_EXPLICIT_EH_REGISTRY) \
d0de29
+  -Wa,--generate-missing-build-notes=yes \
d0de29
   $(INHIBIT_LIBC_CFLAGS)
d0de29
 
d0de29
 # Extra flags to use when compiling crt{begin,end}.o.
d0de29