Mail Archives: djgpp/2015/09/27/14:55:13
On 09/27/2015 04:02 PM, Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com] wrote:
> On Sunday, September 27, 2015 at 1:34:43 PM UTC+2, Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com] wrote:
>> Am 27.09.2015 11:59, schrieb Wiktor S. (wswiktorSP AT Mpoczta DOT fm) [via djgpp AT delorie DOT com]:
>>> I want to build a version of as and ld that would output Linux for ARM (ELF) binaries.
>>> Is it possible to configure DJGPP sources of binutils in such a way?
>>>
>>> --
>>> Wiktor S.
>>>
>>
>> Please note that I will not support anything else than my port of binutils
>> aka bnu2251sr2.zip and DJGPP 2.05. If you use a different setup you are alone.
>> Theoretically every target supported by binutils should be possible.
>> Please install bnu2251sr2.zip and edit djgpp/build.sh adding the target option
>> like in the patch below:
>>
>> --- build.sh.orig 2015-09-27 13:18:42 -25244
>> +++ build.sh 2015-09-27 13:21:18 -25244
>> @@ -425,7 +425,7 @@
>> ../configure --disable-dependency-tracking ${NLS_SUPPORT} \
>> --with-mpc='/dev/env/DJDIR' --with-mpfr='/dev/env/DJDIR' --with-gmp='/dev/env/DJDIR' \
>> --enable-install-bfd --enable-install-libiberty \
>> - --enable-build-warnings=-Wimplicit,-Wcomment,-Wformat,-Wparentheses,-Wpointer-arith >> build_log.txt 2>&1
>> + --enable-build-warnings=-Wimplicit,-Wcomment,-Wformat,-Wparentheses,-Wpointer-arith --target=MACHINE-SYSTEM-RELEASE-VERSION >> build_log.txt 2>&1
>>
>> echo >> build_log.txt
>> echo ################################################################################ >> build_log.txt
>>
>>
>> Please note that it is *your* job to figure out what the right values for:
>> MACHINE-SYSTEM-RELEASE-VERSION
>> are. I also do not remember if it is the right syntax. May be it is like this:
>> MACHINE:SYSTEM:RELEASE:VERSION
>>
>> Anyway I have serious doubts about a MSDOS/DJGPP/COFF to Linux/ARM/ELF cross-compiler.
>> Why not use Linux directly as host?
>>
>> Regars,
>> Juan M. Guerrero
> OFYI, I have tried to build with target i786-linux. Everything went well until some binutils code expected that functions like wcsncasecmp would be provided by libc.a or some other library. DJGPP offers no wide char support so I do not think that it may be possible to compile some modern DJGPP to something cross-compiler without some major porting effort in the DJGPP C-library.
> Of course there may be also some other DJGPP specific issues than wide char preventing from building a DJGPP cross-compiler.
>
> Of course after having successfully build binutils for ARM you would need a gcc that runs on DOS/DJGPP but targets ARM.
Well tried under Linuxs (Fedora 22 x86_64)
../binutils-2.25.1/configure --build=i686-linux-gnu --host=i586-pc-msdosdjgpp --target=arm-none-eabi
It seems that all builds OK execpt readelf.exe (linker fails to find mbrtowc)
Andris
- Raw text -