Date: Mon, 14 Jun 1999 10:28:53 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Renji Panicker cc: djgpp AT delorie DOT com Subject: Re: Relocation. In-Reply-To: <7k1hcb$p3t$1@news.vsnl.net.in> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 13 Jun 1999, Renji Panicker wrote: > Could someone tell me how I can load a COFF ro A.OUT format executable, > implementing relocation on it as well? Also, I'd like to knwo what I have to > do to get relocation info in my binaries, in the first place... > > Any pointers to existing source code would be greatly appreciated.... The DJGPP stub loader and the debugger support code do some of this, so you might want to look at their sources. The stub is in the file src/stub/stub.asm, and the debugger support is in the file src/debug/common/v2load.c; both of them are in the v2/djlsr202.zip archive available from the DJGPP sites. For more detailed information you will probably have to turn to GNU Binutils, v2gnu/bnu281s.zip.