diff mbox series

[1/2] Keep constructors with priorities

Message ID 20180309020417.1335-1-stewart@linux.vnet.ibm.com
State Accepted
Headers show
Series [1/2] Keep constructors with priorities | expand

Commit Message

Stewart Smith March 9, 2018, 2:04 a.m. UTC
Fixes GCOV builds with gcc7, which uses this.

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 skiboot.lds.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Stewart Smith March 13, 2018, 4:37 a.m. UTC | #1
Stewart Smith <stewart@linux.vnet.ibm.com> writes:
> Fixes GCOV builds with gcc7, which uses this.
>
> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
> ---
>  skiboot.lds.S | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Series merged to master as of 2d75b9439f663e6ece06ef031ca7d2a6a40a09e7.

I still know more about the implementation of gcov than I *ever* wanted
to. I mean, I tried to erase it from my brain with alcohol, but have failed.
diff mbox series

Patch

diff --git a/skiboot.lds.S b/skiboot.lds.S
index 7f71d5cd1b40..a6e71077c684 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 = .;
 	}