This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: Warning: indirect jmp without `*'


Alan Grover <alan.grover@gmail.com> writes:

> I'm getting a
>
> Warning: indirect jmp without `*'
>
> when I use
>
> jmp -12(%ebp)
>
> What do I need to do to make as happy?

jmp *-12(%ebp)

The rationale is that you aren't going to jump to the address %ebp-12.
You're going to load the value at -12(%ebp), and jump to that.

Ian


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