Blame SOURCES/gcc9-rh1574936.patch

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