On Sun, Jul 5, 2009 at 7:00 PM,
<address@hidden> wrote:
Subject: Re: [Tinycc-devel] tcc-0.9.25 woes on 64 bit Red Hat system
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=US-ASCII
Hi,
> Made fine, but test3 fails.
Yeah, missing alloca was already fixed in mob branch. Please use this
if you need this.
http://repo.or.cz/w/tinycc.git?a=shortlog;h=refs/heads/mob
> Then, I try building a shared object,
>
> % tcc foo.c -o libfoo.so -shared
> /usr/lib/crti.o: invalid object file
> /lib/libc.so.6: bad architecture
> /usr/lib/crtn.o: invalid object file
% cat foo.c
int
foo(int x) {
return x + 3;
}
I know what the bad arch thing is, but am not sure how to get around it. I am on a 64 bit machine, but /usr/lib is being forced, and even setting LD_LIBRARY_PATH makes no difference.
% LD_LIBRARY_PATH=/lib64:$LD_LIBRARY_PATH tcc foo.c -o libfoo.so -shared
/usr/lib/crti.o: invalid object file
/lib/libc.so.6: bad architecture
/usr/lib/crtn.o: invalid object file
I'd like to investigate these files. Could you show the result of file
command and readelf -h command for these files? Or, it would be nicer
if you can upload or send these files.
Thanks,
------------------------------
_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel
End of Tinycc-devel Digest, Vol 75, Issue 3
*******************************************