mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-08-23 10:33:50 -04:00
BR 2067837: remove double add of VEX instruction length
We added the length of VEX prefixes twice in calcsize(); this resulted in the wrong symbol addresses when compiling without the optimizer. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
83b2e4f82c
commit
19f15a50f6
@ -975,14 +975,12 @@ static int64_t calcsize(int32_t segment, int64_t offset, int bits,
|
|||||||
case 0261:
|
case 0261:
|
||||||
case 0262:
|
case 0262:
|
||||||
case 0263:
|
case 0263:
|
||||||
length += 2;
|
|
||||||
ins->rex |= REX_V;
|
ins->rex |= REX_V;
|
||||||
ins->drexdst = regval(opx);
|
ins->drexdst = regval(opx);
|
||||||
ins->vex_m = *codes++;
|
ins->vex_m = *codes++;
|
||||||
ins->vex_wlp = *codes++;
|
ins->vex_wlp = *codes++;
|
||||||
break;
|
break;
|
||||||
case 0270:
|
case 0270:
|
||||||
length += 2;
|
|
||||||
ins->rex |= REX_V;
|
ins->rex |= REX_V;
|
||||||
ins->drexdst = 0;
|
ins->drexdst = 0;
|
||||||
ins->vex_m = *codes++;
|
ins->vex_m = *codes++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user