aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2014-05-08 17:32:29 +0200
committergrischka <grischka>2014-05-08 17:32:29 +0200
commit0f51ccd4e4152e920f01d1dcbdecfd8fb62cb57c (patch)
treec304cd2930998017203383ebbe9a350216af3a71 /libtcc.c
parentad787abea6d4e6ee0717c4e791d10b1f6281e91d (diff)
downloadtinycc-0f51ccd4e4152e920f01d1dcbdecfd8fb62cb57c.tar.gz
tinycc-0f51ccd4e4152e920f01d1dcbdecfd8fb62cb57c.tar.bz2
win64: try to fix linkage
- revert to R_X86_64_PC32 for near calls on PE - revert to s1->section_align set to zero by default Untested. Compared to release_0_9_26 the pe-image looks back to normal. There are some differences in dissassembly (r10/r11 usage) but maybe that's ok.
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libtcc.c b/libtcc.c
index deda7e6..7caa7c1 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1033,7 +1033,6 @@ LIBTCCAPI TCCState *tcc_new(void)
".dynhashtab", SHF_PRIVATE);
s->alacarte_link = 1;
s->nocommon = 1;
- s->section_align = ELF_PAGE_SIZE;
#ifdef CHAR_IS_UNSIGNED
s->char_is_unsigned = 1;