delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
X-Received: | by 10.66.255.42 with SMTP id an10mr13564124pad.40.1443358969562; |
Sun, 27 Sep 2015 06:02:49 -0700 (PDT) | |
X-Received: | by 10.182.120.74 with SMTP id la10mr40726obb.3.1443358969399; Sun, |
27 Sep 2015 06:02:49 -0700 (PDT) | |
Newsgroups: | comp.os.msdos.djgpp |
Date: | Sun, 27 Sep 2015 06:02:49 -0700 (PDT) |
In-Reply-To: | <5607D4C3.4040800@gmx.de> |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | glegroupsg2000goo.googlegroups.com; posting-host=46.5.89.169; posting-account=OsAajgoAAADdKJnkJkmhzqP0jo6I_P_0 |
NNTP-Posting-Host: | 46.5.89.169 |
References: | <mu8em4$bas$1 AT usenet DOT news DOT interia DOT pl> <5607D4C3 DOT 4040800 AT gmx DOT de> |
User-Agent: | G2/1.0 |
MIME-Version: | 1.0 |
Message-ID: | <4b10ba83-055b-4ff9-bdd1-81b37c9aee36@googlegroups.com> |
Subject: | Re: djgpp to Linux ARM cross binutils |
From: | "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> |
Injection-Date: | Sun, 27 Sep 2015 13:02:49 +0000 |
Bytes: | 3921 |
Lines: | 67 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id t8RDF1es018952 |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
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. Regards, Juan M. Guerrero
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |