delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/01/10/01:00:35

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rugxulo <rugxulo AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer
Subject: MOSS extender for DOS is FLOSS, built via compiling cross !! (teehee)
Date: Fri, 9 Jan 2009 21:47:45 -0800 (PST)
Organization: http://groups.google.com
Lines: 88
Message-ID: <60b3c285-c756-41e3-a19d-96691ab6caf5@r13g2000vbp.googlegroups.com>
References: <cc2668db-926c-41e1-9836-5a42a1210ed6 AT s9g2000prg DOT googlegroups DOT com>
<uwsdcmjo7 DOT fsf AT gnu DOT org> <5fb78e93-bed6-46d9-85c8-a838e35b3d22 AT r36g2000prf DOT googlegroups DOT com>
<uprj4mbv6 DOT fsf AT gnu DOT org> <9941ccce-87a6-4ace-9f78-9b15710643bd AT x8g2000yqk DOT googlegroups DOT com>
<gjve0m$2rt$1 AT news DOT tornevall DOT net> <4563e62e-7382-4c6a-b986-d4c8a8ff9d47 AT i18g2000prf DOT googlegroups DOT com>
<0541cc98-689c-4e6c-ae02-d6f5a1b4a9cb AT l37g2000vba DOT googlegroups DOT com>
<gk54mb$i0$1 AT news DOT tornevall DOT net> <886d17b9-399f-48ed-ac4d-45ca11d3879f AT s20g2000yqh DOT googlegroups DOT com>
<gk5qld$euh$1 AT news DOT tornevall DOT net> <d0ac44e3-772a-44f7-9528-2d6f3f6f1a2c AT h20g2000yqn DOT googlegroups DOT com>
<gk6cuo$qor$1 AT news DOT tornevall DOT net> <gk7la5$kar$1 AT news DOT tornevall DOT net>
<gk7p00$mnd$1 AT news DOT tornevall DOT net> <gk80qj$ra0$1 AT news DOT tornevall DOT net>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1231566466 25644 127.0.0.1 (10 Jan 2009 05:47:46 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Sat, 10 Jan 2009 05:47:46 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: r13g2000vbp.googlegroups.com; posting-host=65.13.115.246;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5)
Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe)
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 n0A6048C017353
Reply-To: djgpp AT delorie DOT com

Hi again,

On Jan 9, 11:21 am, "Rod Pemberton" <do_not_h DOT  DOT  DOT  AT nohavenot DOT cmm> wrote:
> "Rod Pemberton" <do_not_h DOT  DOT  DOT  AT nohavenot DOT cmm> wrote in message
>
> > Okay, with your comments, Daniel Borca's guide, I think I got binutils to
> > compile for DJGPP host and moss target, but GCC is complaining of missing
> > directories for moss to moss target...  I've tried a few rebuilds now.
> > I'm not sure why the host is incorrect.
>

Did you make sure the host is "i386-pc-msdosdjgpp"?

> Well, a number of changes later, I think I got a moss version of GCC to
> compile.  It errors where the moss document says it should.  Ok, it appears
> I'm headed in the wrong direction anyways.  One can't compile the FreeBSD
> libc on DOS without compiling MOSS on DOS...  

Can't compile FreeBSD libc without the MOSS compiler or without
building the extender? (I haven't looked into that, maybe I should.)

> And, I'm not sure how to get
> moss to compile for DOS.  So, I'll have to setup a Linux or FreeBSD, and use
> the precompiled libs, like I'm assuming you did to compile the 7Z app.

I did indeed use the already existing libs (e.g. libc.a, libgcc.a) to
build 7zdec, but I used my own rebuild of GCC + BinUtils (DJGPP
"host"), not the 2.7.2 dynamic build of GCC for Linux (although that
seems to work under BasicLinux, if you want to try that).

Did you notice that the "cross"-linker (ld) says it supports these
formats?

GNU ld 2.10.1
Copyright 2000 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms
of
the GNU General Public License.  This program has absolutely no
warranty.
  Supported emulations:
   i386moss
   i386msdos

I think even DJ and Bryan intersected briefly (June 2, 1995) in one
posting way back in the day (according to Google). Lemme find it
(since it made me think, truly or falsely, that you can build
everything with the MOSS-enabled GCC):

http://sourceware.org/ml/gas2/1995/msg00093.html

--------------------------------------------------------------------------------------------------------
Bryan:  Here are some very simple patches to GNU ld-950602.
            They add a new target `i386-msdos', to go along with the
            corresponding target already in bfd and gas.
            They also add a new target `i386-moss', which is a DOS
extender
            I'll be releasing shortly (I'd like to have support for it
in
            the main binutils distribution by the time I release it).

 DJ:  Please be careful not to confuse the i386-moss work with i386-
go32 or
        i386-djgpp work, which is also a dos extender that runs under
ms-dos
        and uses binutils, but uses the COFF support instead of ELF.
Anything
        that says "msdos" should be appropriate for ALL ms-dos
systems, not
        just the moss system.  If it will only help moss, use the word
"moss"
        in the name.

Bryan:  The i386-msdos target is not for any DOS extender at all; it's
for
            creating plain 16-bit ("unextended") MS-DOS executables.
--------------------------------------------------------------------------------------------------------

P.S. He announced the extender + cross-compiler on news://comp.os.msdos.programmer
on Feb. 2, 1996 and news://comp.os.linux.announce the next day.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019