# std.pie: fix register constraint in getDynamicSymbol\(\) for s390x \(\#25327\) · gitcafe/zig

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

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

Visibility: public

Requested revision: b8f2fec0f2d66427c8f947979fee8173099c690c

Requested commit: b8f2fec0f2d66427c8f947979fee8173099c690c

Commit: b8f2fec0f2d66427c8f947979fee8173099c690c

Tree: 970d0b6c6ae6f5ab29a2a36efc56bae5e62d8ea1

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std.pie: fix register constraint in getDynamicSymbol() for s390x (#25327)

If the compiler happens to pick `ret = r0`, then this will assemble to
`ag r0, 0` which is obviously not what we want. Using `a` instead of `r` will
ensure that we get an appropriate address register, i.e. `r1` through `r15`.

Re-enable pie_linux for s390x-linux which was disabled in
ed7ff0b693037078f451a7c6c1124611060f4892.
```

## Parents

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

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