[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Undefined use of weak symbols in gnulib
From: |
Bruno Haible |
Subject: |
Re: Undefined use of weak symbols in gnulib |
Date: |
Wed, 28 Apr 2021 01:47:10 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-206-generic; KDE/5.18.0; x86_64; ; ) |
Hi Florian,
> This will become an urgent issue with glibc 2.34
Thank you for the early heads-up.
I would like to understand the scope and the severity of the issue.
You write:
> Dynamic linking with weak symbols is not very well-defined. ...
> the code will crash if pthread_mutexattr_gettype is ever defined.
In which situations will it crash?
(a) when the code is in an executable, that gets linked with '-lpthread'
and that does not use dlopen()?
(b) when the code is in an executable, that gets linked WITHOUT
'-lpthread' and that does not use dlopen()?
(c) when the code is in an executable, that gets linked WITHOUT
'-lpthread' and that does a dlopen("libpthread.so.X")?
Under which conditions will it crash?
($) when the executable was built before glibc 2.34 and is run
with glibc 2.34 ?
(%) when the executable is built against glibc 2.34 and is run
with glibc 2.34 ?
And if it crashes, will setting the environment variable LD_DYNAMIC_WEAK [1]
avoid the crash?
Bruno
[1] https://sourceware.org/legacy-ml/libc-hacker/2000-06/msg00029.html
- Re: Undefined use of weak symbols in gnulib, (continued)
- Re: Undefined use of weak symbols in gnulib, Florian Weimer, 2021/04/27
- Re: Undefined use of weak symbols in gnulib, Bruno Haible, 2021/04/27
- Re: Undefined use of weak symbols in gnulib, H.J. Lu, 2021/04/27
- Re: Undefined use of weak symbols in gnulib, H.J. Lu, 2021/04/27
- Re: Undefined use of weak symbols in gnulib, Florian Weimer, 2021/04/28
- Re: Undefined use of weak symbols in gnulib, Michael Matz, 2021/04/28
- Re: Undefined use of weak symbols in gnulib, Florian Weimer, 2021/04/28
- Re: Undefined use of weak symbols in gnulib, Bruno Haible, 2021/04/28
- Re: Undefined use of weak symbols in gnulib, Florian Weimer, 2021/04/28
Re: Undefined use of weak symbols in gnulib, Bruno Haible, 2021/04/27
Re: Undefined use of weak symbols in gnulib,
Bruno Haible <=
Re: Undefined use of weak symbols in gnulib, Ben Pfaff, 2021/04/29