AS complains about a backwards jump to label
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.