grischka (2008-04-25T19:18:10+0200):
Instead it looks like if it generates bogus relocations for sections
with zero size.
Thanks! With the new versions of tccelf.c (and tcc.c) from
the CVS, building of shared libs works perfectly! I was also
able to compile a larger (Tcl-based) project for
From: grischka:
...
The problem with the layout from TCC seem to be that the dynamic
linker (/lib/ld-linux.so.2) thinks RELSZ is the size of rel.text,
and then crashes when it goes over the end of it.
The above from my last email was somewhere near but still wrong.
TCC is okay to add on
From: Olaf Dietrich:
I don't see any difference either: segmentation fault also without -r.
In between I could reproduce the error with a modified example,
i.e. with some data access.
Reason seems a problem with the dynamic relocation entries that
TCC generates. You can see this with
grischka (2008-04-22T18:55:04+0200):
I don't know why you used -r to TCC, but anyway it works
both with and without.
I don't see any difference either: segmentation fault also without -r.
Simple questions first:
Can you run anything build with TCC at all?
Yes! No problem without shared
From: Olaf Dietrich:
grischka (2008-04-21T18:07:35+0200):
Works for me. (on ubuntu 6.02)
That's good news - so what might go wrong here?
Did I use the appropriate compiler/linker options?
I don't know why you used -r to TCC, but anyway it works
both with and without.
(Are you saying
Hi,
The simple question is: Is it or has it ever been possible to
compile shared libraries with tcc under linux/unix?
Here is a very simple test case:
$ cat mylib.c
int func(void)
{
return 12345;
}
$ cat testlib.c
#include stdio.h
extern int func(void);
int main(void) {
I'm interested in this one too - including the ability to 'dlopen' the shared
library once created...
On Monday 21 April 2008 09:11:23 Olaf Dietrich wrote:
Hi,
The simple question is: Is it or has it ever been possible to
compile shared libraries with tcc under linux/unix?
Here is a very
Works for me. (on ubuntu 6.02)
--- grischka
From: Olaf Dietrich:
The simple question is: Is it or has it ever been possible to
compile shared libraries with tcc under linux/unix?
Here is a very simple test case:
$ cat mylib.c
int func(void)
{
return 12345;
}
$ cat