"Branch out of range" when targeting MIPSel/Linux with -fPIC
Original Reporter info from Mantis: bozox
-
Reporter name: Seva Alekseyev
Original Reporter info from Mantis: bozox
- Reporter name: Seva Alekseyev
Description:
Cross compiling for MIPSEL a source with a very long if statement errors out with "Branch out of range" error on assembly stage, if -fPIC is specified.
Steps to reproduce:
Build a cross-compiler for MIPSEL/Linux on Win64, using the MIPSel binutils for Win64 from Android NDK r9b. Save the attached source into a folder. Run the following:
set %NDKROOT%=d:\android-ndk-r9b-or-whatever
ppcrossmipsel -Pmipsel -Tlinux -fPIC a.pas -e%NDKROOT%\toolchains\mipsel-linux-android-4.8\prebuilt\windows-x86_64\bin -XPmipsel-linux-android-
Mantis conversion info:
- Mantis ID: 25399
- OS: Windows
- OS Build: 7
- Build: Trunk of 4 Dec 2013
- Platform: Linux
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 26215 (#ffba5aee)