aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2014-05-08 17:32:29 +0200
committerDavid Mertens <dcmertens.perl@gmail.com>2014-06-24 22:09:12 -0400
commit6e0a658e9619b8e8040332361352b8a883292364 (patch)
tree50206f257acf7ae6e713aa30727697042da3a8b7 /libtcc.c
parent2ac238fc507b64a8dd2d5d3d5c00210c1ffabea5 (diff)
downloadtinycc-6e0a658e9619b8e8040332361352b8a883292364.tar.gz
tinycc-6e0a658e9619b8e8040332361352b8a883292364.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;