mb-g++ linker script problem 8.2i

Nov 19, 2007 1 Replies

Specification EDK version:8.2i FPGA Board: Virtex II Pro


I've tried generating a linker script to map the input object files (.text, .rodata, .sdata2, .data , .sdata, .sbss, .bss ) on to RAM (DDR_256MB_32MX64) and used the linker symbol _TEXT_START_ADDR to modify the starting address of my program. However, these instructions are when using mb-gcc compiler.


A very simple program has been written to display a simple output using xil_printf() which works on the default memory settings but not when the linker script is used to map object files to RAM.


Are there any suggestions on to how this can be done?


Priyantha



If you just want to run from RAM and aren't trying to do anything weird (like put text in ROM, some data in fast RAM and other data in slow RAM on alternate Tuesdays), just use the default linker script and set the Program Start Address, Stack and Heap size. This puts text followed by data followed by stack followed by heap in one big block starting from the given start address.

These options are set with right click on Applications tab/Project, then select Set Compiler Options... Uncheck Use Custom Linker Script.

Remember, you can't load external RAM from an fpga boot prom. You must load it with XMD or your own loader.

If you are doing something weird, someone else is going to have to help you.

Alan Nishioka

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required