Closed: Relocation error: /lib/libpthread.so.0: symbol __libc_stack_end version GLIBC_2.2.5 not defined in file ld-linux-x86-64.so.2 with link time reference

relocation error: /lib/libpthread.so.0: symbol __libc_stack_end version GLIBC_2.2.5 not defined in file ld-linux-x86-64.so.2 with link time reference

Hi;

Baffled, getting error above despite symbols existing.

I dumped the symbols for the two libraries:

[rossb@localhost openwrt]$ readelf -a staging_dir/target-x86_64_glibc/root-x86/lib/libpthread-2.27.so | grep __libc_stack_end
00000001afc8  002a00000006 R_X86_64_GLOB_DAT 0000000000000000 __libc_stack_end@GLIBC_2.2.5 + 0
    42: 0000000000000000     0 OBJECT  GLOBAL DEFAULT  UND __libc_stack_end@GLIBC_2.2.5 (16)
   775: 0000000000000000     0 OBJECT  GLOBAL DEFAULT  UND __libc_stack_end@@GLIBC_2
[rossb@localhost openwrt]$ readelf -a staging_dir/target-x86_64_glibc/root-x86/lib/ld-2.27.so | grep __libc_stack_end
    13: 0000000000027e58     8 OBJECT  GLOBAL DEFAULT   15 __libc_stack_end@@GLIBC_2.2.5
   337: 0000000000027e58     8 OBJECT  LOCAL  DEFAULT   15 __GI___libc_stack_end
   528: 0000000000027e58     8 OBJECT  GLOBAL DEFAULT   15 __libc_stack_end
[rossb@localhost openwrt]$ 

The only thing that seems iffy is that libpthread asks for "__libc_stack_end@GLIBC_2.2.5 + 0" and ld-2.27.so provides " __libc_stack_end@@GLIBC_2.2.5"

Should I change my (glibc) ld.map file to accomodate "__libc_stack_end@GLIBC_2.2.5 + 0" or, "somehow" change libpthread to require "__libc_stack_end@GLIBC_2.2.5" as opposed to "__libc_stack_end@GLIBC_2.2.5 + 0"?

Anyone seen this before?

Thanks;
Bill

Update:

root@SecureOffice:~# /lib/ld-2.27.so /lib/libpthread-2.27.so
Native POSIX Threads Library
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Forced unwind support included.

Indicates that there is no /lib/ld-2.27.so /lib/libpthread-2.27.so symbol issue

The issue is some funky elf manipulation stuff I am doing with a custom app, so, nobody can help me but me.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.