# std: Fix PIE startup sequence · gitcafe/zig

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

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

Visibility: public

Requested revision: fd6d5f16096335629d4a5cab4e7784dffbcb94e5

Requested commit: fd6d5f16096335629d4a5cab4e7784dffbcb94e5

Commit: fd6d5f16096335629d4a5cab4e7784dffbcb94e5

Tree: 8ee3a1588e0b7b83a15a965a1efbe101a172c829

Author: LemonBoy

Committer: LemonBoy

## Message

```
std: Fix PIE startup sequence

* Don't skip the TLS initialization (Fixes #9083)
* Add a test case where a PIE program is built and run
* Refactor the common initialization code in the Linux startup
  sequence.

```

## Parents

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

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