Skip to content

Commit

Permalink
Keep constructors with priorities
Browse files Browse the repository at this point in the history
Fixes GCOV builds with gcc7, which uses this.

Signed-off-by: Stewart Smith <[email protected]>
  • Loading branch information
stewartsmith committed Mar 8, 2018
1 parent 8d0f41e commit b71db45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skiboot.lds.S
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -86,6 +86,7 @@ SECTIONS
.init : {
__ctors_start = .;
KEEP(*(.ctors))
KEEP(*(SORT(.init_array.*)))
KEEP(*(.init_array))
__ctors_end = .;
}
Expand Down

0 comments on commit b71db45

Please sign in to comment.