Fix the Intel x64 PIC 'call' test, adding correct addend.

This commit is contained in:
Tyler McMullen
2018-01-18 13:40:08 -08:00
committed by Jakob Stoklund Olesen
parent 850896f05e
commit df210bfdea

View File

@@ -27,7 +27,7 @@ function %I64() {
ebb0:
; asm: call foo@PLT
call fn0() ; bin: e8 PLTRel4(%foo) 00000000
call fn0() ; bin: e8 PLTRel4(%foo-4) 00000000
; asm: mov 0x0(%rip), %rax
[-,%rax] v0 = func_addr.i64 fn0 ; bin: 48 8b 05 GOTPCRel4(%foo-4) 00000000