delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/12/20:10:08

Date: Thu, 12 Aug 1999 15:47:40 +0100
From: Peter Restall <pete AT restall DOT net>
Message-Id: <199908121447.PAA01120@burdock.restall.net>
To: djgpp AT delorie DOT com
Subject: Re: Re: ELF and DLLs
Reply-To: djgpp AT delorie DOT com

On Thu, 12 Aug 1999 11:26:07 +0300 (IDT), Eli kindly responded:
> On Tue, 10 Aug 1999, Peter Restall wrote:
> 
>> The first is, can I compile ELF binaries with DJGPP ?
> 
> No, not unless you reconfigure Binutils to include ELF support and then 
> rebuild Binutils from sources.
That's OK.  I'll get the source and check it out (ftp.gnu.org ?)

>> I'm interested because I wish to create my own dynamic-library routines
>> that work under Linux (which uses ELF) and hopefully under DJGPP as well.
> 
> Note that object code usually includes hidden dependencies on some 
> private features of the library on the platform where they were compiled.
> So object files compiled on Linux might not link with DJGPP-compiled
> code, unless the sources compiled on Linux didn't call any functions
> from libc.a.
Sorry, I should have been more clear.  I meant that I'd have one source
dump for Linux-based machines and one for DOS-based machines.  I'd compile the
DOS binary and the modules separately to the Linux ones.  Like what Quake II
did with its video code.  Is that feasible ?  Is there format more suited to
DLLs that I could use (and get GCC to compile binaries in it) ?  Thanks,

	Pete =:-)


--
/*************** [burdock] ****************/
/* ____/|   pete AT restall DOT net              */
/* \ o.O|   http://www.iirc.net/petes/    */
/*  =(_)=                                 */
/*    U                                   */
/******************************************/

/******************************* [Windoze 98] ********************************/
/* Windows 98: n.                                        (Alex Satrapa).     */
/*   64 bits (and pieces) of bugs (and fixes) and featuritis tacked on to 32 */
/*   bit extensions and a graphical shell for a 16 bit patch to an 8 bit     */
/*   operating system originally coded for a 4 bit microprocessor, written   */
/*   by a 2 bit company that can't stand 1 bit of competition, and has not a */
/*   bit of respect for their customers.                                     */
/*****************************************************************************/

- Raw text -


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