3.2. Library Configurations

Sourcery CodeBench Lite for MIPS ELF includes the following library configuration.

MIPS32 revision 2 - Big-Endian, O32
Command-line option(s):default
Library subdirectory:./
MIPS32 revision 2 - Little-Endian, O32
Command-line option(s):-EL
Library subdirectory:el/
MIPS32 revision 2 - Big-Endian, O32, mips16
Command-line option(s):-mips16
Library subdirectory:mips16/
MIPS32 revision 2 - Soft-Float, O32
Command-line option(s):-msoft-float
Library subdirectory:sof/
MIPS32 revision 2 - Big-Endian, O32, mips16, Soft-Float
Command-line option(s):-mips16 -msoft-float
Library subdirectory:mips16/sof/
MIPS32 revision 2 - Little-Endian, O32, mips16
Command-line option(s):-EL -mips16
Library subdirectory:el/mips16/
MIPS32 revision 2 - Little-Endian, O32, Soft-Float
Command-line option(s):-EL -msoft-float
Library subdirectory:el/sof/
MIPS32 revision 2 - Little-Endian, O32, mips16, Soft-Float
Command-line option(s):-EL -mips16 -msoft-float
Library subdirectory:el/mips16/sof/
MIPS32 revision 2 - Big-Endian, O32, micromips
Command-line option(s):-mmicromips
Library subdirectory:micromips/
MIPS32 revision 2 - Big-Endian, O32, micromips, Soft-Float
Command-line option(s):-mmicromips -msoft-float
Library subdirectory:micromips/sof/
MIPS32 revision 2 - Little-Endian, O32, micromips
Command-line option(s):-EL -mmicromips
Library subdirectory:el/micromips/
MIPS32 revision 2 - Little-Endian, O32, micromips, Soft-Float
Command-line option(s):-EL -mmicromips -msoft-float
Library subdirectory:el/micromips/sof/
MIPS64 revision 2 - Big Endian, N64
Command-line option(s):-mabi=64
Library subdirectory:64/
MIPS64 revision 2 - Big Endian, N64, Soft-Float
Command-line option(s):-msoft-float -mabi=64
Library subdirectory:sof/64/
MIPS64 revision 2 - Little Endian, N64
Command-line option(s):-EL -mabi=64
Library subdirectory:el/64/
MIPS64 revision 2 - Little Endian, N64, Soft-Float
Command-line option(s):-EL -msoft-float -mabi=64
Library subdirectory:el/sof/64/

Sourcery CodeBench 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 link a target application, Sourcery CodeBench selects the multilib matching the build options you have selected.

Sourcery CodeBench Lite's library support includes linker scripts that pull in appropriate CS3 startup code, as well as the libraries themselves. You can find these linker scripts in multilib-specific subdirectories of the mips-sde-elf/lib directory of your Sourcery CodeBench install.