Sourcery G++ Lite includes CS3 linker scripts and initialization code to support three different classes of target configurations:
You must use the appropriate linker script to match your target, since the memory layouts and startup code sequences are different in each case. Refer to Chapter 5, “CS3™: The CodeSourcery Common Startup Code Sequence” for details on the supported boards for this version of Sourcery G++ Lite.
For simulator and bare-metal targets, CS3 provides semihosted I/O via the debugger console on the host. For instructions on loading and running code on the target from command-line GDB, see Section 4.4, “Running Applications from GDB”.