delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/08/14:36:39

Message-ID: <3A5A150E.E6EE5A6@telia.com>
From: Fredrik Hellman <mrhellman AT telia DOT com>
X-Mailer: Mozilla 4.72 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Strange function addresses
Lines: 19
Date: Mon, 08 Jan 2001 19:30:41 GMT
NNTP-Posting-Host: 62.20.144.51
X-Complaints-To: abuse AT telia DOT com
X-Trace: newsb.telia.net 978982241 62.20.144.51 (Mon, 08 Jan 2001 20:30:41 CET)
NNTP-Posting-Date: Mon, 08 Jan 2001 20:30:41 CET
Organization: Telia Internet
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello!

I have detected a strange thing when the DJGPP's ld's linker is linking.
I debugged my code using the "debug" program that is included in DOS. It
looked like this:

instruction addr. note
CALL 06FE         535           a call to a function
...
JBE 700               6FE           here is a strange conditional jump
PUSH BP             700           here starts the function

When I run my program, it seems that it never calls these functions,
maybe because the condition BE (in JBE) isn't true. Why does the linker
link like this and how do I set it to not link in this way?

Fredrik Hellman
mrhellman AT telia DOT com

- Raw text -


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