[Skiboot] [PATCH 1/2] Keep constructors with priorities

Stewart Smith stewart at linux.vnet.ibm.com
Fri Mar 9 13:04:16 AEDT 2018


Fixes GCOV builds with gcc7, which uses this.

Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 skiboot.lds.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/skiboot.lds.S b/skiboot.lds.S
index 7f71d5cd1b40..a6e71077c684 100644
--- a/skiboot.lds.S
+++ b/skiboot.lds.S
@@ -1,4 +1,4 @@
-/* Copyright 2013-2014 IBM Corp.
+/* Copyright 2013-2018 IBM Corp.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -86,6 +86,7 @@ SECTIONS
 	.init : {
 		__ctors_start = .;
 		KEEP(*(.ctors))
+		KEEP(*(SORT(.init_array.*)))
 		KEEP(*(.init_array))
 		__ctors_end = .;
 	}
-- 
2.14.3



More information about the Skiboot mailing list