mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
switch.ld: update init_array/fini_array handling for latest devkitA64
This commit is contained in:
parent
ed16b7f948
commit
1b95c09a27
24
nx/switch.ld
24
nx/switch.ld
@ -113,35 +113,19 @@ SECTIONS
|
|||||||
.init_array ALIGN(8) :
|
.init_array ALIGN(8) :
|
||||||
{
|
{
|
||||||
PROVIDE (__init_array_start = .);
|
PROVIDE (__init_array_start = .);
|
||||||
KEEP (*(SORT(.init_array.*)))
|
KEEP( *(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)) )
|
||||||
KEEP (*(.init_array))
|
KEEP( *(.init_array .ctors) )
|
||||||
PROVIDE (__init_array_end = .);
|
PROVIDE (__init_array_end = .);
|
||||||
} :data
|
} :data
|
||||||
|
|
||||||
.fini_array ALIGN(8) :
|
.fini_array ALIGN(8) :
|
||||||
{
|
{
|
||||||
PROVIDE (__fini_array_start = .);
|
PROVIDE (__fini_array_start = .);
|
||||||
KEEP (*(.fini_array))
|
KEEP( *(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)) )
|
||||||
KEEP (*(SORT(.fini_array.*)))
|
KEEP( *(.fini_array .dtors) )
|
||||||
PROVIDE (__fini_array_end = .);
|
PROVIDE (__fini_array_end = .);
|
||||||
} :data
|
} :data
|
||||||
|
|
||||||
.ctors ALIGN(8) :
|
|
||||||
{
|
|
||||||
KEEP (*crtbegin.o(.ctors)) /* MUST be first -- GCC requires it */
|
|
||||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
|
||||||
KEEP (*(SORT(.ctors.*)))
|
|
||||||
KEEP (*(.ctors))
|
|
||||||
} :data
|
|
||||||
|
|
||||||
.dtors ALIGN(8) :
|
|
||||||
{
|
|
||||||
KEEP (*crtbegin.o(.dtors))
|
|
||||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
|
||||||
KEEP (*(SORT(.dtors.*)))
|
|
||||||
KEEP (*(.dtors))
|
|
||||||
} :data
|
|
||||||
|
|
||||||
__got_start__ = .;
|
__got_start__ = .;
|
||||||
|
|
||||||
.got : { *(.got) *(.igot) } :data
|
.got : { *(.got) *(.igot) } :data
|
||||||
|
Loading…
Reference in New Issue
Block a user