From a6924f2740be3107f59c3722af0a5f6c4b9e67f9 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 11 Oct 2024 14:14:49 -0700 Subject: [PATCH] switch.ld: fix absolute addressing, incompatible with relr relocations --- nx/switch.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/switch.ld b/nx/switch.ld index 3be8a25a..29110bdb 100644 --- a/nx/switch.ld +++ b/nx/switch.ld @@ -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 ====