# stage2: upgrade musl libc stub file · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f69f55c807efa336e85862efdfe2abe03e15bd0d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f69f55c807efa336e85862efdfe2abe03e15bd0d

Requested commit: f69f55c807efa336e85862efdfe2abe03e15bd0d

Commit: f69f55c807efa336e85862efdfe2abe03e15bd0d

Tree: d0bbd8dfd1354a87ec989542f8e512d2130eaafc

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: upgrade musl libc stub file

This is the result of the work on tools/gen_stubs.zig. It now uses the
preprocessor to emit different symbols and sizes depending on the
architecture. The data is collected directly from multiple libc.so files
on disk built with upstream musl.

Closes #8178
Addresses #8896 for musl

There is still room for further improvement to this, which is to
put `.ds` directives after symbols that are not followed by aliases, to
avoid the potential problem of a linker believing that all symbols are
aliases of each other.

```

## Parents

- [da9542c0af1955c54fba4a9466d43d94290e36c9](https://git.cafe/gitcafe/zig/commit/da9542c0af1955c54fba4a9466d43d94290e36c9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f69f55c807efa336e85862efdfe2abe03e15bd0d?format=markdown)
