In general GCC will work with newlib
with no change. All that is
needed is to include the BSP library on the command line.
However it is convenient to modify GCC so that it picks up the BSP
automatically. This is particularly useful when newlib
has been
installed in a custom location (see Section 7.1).
This is achieved by adding machine specific options to GCC, and
modifying the Spec definitions to pick up the newlib
libraries when
the relevant option is in effect.
All the relevant files are found in the
gcc/config/
directory of GCC. For the 32-bit OpenRISC 1000 this is
target
gcc/config/or32
.