diff --git a/nx/switch.ld b/nx/switch.ld index 0fdfe47cd..f49cf5001 100644 --- a/nx/switch.ld +++ b/nx/switch.ld @@ -53,6 +53,8 @@ SECTIONS /* =========== RODATA section =========== */ . = ALIGN(0x1000); + .nx-module-name : { KEEP (*(.nx-module-name)) } :rodata + .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) diff --git a/nx/switch.specs b/nx/switch.specs index 66b195723..e837ee1c5 100644 --- a/nx/switch.specs +++ b/nx/switch.specs @@ -1,7 +1,7 @@ %rename link old_link *link: -%(old_link) -T %:getenv(DEVKITPRO /libnx/switch.ld) -pie --gc-sections -z text -z nodynamic-undefined-weak --build-id=sha1 +%(old_link) -T %:getenv(DEVKITPRO /libnx/switch.ld) -pie --gc-sections -z text -z nodynamic-undefined-weak --build-id=sha1 --nx-module-name *startfile: crti%O%s crtbegin%O%s