Blame SOURCES/0227-buildsys-don-t-garbage-collect-sections-while-linkin.patch

ddca0b
From 9f259b46b760b2aa08ac1fe76fe61df514e2768f Mon Sep 17 00:00:00 2001
ddca0b
From: Michal Sekletar <msekleta@redhat.com>
ddca0b
Date: Tue, 3 Sep 2019 10:05:42 +0200
ddca0b
Subject: [PATCH] buildsys: don't garbage collect sections while linking
ddca0b
ddca0b
gc-sections is actually very aggressive and garbage collects ELF
ddca0b
sections used by annobin gcc plugin and annocheck then reports gaps in
ddca0b
coverage. Let's drop that linker flag.
ddca0b
ddca0b
RHEL-only
ddca0b
ddca0b
Resolves: #1748258
ddca0b
---
ddca0b
 meson.build | 2 --
ddca0b
 1 file changed, 2 deletions(-)
ddca0b
ddca0b
diff --git a/meson.build b/meson.build
ddca0b
index 04b461dcd4..613a5133b6 100644
ddca0b
--- a/meson.build
ddca0b
+++ b/meson.build
ddca0b
@@ -357,8 +357,6 @@ if get_option('buildtype') != 'debug'
ddca0b
                 '-ffunction-sections',
ddca0b
                 '-fdata-sections',
ddca0b
         ]
ddca0b
-
ddca0b
-        possible_link_flags += '-Wl,--gc-sections'
ddca0b
 endif
ddca0b
 
ddca0b
 add_project_arguments(cc.get_supported_arguments(possible_cc_flags), language : 'c')