Skip to content

Commit

Permalink
switch.ld: fix absolute addressing, incompatible with relr relocations
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Oct 11, 2024
1 parent d87f8a3 commit a6924f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nx/switch.ld
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ SECTIONS
PROVIDE_HIDDEN( __bss_start__ = ADDR(.bss) );
PROVIDE_HIDDEN( __bss_end__ = __tls_end );

PROVIDE_HIDDEN( __end__ = ABSOLUTE(.) );
PROVIDE_HIDDEN( __end__ = . );

/* =========== Argument buffer =========== */
. = ALIGN(0x1000);
PROVIDE_HIDDEN( __argdata__ = ABSOLUTE(.) );
PROVIDE_HIDDEN( __argdata__ = . );

/* ==================
==== Metadata ====
Expand Down

0 comments on commit a6924f2

Please sign in to comment.