summaryrefslogtreecommitdiffstats
path: root/skiboot.lds.S
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2018-03-08 15:27:14 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-03-08 15:30:47 +1100
commitb71db454f7031cb493d18294f59fda9f6909c7b0 (patch)
treefd0b7eed4cea90c129b6fb4d2cddf4630d72dc50 /skiboot.lds.S
parent8d0f41e021b3475a411371cf87b81ae4af763eca (diff)
downloadblackbird-skiboot-b71db454f7031cb493d18294f59fda9f6909c7b0.tar.gz
blackbird-skiboot-b71db454f7031cb493d18294f59fda9f6909c7b0.zip
Keep constructors with priorities
Fixes GCOV builds with gcc7, which uses this. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'skiboot.lds.S')
-rw-r--r--skiboot.lds.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/skiboot.lds.S b/skiboot.lds.S
index 7f71d5cd..a6e71077 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 = .;
}
OpenPOWER on IntegriCloud