Skip to content

Commit b71db45

Browse files
committed
Keep constructors with priorities
Fixes GCOV builds with gcc7, which uses this. Signed-off-by: Stewart Smith <[email protected]>
1 parent 8d0f41e commit b71db45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

skiboot.lds.S

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2013-2014 IBM Corp.
1+
/* Copyright 2013-2018 IBM Corp.
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
@@ -86,6 +86,7 @@ SECTIONS
8686
.init : {
8787
__ctors_start = .;
8888
KEEP(*(.ctors))
89+
KEEP(*(SORT(.init_array.*)))
8990
KEEP(*(.init_array))
9091
__ctors_end = .;
9192
}

0 commit comments

Comments
 (0)