i386-asm: fix pc-relative label ariths
commitca061f3a96216f85f6fe72868083208aa0a740b9
authorgrischka <grischka>
Sat, 2 Mar 2024 11:48:44 +0000 (2 12:48 +0100)
committergrischka <grischka>
Sun, 3 Mar 2024 18:56:18 +0000 (3 19:56 +0100)
treee2cf85ed9d91df6ffae41ac0fd2a60513650104a
parent9675c1e245ccd7c0ded72cab9a95831faa3f3d97
i386-asm: fix pc-relative label ariths

See test. We need to use 'ind' from later when the address
field of the instruction is put.

Also: fix crash when the substracted symbol is undefined
Also: assume asm-symbols to be lvalues (except func/array)
i386-asm.c
tccasm.c
tccgen.c
tests/tcctest.c