UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 18539

EDK - Where can I find information on building linker scripts?

Description

General Description:

Where can I find information on building linker scripts?

Solution

Linker scripts are useful when you need to partition your program among different areas of memory. The default linker scripts are available in the EDK install area:

$XILINX_EDK/gnu/microblaze or powerpc/nt(orsol)/microblaze/lib/ldscripts

? elf32ppc or microblaze.x is used by default when none of the following cases apply

? elf32ppc or microblaze.xn is used when the linker is invoked with the {-n} option.

? elf32ppc or microblazex.bn is used when the linker is invoked with the {-N} option.

? elf32ppc or microblaze.xr is used when the linker is invoked with the {-r} option.

? elf32ppc or microblaze.xu is used when the linker is invoked with the {-Ur} option.

? elf32ppc or microblaze.x is used when the linker is invoked with the {-n} option.

For more details on the linker scripts, refer to the default linker script information in the EST Guide and the GNU linker documentation in the online manual:

http://www.gnu.org/manual

(Xilinx Answer 17151) contains an example linker script for a program that runs completely out of the caches.

AR# 18539
Date Created 09/03/2007
Last Updated 12/15/2012
Status Active
Type General Article