From 73bec01575657d98f22aa6dfee85598c11137b8c Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Fri, 31 Jul 2020 10:29:02 -0500 Subject: [PATCH] system/ldscripts: add missing init_array/fini_array for arm kernel Change-Id: I2c7a7bd25401900ee22f6bb953d055e28670776e Reviewed-on: https://review.haiku-os.org/c/haiku/+/3108 Reviewed-by: Alex von Gluck IV Reviewed-by: Adrien Destugues Reviewed-by: Fredrik Holmqvist --- src/system/ldscripts/arm/kernel.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/ldscripts/arm/kernel.ld b/src/system/ldscripts/arm/kernel.ld index cf9e409319..5e9961a116 100644 --- a/src/system/ldscripts/arm/kernel.ld +++ b/src/system/ldscripts/arm/kernel.ld @@ -60,10 +60,10 @@ SECTIONS . = ALIGN(0x4); __ctor_list = .; - .ctors : { *(.ctors) } + .ctors : { *(.init_array) *(.ctors) } __ctor_end = .; __dtor_list = .; - .dtors : { *(.dtors) } + .dtors : { *(.fini_array) *(.dtors) } __dtor_end = .; .got : { *(.got.plt) *(.got) } .dynamic : { *(.dynamic) } :dynamic :data