diff options
| author | Zhang Boyang <zhangboyang.id@gmail.com> | 2017-09-09 21:11:56 +0800 |
|---|---|---|
| committer | Zhang Boyang <zhangboyang.id@gmail.com> | 2017-09-09 21:11:56 +0800 |
| commit | b39810ff7820665f1780a3dff99420b5061e02c4 (patch) | |
| tree | 8852e20ee7ddaa2fc7b80e19467b8d44967a3abe /tests/pp/11.expect | |
| parent | 02370acdc9967255cd06a928499fd1981356595e (diff) | |
| download | tinycc-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/pp/11.expect')
0 files changed, 0 insertions, 0 deletions
