Blame SOURCES/gcc9-rh1574936.patch

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