aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* avoid needless register save when storing structuresbobbl2009-12-011-7/+7
| | | | | | | When storing structs with a memcpy call in vstore(), so far a needless entry remaining on the vstack sometimes resulted in an useless store generated by save_regs() in gfunc_call() for the memcpy routine.
* document -print-search-dirsBernhard Reutner-Fischer2009-12-011-0/+4
| | | | Signed-off-by: aldot <rep.dot.nop@gmail.com>
* improve handling of --helpBernhard Reutner-Fischer2009-12-011-1/+3
| | | | | | Previously ./configure --prefix=/foo --help didn't show the help-text Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* solve tccelf problem on FreeBSDLuigi Rizzo2009-12-012-13/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Sun, Nov 22, 2009 at 05:43:14PM +0100, Luigi Rizzo wrote: > Hi, > there is a well known problem with tcc and FreeBSD in the generation > of elf objects -- see > http://lists.gnu.org/archive/html/tinycc-devel/2005-07/msg00070.html > > Apparently Sergey Lyubka has tried a partial fix to the problem. > I was wondering if Sergey or someone can post some more detail on > what needs to be done so we can try to help fixing this issue I think i have managed to solve the problem and produce almost valid elf files on FreeBSD. The two patches attached address a few problems (trying to explain to the best of my knowledge; i am not very familiar with ELF and the FreeBSD ELF conventions): 1. ELF file format tcc produces an ELF executable which is good for linux but not for FreeBSD. It misses the PHDR section which is almost mandatory for shared executables, puts in the .dynsym section some relocation info that FreeBSD expects to be in .got, and expect the relocation sections to be contiguous. patch-tccelf.c tries to address the above problem using conditional sections (so hopefully can be imported upstream) and also adds the ability to override the name of the dynamic loader through an environment variable (this is important to debug tcc). 2. predefined macros patch-libtcc.c adds/fixes some predefined macros when compiling on FreeBSD: these are __FreeBSD__ and the usual set of __i386__ and __unix__ variants. It also sets __INTEL_COMPILER so we can grab the __aligned macro from cdefs.h , otherwise many programs would fail The resulting elf file is still not 100% correct -- if you strip it, the program will not run (presumably there is some dangling reference). Other than that, program do seem to run correctly. It would be nice to integrate these patches in the main repository. The FreeBSD specific code is in #ifdef so it should not harm linux users cheers luigi
* win32: remove #define alloca from mingw headersgrischka2009-12-011-1/+1
|
* win32: explain usage of mingw w32api packagegrischka2009-11-301-1/+2
|
* tccpe: fclose FILE*grischka2009-11-301-0/+2
| | | | Reported by Martin Ettl (thanks)
* win64: Use tcc's own assemblergrischka2009-11-211-5/+5
| | | | Now that we have it thanks to Mr. Féret
* asm 32/64: replace (long)sym->next by sym->jnextgrischka2009-11-212-5/+5
|
* x86_64: fix asmgrischka2009-11-143-14/+19
|
* fix 32bit asmgrischka2009-11-142-25/+17
| | | | | | | The new 16bit code was causing wrong 0x66 prefixes in 32bit code. The fix possibly breaks the feature on 16bit asm.
* Removed binary executable output supportFeret@.(none)2009-11-131-5/+4
| | | | This broke writing executables.
* fix ambiguityBernhard Reutner-Fischer2009-11-131-1/+1
| | | | Signed-off-by: aldot <rep.dot.nop@gmail.com>
* Fixed compilation error in i386-asm.cFrederic Feret2009-11-132-5/+3
|
* fixed and added missing file for x86_64 assemblyFrederic Feret2009-11-132-1/+215
|
* ARM: first support for arm-pe targetFrederic Feret2009-11-133-10/+47
|
* various fixes and new options for PE formatFrederic Feret2009-11-135-18/+100
|
* first support of x86_64 assemblyFrederic Feret2009-11-138-221/+1973
|
* added 16-bit x86 assembly supportFrederic Feret2009-11-138-37/+245
|
* add binary executable output supportFrederic Feret2009-11-131-4/+5
|
* fix sizeof(array + integer)Daniel Glöckner2009-11-131-0/+1
| | | | | Previously sizeof would return the size of the array although the expression is always a plain pointer of 4 (or 8) bytes.
* win32: handle __declspec(dllimport)grischka2009-11-134-4/+50
|
* #define __TINYC__ = version-numbergrischka2009-11-131-1/+5
|
* x86-64: Fix stab debug information.Shinichiro Hamaji2009-08-245-3/+7
| | | | | We need 32bit relocations for code and 64bit for debug info. Introduce a new macro R_DATA_PTR to distinguish the two usages.
* x86-64: change the type of size_t and ptrdiff_t.Shinichiro Hamaji2009-08-242-2/+4
| | | | size_t and ptrdiff_t should be unsigned long and long, respectively.
* tccpe: fill checksum header fieldgrischka2009-08-241-27/+58
|
* tccpp: fix quirk with cached headers and #elsegrischka2009-08-241-1/+4
| | | | | | | | | | Such as with #ifndef FOO_H ... #else ... #endif
* fix "symbol not defined" if symbol has offset 0grischka2009-08-241-9/+16
|
* tccpp: avoid double free with macro_ptr_allocated (after errors)grischka2009-08-241-0/+1
|
* tccgen: free inline functions correctlygrischka2009-08-241-1/+5
|
* win64: fix batgrischka2009-08-241-11/+13
|
* tcc: optionally build using libtccgrischka2009-07-181-0/+4
|
* fix some warninggrischka2009-07-182-6/+6
|
* cleanup: constify some global datagrischka2009-07-188-125/+126
|
* tccpe: set tcc_lib_path from DLLgrischka2009-07-184-33/+10
|
* tccpe: load dll on the flygrischka2009-07-185-227/+313
|
* win32: treat long double as doublegrischka2009-07-182-0/+16
|
* win32: reformat examples, crt etcgrischka2009-07-184-134/+148
|
* x86-64: fix load() for const pointers: (void*)-2grischka2009-07-181-21/+22
|
* x86-64: chkstk, allocagrischka2009-07-188-59/+104
|
* win64: add x64 target to build-tcc.batgrischka2009-07-181-19/+47
|
* win64: use new headers from mingwgrischka2009-07-1891-16970/+31780
|
* win64: update tiny_impdef, tiny_libmaker (Elf64)grischka2009-07-182-383/+144
|
* win64: align jmp_bufgrischka2009-07-181-0/+10
|
* win64: fix pointer <-> unsigned long typecast issuesgrischka2009-07-186-19/+34
|
* pe32+ target: adjust x86_64-gen.cgrischka2009-07-181-25/+115
| | | | | | | | - calling conventions are different: * only 4 registers * stack "scratch area" is always reserved * doubles are mirrored in normal registers - no GOT or PIC there
* pe32+ target: add to makefilegrischka2009-07-181-4/+9
|
* pe32+ target: add in various #define'sgrischka2009-07-184-2/+18
|
* tccpe: use more official structsgrischka2009-07-181-30/+34
|
* tccpe: support pe32+ (x86_64) targetgrischka2009-07-181-36/+82
|