gas 2.10.91 and relative addressing

Marc Tardif intmktg@CAM.ORG
Fri Sep 14 22:25:00 GMT 2001


I'm trying to jump forward 0xa bytes with the following code:

jmp 0xa

Unfortunately, after assembling, the generated code is obviously thinking
0xa is an absolute offset. In previous versions of gas, this was not the
case. Now, I seem to have to declare labels and then use those labels as
an argument to jmp. Is there a way I could do without labels and still use
relative offsets?

Marc



More information about the Binutils mailing list