[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Working on new features
From: |
Bernhard Reutner-Fischer |
Subject: |
Re: [Tinycc-devel] Working on new features |
Date: |
Wed, 2 Sep 2009 12:25:00 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Tue, Sep 01, 2009 at 01:56:03PM +0200, Frédéric Feret wrote:
>
>>This completely broke writing executables.
>>
>>I suggest you typedef the TCC_OUTPUT_FORMAT_x enum and the TCC_OUTPUT_x
>>enum, adjust TCCState accordingly (to use these two types) and recompile.
>Not for me. ELF binaries createdby my TCC are valid. But adding a
$ echo 'int main(void){write(2,"not\n",4);}' | /opt/i686/tinycc.orig/bin/tcc -o
fixme - ; ./fixme
not
while with your changes:
$ echo 'int main(void){write(2,"not\n",4);}' | /opt/i686/tinycc//bin/tcc -o
fixme - ; ./fixme
tcc: error: undefined symbol '__libc_csu_fini'
tcc: error: undefined symbol '__libc_csu_init'
tcc: error: undefined symbol '__libc_start_main'
tcc: error: undefined symbol 'write'
-sh: ./fixme: No such file or directory
>TCC_TARGET_BINARY
>option is a good idea. I'll work on that.
and please fix the existing fallout first (compiling the tip of the
mob branch points you straight to your typo/thinko)..
TIA && cheers,