You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(forwarded from GCC's bugzilla: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115170 as GCC is doing the right thing, only clang is not).
Take:
```
struct s
{
~s();
};
s f;
void g();
void h()
{
g();
}
```
With `-fno-plt -fPIE`, clang will call __cxa_atexit@plt rather than doing an indirect call to __cxa_atexit via a load from the GOT.
```
(forwarded from GCC's bugzilla: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115170 as GCC is doing the right thing, only clang is not).
Take:
With
-fno-plt -fPIE
, clang will call __cxa_atexit@plt rather than doing an indirect call to __cxa_atexit via a load from the GOT.vs what is done for the call to g:
GCC will do an indirect call to the
__cxa_atexit@GOTPCREL
:The text was updated successfully, but these errors were encountered: