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 - : send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- Follow-Ups:
- Re: nasm / code distance
- From: Frank Kotler
- Re: nasm / code distance
- From: leslie . polzer
- Re: nasm / code distance
- Prev by Date: Re: Unable To Jump To Undefined Symbol
- Next by Date: Re: nasm / code distance
- Previous by thread: Unable To Jump To Undefined Symbol
- Next by thread: Re: nasm / code distance
- Index(es):