From: Jan Kiszka <[email protected]>

This is required to reliably get the desired positions. Practically, we
had no issues so far.

Signed-off-by: Jan Kiszka <[email protected]>
---
 hypervisor/hypervisor.lds.S | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/hypervisor/hypervisor.lds.S b/hypervisor/hypervisor.lds.S
index 0c695e475..ea1abd330 100644
--- a/hypervisor/hypervisor.lds.S
+++ b/hypervisor/hypervisor.lds.S
@@ -31,9 +31,11 @@ SECTIONS
        .data           : { *(.data) }
 
        . = ALIGN(8);
-       __init_array_start = .;
-       .init_array     : { *(SORT(.init_array.*)) *(.init_array) }
-       __init_array_end = .;
+       .init_array     : {
+               __init_array_start = .;
+               *(SORT(.init_array.*)) *(.init_array)
+               __init_array_end = .;
+       }
 
        ARCH_SECTIONS
 
-- 
2.13.6

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to