linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nasm / code distance
@ 2006-04-07 18:47 Thiago Silva
  2006-04-08  9:47 ` leslie.polzer
  2006-04-08 14:55 ` Frank Kotler
  0 siblings, 2 replies; 4+ messages in thread
From: Thiago Silva @ 2006-04-07 18:47 UTC (permalink / raw)
  To: linux-assembly

Hello,
I'm having some troubles with an asm application.

The first problem is about the "short jump".
I get those messages "error: short jump is out of range" when using nasm on my 
sources. Researching, I found that people answer this by saying "use -O1".
Now, is this the appropriated way to deal with this problem?

Second, I've been getting some strange (?) segfaults...
Using valgrind, I found that there were 3 invalid reads on memory.
Those reads uses data in the .data section. Now, moving the problematic 
function to the beginning of the file, close to the entry point and other 
sections, valgrind didn't complain and I got no segfaults.

I'm obviously missing something, so...can anyone help?

Thanks in advance,
-- 
+Thiago Silva

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-08 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07 18:47 nasm / code distance Thiago Silva
2006-04-08  9:47 ` leslie.polzer
2006-04-08 11:09   ` Thiago Silva
2006-04-08 14:55 ` Frank Kotler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).