Mirorr of https://github.com/richfelker/musl-cross-make to compile musl build tools for mipsel-muslsf
Go to file
Rich Felker bd17b1fbcd fix sh/fdpic issues found after first submission upstream
the following issues are fixed:

- ICE generating the new libgcc __ashlsi3_r0 and __lshrsi3_r0 shift
  operations for non-J2 SH2.

- new sh_legitimate_constant_p function was unused because there was
  an existing version with different signature which C++ allowed to be
  overloaded rather than reporting the error.

- reversed asm spec conditional for fdpic broke non-fdpic builds.

this commit rebases the patch against gcc trunk and backports the
result. file order has been tweaked by hand so that the diff is
friendly to manual inspection.
2015-10-05 22:31:31 +00:00
patches fix sh/fdpic issues found after first submission upstream 2015-10-05 22:31:31 +00:00
sources add dummy files for empty dirs to include them in git 2015-08-25 19:34:59 +00:00
steps add dummy files for empty dirs to include them in git 2015-08-25 19:34:59 +00:00
Makefile bypass gcc's potentially-broken detection of tls support 2015-09-13 08:29:07 +00:00
README.md add README 2015-08-25 19:58:17 +00:00
config.mak.dist improve sample config.mak 2015-09-13 04:17:08 +00:00

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.