Blame SOURCES/gcc10-rh1574936.patch

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