Depend on your toolchain selection, see bellow
Attachment:
p1.jpg [ 47.22 KiB | Viewed 8135 times ]
The default linker script is in [YOUR_TOOLCHAIN_SELECTION]/nds32le-elf/lib/ldscripts
Attachment:
p2.jpg [ 49.47 KiB | Viewed 8135 times ]
Once users change Load Address in build setting
Attachment:
p3.jpg [ 42.94 KiB | Viewed 8135 times ]
A copy of the ld file would be in [YOUR_PROJECT]/output/.nds32le-elf-newlib-v2_start0x504000.x
這是一個隱藏檔
Attachment:
p4.jpg [ 28.49 KiB | Viewed 8135 times ]
And linker option would add –Xlinker option
For ex $(CROSS_COMPILE)gcc -static -T"output/.nds32le-elf-newlib-v2_start0x504000.x" -Xlinker -defsym -Xlinker _stack=0x4000000 -o"C.adx" $(OBJS) $(USER_OBJS) $(LIBS)