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) )