[PATCH arm] synchronize newlib/libc/sys/arm with libgloss/arm

Mike Frysinger vapier@gentoo.org
Thu Nov 24 12:12:00 GMT 2011

On Monday 21 November 2011 20:32:21 Bin Cheng wrote:
> > Blackfin's gcc provides a "-msim" flag which automatically pulls in the
> > additional libs needed (-lsim).  then we run the gcc test suite with the
> > -msim compiler flag to link everything, and then run it against the sim to
> > test.
> > 
> > if we want to test against hardware, we have linker scripts in libgloss
> > for each of our cpu's, and the -mcpu= option automatically selects the
> > right linker script for that processor, as well as adding the expected
> > libs to link against (-lbfinbsp -lnosys).
> This way gcc provides these special command line options by default. The
> problem is when user don't want link to such library, e.g., using options
> like "-mcpu=..." and link to their own libraries.

why is this a problem ?  the libraries are static archives, and gcc specifies 
the libs last, so if the user provides all the symbols themselves, then the 
default library won't be used.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/newlib/attachments/20111124/b60b52b8/attachment-0001.sig>

More information about the Newlib mailing list