Blame SOURCES/gcc9-rh1574936.patch

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