3.2. Library Configurations

Sourcery G++ 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 - Big-Endian, O32, fp64
Command-line option(s):-mfp64
Library subdirectory:fp64/
MIPS32 revision 2 - Soft-Float, O32
Command-line option(s):-msoft-float
Library subdirectory:sof/
MIPS32 revision 2 - No-Float, O32
Command-line option(s):-mno-float
Library subdirectory:nof/
MIPS32 revision 2 - Big-Endian, O32, mips16, fp64
Command-line option(s):-mips16 -mfp64
Library subdirectory:mips16/fp64/
MIPS32 revision 2 - Big-Endian, O32, mips16, Soft-Float
Command-line option(s):-mips16 -msoft-float
Library subdirectory:mips16/sof/
MIPS32 revision 2 - Big-Endian, O32, mips16, No-Float
Command-line option(s):-mips16 -mno-float
Library subdirectory:mips16/nof/
MIPS32 revision 2 - Big-Endian, O32, mips16, code-readable=no
Command-line option(s):-mips16 -mcode-readable=no
Library subdirectory:mips16/spram/
MIPS32 revision 2 - Big-Endian, O32, mips16, fp64, code-readable=no
Command-line option(s):-mips16 -mfp64 -mcode-readable=no
Library subdirectory:mips16/fp64/spram/
MIPS32 revision 2 - Big-Endian, O32, mips16, Soft-Float, code-readable=no
Command-line option(s):-mips16 -msoft-float -mcode-readable=no
Library subdirectory:mips16/sof/spram/
MIPS32 revision 2 - Big-Endian, O32, mips16, No-Float, code-readable=no
Command-line option(s):-mips16 -mno-float -mcode-readable=no
Library subdirectory:mips16/nof/spram/
MIPS32 revision 2 - Little-Endian, O32, mips16
Command-line option(s):-EL -mips16
Library subdirectory:el/mips16/
MIPS32 revision 2 - Little-Endian, O32, fp64
Command-line option(s):-EL -mfp64
Library subdirectory:el/fp64/
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, No-Float
Command-line option(s):-EL -mno-float
Library subdirectory:el/nof/
MIPS32 revision 2 - Little-Endian, O32, mips16, fp64
Command-line option(s):-EL -mips16 -mfp64
Library subdirectory:el/mips16/fp64/
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 - Little-Endian, O32, mips16, No-Float
Command-line option(s):-EL -mips16 -mno-float
Library subdirectory:el/mips16/nof/
MIPS32 revision 2 - Little-Endian, O32, mips16, code-readable=no
Command-line option(s):-EL -mips16 -mcode-readable=no
Library subdirectory:el/mips16/spram/
MIPS32 revision 2 - Little-Endian, O32, mips16, fp64, code-readable=no
Command-line option(s):-EL -mips16 -mfp64 -mcode-readable=no
Library subdirectory:el/mips16/fp64/spram/
MIPS32 revision 2 - Little-Endian, O32, mips16, Soft-Float, code-readable=no
Command-line option(s):-EL -mips16 -msoft-float -mcode-readable=no
Library subdirectory:el/mips16/sof/spram/
MIPS32 revision 2 - Little-Endian, O32, mips16, No-Float, code-readable=no
Command-line option(s):-EL -mips16 -mno-float -mcode-readable=no
Library subdirectory:el/mips16/nof/spram/
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/

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

Sourcery G++ 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 G++ install.