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

Musl loader doesn't support relocation type 37(R_X86_64_IRELATIV) #1476

Open
vtikoo opened this issue Jun 26, 2023 · 1 comment
Open

Musl loader doesn't support relocation type 37(R_X86_64_IRELATIV) #1476

vtikoo opened this issue Jun 26, 2023 · 1 comment

Comments

@vtikoo
Copy link
Collaborator

vtikoo commented Jun 26, 2023

When running numpy core tests, dynamically loading ld-linux fails with -

Error relocating /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2: unsupported relocation type 37

Version info -

$strings appdir/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 | grep version | grep '[0-9]'
ld.so (Debian GLIBC 2.36-9) stable release version 2.36.

Erring relocation entry -

$readelf --relocs appdir/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2

Relocation section '.rela.dyn' at offset 0xcc8:
  Offset          Info           Type           Sym. Value    Sym. Name + Addend
0000000309e0  000000000025 R_X86_64_IRELATIV                    16540
@anakrish
Copy link
Collaborator

This is unfortunate. Implementing the relocations ourselves (as you have done) seems to be the only possible approach other than detecting and erroring out early as we do currently.

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

No branches or pull requests

2 participants