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

Patchelf 0.18.0 Build failure on s390x with "span : out of range error" #537

Open
Duraisankarp opened this issue Nov 30, 2023 · 0 comments
Labels

Comments

@Duraisankarp
Copy link

Build failure for s390x arch build with error "span : out of range".

snippet :

patchelf: error: Span access out of range.

Steps To Reproduce:

Compile patchelf v0.18 for arch s390x and check builds will get failed for rename-dynamic-symbols.sh

Attached the rename-dynamic-symbols.sh.log

v 0.18.0

Debug Log :

renaming dynamic symbol f1537 to f1537_special_suffix
renaming dynamic symbol f775 to f775_special_suffix
renaming dynamic symbol f1450 to f1450_special_suffix
renaming dynamic symbol f1538 to f1538_special_suffix

dynsyms.size():2006 ht.m_chain.size() 6076
patchelf: error: Span access out of range.

The rebuildHashTable API needs to be modified (as the chain size is larger than the synamic symbol size
rename-dynamic-symbols.sh.log
)or there is some problem with the .so file generated for s390x builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant