genode.ld: preserve ctors/dtors sections for analysis

Issue #3509
This commit is contained in:
Christian Helmuth 2023-06-29 15:50:16 +02:00 committed by Norman Feske
parent 317c5429d2
commit f6dcc3ca74

View File

@ -33,14 +33,18 @@ SECTIONS
*(.text .text.* .gnu.linkonce.t.*)
*(.fini)
*(.rodata .rodata.* .gnu.linkonce.r.*)
} : ro = 0x0
. = ALIGN(0x08);
. = ALIGN(0x08);
.ctors : {
_ctors_start = .;
KEEP (*(.ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.init_array)) /* list of constructors specific for ARM eabi */
_ctors_end = .;
} : ro = 0x0
.dtors : {
_dtors_start = .;
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))