Already Registered?

Email

Password


Forget your password?

Not Registered?

How do I see the linker script used by the GNU Linker?

Question

How do I see the linker script used by the GNU Linker?

Answer

On bare-metal targets, linker scripts are provided by CS3. These are located in a target-specific subdirectory of your Sourcery CodeBench install directory. For example, for ARM EABI targets the linker scripts are in arm-none-eabi/lib.

On other targets, the GNU Linker (ld) uses a built-in default linker script. You can use this script as the basis for building your own linker script. The built-in linker script can be viewed by running a command like this:

arm-none-linux-gnueabi-ld --verbose

This entry was last updated on 10 October 2011.