Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHi,
--- Quote Start --- I know about the header with memory addresses and all, but I still can't find any auto-generated linker script. There is only the static one that comes with elf2flt that defines only one flat memory area, and another static one at linux-2.6/arch/nios2/kernel/vmlinux.lds.S that doesn't list a MEMORY. So how does the uClinux linker know where to put everything? Does it just grow from 0 and if it reaches out of main RAM you're screwed? --- Quote End --- The linker uses the script 'home/***/nios2-linux/uClinux-dist/linux-2.6.x/arch/nios2/kernel/vmlinux.lds' and this script is generated from '/home/***/nios2-linux/linux-2.6/arch/nios2/kernel/vmlinux.lds.S', etc. The generator is '/home/***/nios2-linux/uClinux-dist/linux-2.6.x/arch/nios2/kernel/.vmlinux.lds.cmd' (hidden file), I think, and this generator is generated from... , I don't know ! But anyway, you can control the linker from 'vmlinux.lds.S' and 'vmlinux.lds.inc'. Also you can check the symbol's locations by a map file '/home/***/nios2-linux/uClinux-dist/linux-2.6.x/System.map'. Kazu