# stage2: building glibc shared objects · gitcafe/zig

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

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

Visibility: public

Requested revision: 95941c4e7021588f224f0559c6f66de3a205b972

Requested commit: 95941c4e7021588f224f0559c6f66de3a205b972

Commit: 95941c4e7021588f224f0559c6f66de3a205b972

Tree: 230b70c9dc2504be1c7525ade95dbc5b4af97435

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: building glibc shared objects

 * caching system: use 16 bytes siphash final(), there was a bug in the
   std lib that wasn't catching undefined values for 18 bytes. fixed in
   master branch.
 * fix caching system unit test logic to not cause error.TextBusy on windows
 * port the logic from stage1 for building glibc shared objects
 * add is_native_os to the base cache hash
 * fix incorrectly freeing crt_files key (which is always a reference to
   global static constant data)
 * fix 2 use-after-free in loading glibc metadata
 * fix memory leak in buildCRTFile (errdefer instead of defer on arena)

```

## Parents

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

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