delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/08/05:15:16

Xref: news2.mv.net comp.os.msdos.djgpp:5720
From: gaggi AT cs DOT unibo DOT it (Nicola Gaggi)
Newsgroups: comp.os.msdos.djgpp
Subject: Relocation and linking
Date: 8 Jul 1996 08:34:19 GMT
Organization: Department of Computer Science, University of Bologna, Italy
Lines: 24
Message-ID: <4rqh6b$70b@leporello.cs.unibo.it>
NNTP-Posting-Host: 130.136.1.164
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello folks,

I need information on how relocation and linking is done under DJGPP for
a project I am working on.
I have used the utility 'objdump' and I have read the include file 'coff.h' to
understand the format of the COFF file and I find that in the relocation part
of these files there are only entries for external symbols and data, how can
static and local declared symbols be relocated? May I have to scan all the
code to find where jump istructions (function calls and unconditional jumps)
are and modify the target address of the istructions? I dont think this is the
best way to do relocation (even DOS use a better approach :) )!

Please help me.
Reply via newsgroup and e-mail (I often miss some post). 
Thank you very much,

--
--------------------------------------------------------------------
Nicola Gaggi                                  University of Bologna.
e-mail  : gaggi AT cs DOT unibo DOT it  WWW page: http://www.cs.unibo.it/~gaggi
--------------------------------------------------------------------
... Be yourself, no matter what they say
  from "Englishman in New York" by Sting

- Raw text -


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