aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/02_printf.expect
diff options
context:
space:
mode:
authorZhang Boyang <zhangboyang.id@gmail.com>2017-09-09 21:11:56 +0800
committerZhang Boyang <zhangboyang.id@gmail.com>2017-09-09 21:11:56 +0800
commitb39810ff7820665f1780a3dff99420b5061e02c4 (patch)
tree8852e20ee7ddaa2fc7b80e19467b8d44967a3abe /tests/tests2/02_printf.expect
parent02370acdc9967255cd06a928499fd1981356595e (diff)
downloadtinycc-b39810ff7820665f1780a3dff99420b5061e02c4.tar.gz
tinycc-b39810ff7820665f1780a3dff99420b5061e02c4.tar.bz2
Fix calling function pointers casted from intergers in DLL
The code generated for "((void (*)(void))0x12345678)()" will be a single "CALL 0x12345678" in previous code. However, this will not work for DLLs, because "CALL imm" is PC related, DLL relocation will break the code. This commit fixed the problem by forcing TCC generates indirect CALLs in this situation.
Diffstat (limited to 'tests/tests2/02_printf.expect')
0 files changed, 0 insertions, 0 deletions