diff options
Diffstat (limited to 'x86_64-link.c')
-rw-r--r-- | x86_64-link.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/x86_64-link.c b/x86_64-link.c index c0c5e13..a96144c 100644 --- a/x86_64-link.c +++ b/x86_64-link.c @@ -287,6 +287,9 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t add64le(ptr, val - s1->got->sh_addr); break; case R_X86_64_RELATIVE: +#ifdef TCC_TARGET_PE + add32le(ptr, val - s1->pe_imagebase); +#endif /* do nothing */ break; } |