AS complains about a backwards jump to label
Greetings. I am currently porting some x86 assembly code from another platform and running into an odd problem where the assembler will not accept a backwards jump to a label. This only happens when assembling in Intel syntax mode.
As far as I am aware the source was assembled using GAS, so one would assume that aside from platform/abi specific directives it should compile with Apple's AS.
cat source.s
.intel_syntax
fooA: jmp wtfA
wtfA: ret
barA: jmp wtfA
.att_syntax
fooB: jmp wtfB
wtfB: ret
barB: jmp wtfB
as source.s
source.s:4:suffix or operands invalid for `jmp'
as -v
Apple Inc version cctools-698.1~1, GNU assembler version 1.38
Does anyone have any idea on whats going on here? Thanks.
As far as I am aware the source was assembled using GAS, so one would assume that aside from platform/abi specific directives it should compile with Apple's AS.
cat source.s
.intel_syntax
fooA: jmp wtfA
wtfA: ret
barA: jmp wtfA
.att_syntax
fooB: jmp wtfB
wtfB: ret
barB: jmp wtfB
as source.s
source.s:4:suffix or operands invalid for `jmp'
as -v
Apple Inc version cctools-698.1~1, GNU assembler version 1.38
Does anyone have any idea on whats going on here? Thanks.