patchelf
patchelf copied to clipboard
Patchelf 0.18.0 Build failure on s390x with "span : out of range error"
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.