Code: Select all
.intel_syntax noprefix
.global tigermain
.section .text
tigermain:
enter 0,0
mov ebx, L0
jmp ebx
L0:
leave
ret
I assemble it with gas, and then link it to a runtime written in c which calls tigermain. when i study the code with objdump the move seams to be correct, however, when debuging with gdb the load loads junk into ebx, instead of the label's adress. can anyone explain where it is going wrong?