From: Ben Chong Newsgroups: comp.os.msdos.djgpp Subject: Modifying ld for standalone binaries Date: Mon, 26 Jun 2000 18:14:59 -0700 Organization: http://extra.newsguy.com Lines: 21 Message-ID: NNTP-Posting-Host: p-614.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi folks, I posted a question about using DJGPP to build for standalone binaries : there is no operating system. Binary put into an EPROM for embedded x86 system. Some of the answers (thanks to those who responded) indicated that I needed to modify ld (the linker). After looking at the a.out file, I noticed that there is a huge go32 stub. Now, this is what I DONT'T want. Since the system will have no OS, there's no DPMI driver or what ever. The system will already be in some sort of 32-bit mode, so all I would like is that the first instruction be in location 0 of the binary file and so on. So what can I do to ld or the linker scripts to NOT pull in the go32 stuff? Thanks! Ben