From 431c99465c94c4e798463d02fa434014e8c2ae2d Mon Sep 17 00:00:00 2001 From: fincs Date: Mon, 1 Nov 2021 01:34:06 +0100 Subject: [PATCH] switch.ld: Merge .crt0 into .text --- nx/switch.ld | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/nx/switch.ld b/nx/switch.ld index 48bf24b9..eb781a35 100644 --- a/nx/switch.ld +++ b/nx/switch.ld @@ -16,9 +16,14 @@ SECTIONS . = __start__; __code_start = . ; - .crt0 : + .text : { KEEP (*(.crt0)) + *(.text.unlikely .text.*_unlikely .text.unlikely.*) + *(.text.exit .text.exit.*) + *(.text.startup .text.startup.*) + *(.text.hot .text.hot.*) + *(.text .stub .text.* .gnu.linkonce.t.*) . = ALIGN(8); } :code @@ -35,16 +40,6 @@ SECTIONS . = ALIGN(8); } :code - .text : - { - *(.text.unlikely .text.*_unlikely .text.unlikely.*) - *(.text.exit .text.exit.*) - *(.text.startup .text.startup.*) - *(.text.hot .text.hot.*) - *(.text .stub .text.* .gnu.linkonce.t.*) - . = ALIGN(8); - } :code - .fini : { KEEP( *(.fini) )