switch.ld: Merge .crt0 into .text

This commit is contained in:
fincs 2021-11-01 01:34:06 +01:00
parent 93db7abb03
commit 431c99465c
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -16,9 +16,14 @@ SECTIONS
. = __start__; . = __start__;
__code_start = . ; __code_start = . ;
.crt0 : .text :
{ {
KEEP (*(.crt0)) 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); . = ALIGN(8);
} :code } :code
@ -35,16 +40,6 @@ SECTIONS
. = ALIGN(8); . = ALIGN(8);
} :code } :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 : .fini :
{ {
KEEP( *(.fini) ) KEEP( *(.fini) )