# std.os.linux: Fix syscall6\(\) when building for PIC/PIE\. · gitcafe/zig

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

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

Visibility: public

Requested revision: cb0e6d8aa6f258e2ad9b21287c49c34a434750b2

Requested commit: cb0e6d8aa6f258e2ad9b21287c49c34a434750b2

Commit: cb0e6d8aa6f258e2ad9b21287c49c34a434750b2

Tree: 67f66081a4177336fc5e1ef2ee224e70f3af1732

Author: Alex Rønne Petersen

Committer: Andrew Kelley

## Message

```
std.os.linux: Fix syscall6() when building for PIC/PIE.

LLVM would run out of registers due to the edi usage. Just extend what we're
already doing for ebp to edi as well.

```

## Parents

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

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