Chapter 3. Sourcery G++ Lite for Power GNU/Linux

Abstract

This chapter contains information about using Sourcery G++ Lite on your target system. This chapter also contains information about changes in this release of Sourcery G++ Lite. You should read this chapter to learn how to best use Sourcery G++ Lite on your target system.

Table of Contents

Library Configurations
Library Selection
Target Kernel Requirements
Using Sourcery G++ Lite on GNU/Linux Targets
Using GDB Server for Debugging
Sourcery G++ Lite Release Notes

Library Configurations

Sourcery G++ includes copies of run-time libraries that have been built with optimizations for different target architecture variants or other sets of build options. Each such set of libraries is referred to as a multilib. When you build a target application, Sourcery G++ automatically selects the multilib matching the build options you have selected.

Each multilib corresponds to a sysroot directory that contains the files that should be installed on the target system. The sysroot contains the dynamic linker used to run your applications on the target as well as the libraries. Refer to the section called “Using Sourcery G++ Lite on GNU/Linux Targets” for instructions on how to install and use these support files on your target GNU/Linux system. You can find the sysroot directories provided with Sourcery G++ in the powerpc-linux-gnu/libc directory of your installation. In the tables below, the dynamic linker pathname is given relative to the corresponding sysroot.

The following library configurations are available in Sourcery G++ Lite for Power GNU/Linux.

Table 3.1. 

603 - GLIBC, 32-bit
Command-line option(s):
Sysroot subdirectory:./
Dynamic linker:lib/ld.so.1

Table 3.2. 

603 - Soft-Float, GLIBC, 32-bit
Command-line option(s):-msoft-float
Sysroot subdirectory:nof/
Dynamic linker:lib/ld.so.1

Table 3.3. 

e600 (Altivec) - GLIBC, 32-bit
Command-line option(s):-te600
Sysroot subdirectory:te600/
Dynamic linker:lib/ld.so.1

Table 3.4. 

e500v1 - GLIBC, 32-bit
Command-line option(s):-te500v1
Sysroot subdirectory:te500v1/
Dynamic linker:lib/ld.so.1

Table 3.5. 

e500v2 - GLIBC, 32-bit
Command-line option(s):-te500v2
Sysroot subdirectory:te500v2/
Dynamic linker:lib/ld.so.1