Blame SOURCES/gcc10-rh1574936.patch

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