[Skiboot] [PATCH] gcov: link in ctors* as newer GCC doesn't group them all
Stewart Smith
stewart at linux.ibm.com
Thu Nov 8 17:28:14 AEDT 2018
It seems that newer toolchains get us multiple ctors sections to link in
rather than just one. If we discard them (as we were doing), then we
don't have a working gcov build (and we get the "doesn't look sane"
warning on boot).
So, include ctors* and all is well.
Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
skiboot.lds.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/skiboot.lds.S b/skiboot.lds.S
index 8fae20845445..8d09b40e601c 100644
--- a/skiboot.lds.S
+++ b/skiboot.lds.S
@@ -69,7 +69,7 @@ SECTIONS
. = ALIGN(0x10);
.init : {
__ctors_start = .;
- KEEP(*(.ctors))
+ KEEP(*(.ctors*))
KEEP(*(SORT(.init_array.*)))
KEEP(*(.init_array))
__ctors_end = .;
--
2.19.1
More information about the Skiboot
mailing list