https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66826
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #5 from Rich Felker <bugdal at aerifal dot cx> ---
I think the issue is more complicated. Even if glibc were fixed not to crash,
code like the following:
return dlsym(RTLD_NEXT, "whatever");
would return the wrong result under tco when the caller's caller is in a
different dso. GCC probably needs a "notailcall" attribute to fix this, but
maybe there are workarounds glibc could do to prevent tco without needing a new
attribute...