Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Fix libgcc.a linkage when linking libgcc_s.so#317

Merged
danieldk merged 1 commit intomainfrom
fix-libgcc_s-linker-script
Dec 1, 2025
Merged

Fix libgcc.a linkage when linking libgcc_s.so#317
danieldk merged 1 commit intomainfrom
fix-libgcc_s-linker-script

Conversation

@danieldk
Copy link
Member

libgcc_s.so is normally a linker script that adds -lgcc for static functions. However due to bootstrapping requirements, libgcc_s is also added to the glibc library directory. Unfortunately, here it is a symlink to libgcc_s.so.1. Fix it by replacing the symlink by a linker script.

libgcc_s.so is normally a linker script that adds -lgcc for static
functions. However due to bootstrapping requirements, libgcc_s is
also added to the glibc library directory. Unfortunately, here it
is a symlink to libgcc_s.so.1. Fix it by replacing the symlink by
a linker script.
Copy link
Contributor

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice detective work!

@jiqing-feng
Copy link

I have verified that it fixed my CPU build issue. Thanks!

@danieldk danieldk merged commit 5f9c8af into main Dec 1, 2025
29 checks passed
@danieldk danieldk deleted the fix-libgcc_s-linker-script branch December 1, 2025 14:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants