Compiling newlib for the [sparc-leon3-elf] target
Mon Jan 9 15:44:00 GMT 2017
I have been trying to build the newlib/libgloss stack and associated
libraries for the sparc-leon3-elf package. Currently, I am using a
slightly patched binutils and gcc to perform this process. The patches
can be found in . The patches are supposed to add the missing linker
script in binutils and change the default linker command gcc issues for
the sparc-elf target.
The situation I am having when building newlib is specifically with the
libraries associated for the leon3. An old build by Gaisler generates a
few separate directories:
each with separate versions of the C runtime, AMBA plug and play
routines, the baremetal leon3 libraries. However, when I build it, none
of these directories get created, and the resulting leon3 libraries
begin exposing duplicate symbols [as if what should be in independent
directories are merged into the same file]. When linking programs, ld is
right to complain about the situation and generates no binaries.
I am configuring newlib/libgloss with:
export CFLAGS_FOR_TARGET="-Os -g -ffunction-sections -fdata-sections"
Binutils [2.27 with linked patches] was configured with:
../configure --prefix=/usr \
GCC [6.3.0 with linked patches] was bootstrapped as:
Any ideas what I could be missing here? Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 195 bytes
Desc: OpenPGP digital signature
More information about the Newlib