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

Redesign how mustang replaces libc - #45

Merged
sunfishcode merged 9 commits into
mainfrom
sunfishcode/redesign-linking
Oct 14, 2021
Merged

sunfishcode merged 9 commits into
mainfrom
sunfishcode/redesign-linking

Conversation

@sunfishcode

Copy link
Copy Markdown
Owner

Use empty libc.a and similar libraries to prevent the linker from
opening the system libc etc., so that all symbols are either resolved
from mustang libraries or undefined.

This replaces uses of link_section, used, inline(never) and
__mustang_c_scape* functions, eliminating a lot of clutter, and
producing smaller binaries.

Use empty libc.a and similar libraries to prevent the linker from
opening the system libc etc., so that all symbols are either resolved
from mustang libraries or undefined.

This replaces uses of `link_section`, `used`, `inline(never)` and
`__mustang_c_scape*` functions, eliminating a lot of clutter, and
producing smaller binaries.
@sunfishcode
sunfishcode merged commit 86377a8 into main Oct 14, 2021
@sunfishcode
sunfishcode deleted the sunfishcode/redesign-linking branch October 14, 2021 13:08
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.

1 participant