Mail Archives: djgpp/2009/01/10/01:00:35
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 -