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
{{ message }}
Repository navigation
clang should use -Wl,--exclude-libs,libgcc.a by default #823
That's what I meant, IIRC. I think I missed the _real in my last comment. Shouldn't this be changed to, "clang should use -Wl,--exclude-libs,libgcc_real.a and -Wl,--exclude-libs,libunwind.a" (because -Wl,--exclude-libs doesn't seem to work for linker script)?
Activity
tomty89 commentedon May 12, 2019
That doesn't seem to do a thing (while
-Wl,--exclude-libs,libgcc.aand/or-Wl,--exclude-libs,libunwind.adoes; aslibgcc.ais now a linker script?)mhsmith commentedon Jan 25, 2020
As mentioned here, the name to use is now
libgcc_real.a.tomty89 commentedon Jan 25, 2020
That's what I meant, IIRC. I think I missed the
_realin my last comment. Shouldn't this be changed to, "clang should use-Wl,--exclude-libs,libgcc_real.aand-Wl,--exclude-libs,libunwind.a" (because-Wl,--exclude-libsdoesn't seem to work for linker script)?DanAlbert commentedon Apr 14, 2020
We're hoping to be off libgcc by r23, so this will probably not be fixed.
lattice0 commentedon Sep 18, 2020
Why
libgcc_real.ashould be excluded?By the way, I'm getting:
as you see, my linking command already has
-Wl,--exclude-libs,libgcc_real.abut I still get this errorDanAlbert commentedon Mar 17, 2021
Obsolete with r23 because we've switched to LLVM's libunwind, which doesn't need this because it's built with hidden visibility.