Blame SOURCES/gcc11-rh1574936.patch

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