Skip to content

Commit

Permalink
gcov: link in ctors* as newer GCC doesn't group them all
Browse files Browse the repository at this point in the history
It seems that newer toolchains get us multiple ctors sections to link in
rather than just one. If we discard them (as we were doing), then we
don't have a working gcov build (and we get the "doesn't look sane"
warning on boot).

So, include ctors* and all is well.

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
stewartsmith committed Nov 9, 2018
1 parent 324365f commit 971a1a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skiboot.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ SECTIONS
. = ALIGN(0x10);
.init : {
__ctors_start = .;
KEEP(*(.ctors))
KEEP(*(.ctors*))
KEEP(*(SORT(.init_array.*)))
KEEP(*(.init_array))
__ctors_end = .;
Expand Down

0 comments on commit 971a1a0

Please sign in to comment.