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 2.10.91 and relative addressing


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


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