NixOS / patchelf

A small utility to modify the dynamic linker and RPATH of ELF executables
GNU General Public License v3.0
3.48k stars 483 forks source link

FAIL: shared-rpath.sh #563

Open zhangm365 opened 1 month ago

zhangm365 commented 1 month ago

Describe the bug

I build the master source code in centos7, and run make check, it occurs the error: FAIL: shared-rpath.sh

Steps To Reproduce

make check the error is FAIL: shared-rpath.sh

Expected behavior

How to fix it? The patchelf is installed althrough the error is as above.

patchelf --version output patchelf --version patchelf 0.14.3

Additional context

vim patchelf/tests/test-suite.log

FAIL: shared-rpath.sh

0000000000003804 B a_symbol_name

Number of a_symbol_name strings in the library: 4

Rename the rpath to something larger than the original

patching ELF file '/home/root/zfrFiles/JointInternationalResearchLaboratory/patchelf/tests/libshared-rpath.so' Number of rpath references: 1 Tainting old rpath with Xs new rpath is 'a_very_big_rpath_that_is_larger_than_original' rpath is too long or shared, resizing... replacing section '.dynstr' with size 175 this is a dynamic library last page is 0x4000 first page is 0x0 needed space is 416 rewriting section '.note.gnu.build-id' from offset 0x270 (size 24) to offset 0x2000 (size 24) rewriting section '.dynsym' from offset 0x288 (size 216) to offset 0x2018 (size 216) rewriting section '.dynstr' from offset 0x38c (size 129) to offset 0x20f0 (size 175) rewriting symbol table section 25 rewriting symbol table section 29 writing liblarge-rpath.so

Checking symbol is still there

0000000000003804 B a_symbol_name

Checking there are no Xs