# start: Avoid going through the argc_argv_ptr global variable\. · gitcafe/zig

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

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

Visibility: public

Requested revision: ecd459b8647a1b7cade31f0286694e14101f80f4

Requested commit: ecd459b8647a1b7cade31f0286694e14101f80f4

Commit: ecd459b8647a1b7cade31f0286694e14101f80f4

Tree: 46c47af6afb0e7c568d0ce52050c02d097542064

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
start: Avoid going through the argc_argv_ptr global variable.

This is problematic for PIE. There's nothing but luck preventing the accesses to
this global variable from requiring relocations. I've observed this being an
issue on MIPS and PowerPC personally, but others may be affected.

Besides, we're really just passing the initial stack pointer value to
posixCallMainAndExit(), so... just do that.

```

## Parents

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

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