Displaying 3 results from an estimated 3 matches for "e900000000".
Did you mean:
900000000
2016 Feb 27
2
Fwd: X86 assembler cannot jump NEAR?
...ot;|llvm-mc-mp-3.7 -assemble -triple=i386 -show-encoding |tee b.s
.text
jmp _label # encoding: [0xeb,A]
# fixup A - offset: 1, value: _label-1, kind: FK_PCRel_1
$ clang -c b.s
$ otool -tvj b.o
b.o:
(__TEXT,__text) section
0000000000000000 e900000000 jmp 0x5
As you can see, both produced near jumps. (I assume the difference between the offsets has to do with a difference in relocations between ELF and Mach-o.)
--
Stephen Checkoway
2016 Feb 27
0
Fwd: X86 assembler cannot jump NEAR?
...s
> .text
> jmp _label # encoding: [0xeb,A]
> # fixup A - offset: 1, value:
_label-1, kind: FK_PCRel_1
> $ clang -c b.s
> $ otool -tvj b.o
> b.o:
> (__TEXT,__text) section
> 0000000000000000 e900000000 jmp 0x5
>
> As you can see, both produced near jumps. (I assume the difference
between the offsets has to do with a difference in relocations between ELF
and Mach-o.)
>
> --
> Stephen Checkoway
>
>
>
-------------- next part --------------
An HTML attachment...
2014 Aug 26
2
[LLVMdev] llvm-objdump
Hi Kev,
I'm glad to hear llvm-objdump is getting attention. I'm unclear on
how much output specialization one could (or should) do for ELF vs.
Mach-O. If you're game, let's compare an example:
$ cat labeltest.s
.text
foo:
nop
bar:
bum:
nop
jmp bar
jmp bum
jmp baz
nop
baz:
nop
Assembling for x86 and llvm-objdump'ing, i get
$ llvm-mc