From 797c04d19f635ceea71b9f53f239ba1b757f1190 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 31 Jan 2020 04:57:28 -0800 Subject: [PATCH] kern .fini array: one weird trick --- mesosphere/kernel/kernel.ld | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mesosphere/kernel/kernel.ld b/mesosphere/kernel/kernel.ld index 91d0d8c9f..a42eb1b33 100644 --- a/mesosphere/kernel/kernel.ld +++ b/mesosphere/kernel/kernel.ld @@ -92,14 +92,6 @@ SECTIONS PROVIDE (__init_array_end = .); } :rodata - .fini_array ALIGN(8) : - { - PROVIDE (__fini_array_start = .); - KEEP (*(.fini_array)) - KEEP (*(SORT(.fini_array.*))) - PROVIDE (__fini_array_end = .); - } :rodata - __got_start__ = .; .got : { *(.got) *(.igot) } :rodata @@ -174,7 +166,7 @@ SECTIONS ================== */ /* Discard sections that difficult post-processing */ - /DISCARD/ : { *(.group .comment .note .interp) } + /DISCARD/ : { *(.group .comment .note .interp .fini_array .fini_array.*) } /* Stabs debugging sections. */ .stab 0 : { *(.stab) }