Blame SOURCES/gcc8-rh1574936.patch

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