tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] "error: invalid displacement" i386 1f 'L..1' does not get


From: Volodymyr Boyko
Subject: [Tinycc-devel] "error: invalid displacement" i386 1f 'L..1' does not get resolved
Date: Sun, 17 Apr 2022 05:10:01 +0300

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]