This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] Prevent tailcall optimizations of libdl functions
On 25/01/17 15:32, Yuri Gribov wrote:
> FWIW it sounds like GCC attribute would be the most natural solution
> (and probably also useful in other contexts). I'll try to cook a patch
> for GCC if there are no objections.
note that even if dlsym is marked notailcall, with
p = dlsym;
...
return p();
if the type of p does not carry the attributes of
dlsym then this can be a tailcall.