Re: [Tinycc-devel] x86_64: shared libs

2014-04-06 Thread grischka
Michael Matz wrote: Hi, On Fri, 4 Apr 2014, Michael Matz wrote: Yes, that's something on my TODO. Theoretically having runtime_plt_and_got makes code emission a tiny bit faster because having a proper PLT and GOT also for -run means first creating and second applying intermediate

Re: [Tinycc-devel] x86_64: shared libs

2014-04-05 Thread Michael Matz
Hi, On Fri, 4 Apr 2014, Michael Matz wrote: Yes, that's something on my TODO. Theoretically having runtime_plt_and_got makes code emission a tiny bit faster because having a proper PLT and GOT also for -run means first creating and second applying intermediate relocations (the _GLOB_DAT and

Re: [Tinycc-devel] x86_64: shared libs

2014-04-04 Thread grischka
Question apropos: On linux x86_64 there is still the ugly runtime_plt_and_got hack which is a replacement for PLT in the tcc -run case to forward 32bit calls to extern libraries. On win64 the same problem is solved by building the IAT (import address table) also in the -run case. From your

Re: [Tinycc-devel] x86_64: shared libs

2014-04-04 Thread Michael Matz
Hi, On Fri, 4 Apr 2014, grischka wrote: Question apropos: On linux x86_64 there is still the ugly runtime_plt_and_got hack which is a replacement for PLT in the tcc -run case to forward 32bit calls to extern libraries. On win64 the same problem is solved by building the IAT (import

Re: [Tinycc-devel] x86_64: shared libs

2014-04-02 Thread Michael Matz
Hi, On Mon, 31 Mar 2014, Aharon Robbins wrote: Testing appreciated (hi Arnold :) ). This has certainly improved things; two tests that used to fail now pass, although two more continue to fail. If you want to test yourself, here's the recipe: git clone

Re: [Tinycc-devel] x86_64: shared libs

2014-03-31 Thread Thomas Preudhomme
Le 2014-03-31 11:54, Michael Matz a écrit : Hi, I just pushed some things [1] to mob that make shared libs on x86-64 linux sort of working (well, in my little tests). It's not 100% conformant to the ABI yet, but hey, its late here :) i386 could now use some cleanups as well (so that it really