Add --nx-module-name to linker flags

This commit is contained in:
fincs 2019-03-23 19:34:11 +01:00
parent 56471670ee
commit 1096d7ee8f
2 changed files with 3 additions and 1 deletions

View File

@ -53,6 +53,8 @@ SECTIONS
/* =========== RODATA section =========== */
. = ALIGN(0x1000);
.nx-module-name : { KEEP (*(.nx-module-name)) } :rodata
.rodata :
{
*(.rodata .rodata.* .gnu.linkonce.r.*)

View File

@ -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