mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
switch.ld: Merge .crt0 into .text
This commit is contained in:
parent
93db7abb03
commit
431c99465c
17
nx/switch.ld
17
nx/switch.ld
@ -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) )
|
||||||
|
Loading…
Reference in New Issue
Block a user