This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gas jmp problems


Hi all!

I skimmed through manuals and ChangeLogs and couldn't
find a reference to it, and decided to ask before
diving into the source.  Any help is appreciated.

Using the following code: main(){__asm__("jmp 13");}
gas correctly produces near jmp opcode with binutils
shipped with Red Hat 6.1 (binutils-2.9.1.0.23-6), i.e.
it produces

\xeb\x0d

But with more recent binutils (like the one shipped
with Red Hat 6.2), it fails to do so and produces far
jmp opcode:

\xe9\x89\x7b\xfb\xf7

Could someone point out how to get gas to produce near
jmp opcode with the latest versions?

Thanks in advance,
regards.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]