Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix s390x stack reallocation code in PIC mode #12831

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

lthls
Copy link
Contributor

@lthls lthls commented Dec 15, 2023

The emit_call function adds a @PLT suffix in PIC mode, if it is missing the dynamic linker may not fix the reference appropriately.

Fixes #12829.

@gasche
Copy link
Member

gasche commented Dec 15, 2023

Did you check for other instances of this issue?

@dustanddreams
Copy link
Contributor

Did you check for other instances of this issue?

I did; this was the only non-wrapped call instruction in the s390x code generator.

Copy link
Member

@gasche gasche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on @dustanddreams' behalf. Thanks both for the quick fix and quick review!

@gasche gasche merged commit 07a4cc3 into ocaml:trunk Dec 15, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OCaml 5.1.x: out of range branch on s390x
3 participants