<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div>Hi,<br><br>I am trying to undertand which code in LLVM patches the fixups generated by assembler.<br><br>Here is what I am doing: I use "llvm-mc" to compile X86 assembly code, like below:<br><br>$ echo "jmp 5000" | ./bin/llvm-mc -assemble -triple=i386 -show-encoding -x86-asm-syntax=att -output-asm-variant=1<br> .text<br> jmp 5000 # encoding: [0xeb,A]<br> # fixup A - offset: 1, value: 5000-1, kind: FK_PCRel_1<br><br>Now
there are fixups in the encoding, and this must be patches by LLVM
somewhere. My best guess is that the next phase after assembly
compilation will patch them, but not very sure where in LLVM compiler
does this.<br><br>Any hints on how the compiler
patch the fixups after assembler phase? (a pointer to source code is great,
so i can read the source and have better understanding)<br><br></div>Thanks,<br></div>Jun<br><br></div>
</div><br></div>