Blame SOURCES/gcc12-rh1574936.patch

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