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