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]

Assembler question: how to force "jmp rel32"


Hello all,

I'm having trouble with the GNU assembler.  It's because of this:

"Jump instructions are always optimized to use the smallest possible
displacements."

I want labels to always be interpreted as 32-bit displacement operands
for jmp (i.e., opcode E9), even if they would fit in 8 bits (opcode
EB).  Does anyone know if it's possible to force the assembler to do
this?  I'm using AT&T syntax but can switch to Intel if necessary.

(I'm doing some assembly rewriting that is very sensitive to
instruction lengths.)

Thanks very much!


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