Hi,

On Thu, 24 Oct 2019, Herman ten Brugge wrote:

> See the testcase 106_pthread.c. This uses a mutex in a shared memory 
> (not in the testcode). This is not supported when versioning is not 
> used.

Ah, I see, the old version of pthread_cond_init is used, as it should be 
per ELF resolution rules (without versioning info), but of course in 
nowadays time really the new version needs to be selected (and yes, dlsym 
is the workaround for that, as that one selects the newest version by 
default).

Okay, thanks, that explains it.


Ciao,
Michael.

> 
> There are some more problems because I fixed this one temporary with dlsym.
> After that I decided to implement elf versioning.
> 
>     Herman
> 
> On 2019-10-24 15:18, Michael Matz wrote:
> > Hi,
> >
> > On Tue, 22 Oct 2019, Herman ten Brugge via Tinycc-devel wrote:
> >
> >> I had some problems using pthread code in tinycc.
> >>
> >> The problem was that not the correct version of the pthread-library was
> >> used because tinycc did not support elf versions.
> > I wonder what the specific problem was, out of curiosity.
> >
> >> I created a branch (elf_version) and implemented elf versions.
> >>
> >> It solved my problems and I can now run a very large application without
> >> a problem.
> > That's fairly cool.  I never could quite bring myself to add ELF
> > versioning for real, so: super!  :)
> >
> >
> > Ciao,
> > Michael.
> 
> 
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to