Blame SOURCES/gcc12-rh1574936.patch

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