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

arch/x86_64: add basic support for R_X86_64_REX_GOTPCRELX relocation #13436

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

szafonimateusz-mi
Copy link
Contributor

Summary

  • arch/x86_64: add basic support for R_X86_64_REX_GOTPCRELX relocation
    GOTPCRELX reloc available only for CONFIG_ARCH_ADDRENV=y
    when CONFIG_ARCH_ADDRENV is not set, CONFIG_ARCH_TEXT_VBASE is not specified so we can't relocate

Impact

we can execute ELF with GOTPCRELX symbols

Testing

x86_64 in kernel mode (not yet upstream)

GOTPCRELX reloc available only for CONFIG_ARCH_ADDRENV=y

when CONFIG_ARCH_ADDRENV is not set, CONFIG_ARCH_TEXT_VBASE is not specified
so we can't relocate

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 92cbb63 into apache:master Sep 16, 2024
28 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.

2 participants