3a0c9775b6
binutils-2.25.1/0003-shemuls.diff is needed to include the existing fdpic support in the build when targeting sh*-linux-* rather than tucking it away under sh*-uclinux-* only gcc-5.2.0/0007-fdpic.diff is based on the original abandoned fdpic patch 3/3 sent to the gcc list in 2010, updated for modern gcc and with the uclinux dependencies removed. the original is here: https://gcc.gnu.org/ml/gcc-patches/2010-08/msg01464.html gcc-5.2.0/0001-musl.diff has been updated to use the right musl dynamic linker pathname for fdpic so that musl-specific changes can be avoided in the main fdpic patch. at present, additional patches to musl are needed to produce working binaries for the target. |
||
---|---|---|
patches | ||
sources | ||
steps | ||
Makefile | ||
README.md | ||
config.mak.dist |
README.md
musl-cross-make
This is a quick and simple makefile-based alternative for producing musl-based cross compilers. In addition to the build system, it provides a number of patches, including:
-
Updated versions of the musl target patches going into upstream GCC
-
Static-PIE support and enabling PIE as default
-
Fixes for SH-specific bugs and bitrot in GCC
-
Support for J2 Core CPU target in GCC & binutils
The current focus is on SH2/J2 Core targets and NOMMU (where PIE is mandatory) since these are not adequately supported by other musl cross-compiler toolchain build systems.
Usage
To build, copy the provided config.mak.dist to config.mak and edit then run make. Parallel builds are supported. The host needs to have suitable gmp/mpfr/mpc libraries installed in the standard library path, or you can add the appropriate --with options to GCC_CONFIG.
At present only GCC 5.2.0 and Binutils 2.25.1 are supported. Backporting of patches is needed to support other versions.
The included patches should also be usable with Gregor's original musl-cross or other build systems, if desired.