# link: fix false positive crtbegin/crtend detection · gitcafe/zig

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

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

Visibility: public

Requested revision: 14c8e270bb47c4e10ee3392661d4c62ab5c2f89d

Requested commit: 14c8e270bb47c4e10ee3392661d4c62ab5c2f89d

Commit: 14c8e270bb47c4e10ee3392661d4c62ab5c2f89d

Tree: c74fe79e74d3fc6bff7dd61f372153906e29e040

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
link: fix false positive crtbegin/crtend detection

Embrace the Path abstraction, doing more operations based on directory
handles rather than absolute file paths. Most of the diff noise here
comes from this one.

Fix sorting of crtbegin/crtend atoms. Previously it would look at all
path components for those strings.

Make the C runtime path detection partially a pure function, and move
some logic to glibc.zig where it belongs.

```

## Parents

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

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