# stage2 x86_64: fix bug in Function.gen · gitcafe/zig

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

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

Visibility: public

Requested revision: aa0906e9aaaf36bc928b5502bdb34e7a0409b2c0

Requested commit: aa0906e9aaaf36bc928b5502bdb34e7a0409b2c0

Commit: aa0906e9aaaf36bc928b5502bdb34e7a0409b2c0

Tree: d6f669cebdae86ea204b4db4086cdd44bdcc8b87

Author: joachimschmidt557

Committer: Andrew Kelley

## Message

```
stage2 x86_64: fix bug in Function.gen

Previously, the x86_64 backend would remove code for exitlude relocs
if the jump amount were 0. This causes issues as earlier jumps rely on
the jump being present at the same address.

```

## Parents

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

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