Hi
I'm trying to assemble the following snippet of code:
.global sigsetjmp
.global __sigsetjmp
.type sigsetjmp,@function
.type __sigsetjmp,@function
sigsetjmp:
__sigsetjmp:
mov 8(%esp),%ecx
jecxz 1f
mov 4(%esp),%eax
popl 24(%eax)
mov %ebx,28+8(%eax)
mov %eax,%ebx
.hidden ___setjmp
call ___setjmp
pushl 24(%ebx)
mov %ebx,4(%esp)
mov %eax,8(%esp)
mov 28+8(%ebx),%ebx
.hidden __sigsetjmp_tail
jmp __sigsetjmp_tail
1: jmp ___setjmp
but getting this error:
src/signal/i386/sigsetjmp.s:8: error: invalid displacement
After renaming/moving the label around I assume the issue is that local
labels cannot be forward;1b and my_label moved to the top do work fine.
TCC commit d3e466462967cb0c5c24beb498b9d76fcd581fdf (mob)
BR
Volodymyr
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel