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

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

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

Visibility: public

Requested revision: 7b92d5f4052be651e9bc5cd4ad78a69ccbee865d

Requested commit: 7b92d5f4052be651e9bc5cd4ad78a69ccbee865d

Commit: 7b92d5f4052be651e9bc5cd4ad78a69ccbee865d

Tree: f5a1113435e60fbf691774ce7d36399ad90bc96d

Author: Alex Rønne Petersen

Committer: GitHub

## 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

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

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