diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-08 15:27:14 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-08 15:30:47 +1100 |
commit | b71db454f7031cb493d18294f59fda9f6909c7b0 (patch) | |
tree | fd0b7eed4cea90c129b6fb4d2cddf4630d72dc50 /skiboot.lds.S | |
parent | 8d0f41e021b3475a411371cf87b81ae4af763eca (diff) | |
download | skiboot-b71db454f7031cb493d18294f59fda9f6909c7b0.zip skiboot-b71db454f7031cb493d18294f59fda9f6909c7b0.tar.gz skiboot-b71db454f7031cb493d18294f59fda9f6909c7b0.tar.bz2 |
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.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/skiboot.lds.S b/skiboot.lds.S index 7f71d5c..a6e7107 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 = .; } |