On 4/1/20 10:06 AM, Joseph Myers wrote: > >> If public Version is removed, I get errors like below: > > What if you move it to GLIBC_PRIVATE? My concern isn't that it's exported > from the shared library, it's that it's exported at a public version. > > A public version is only needed if there are references in code that might > be statically linked into user binaries that use shared libc. Which means > the symbol being used in some .o or .a file that gets linked into user > binaries in that case (crt*.o, lib*_nonshared.a). You can examine the > symbols used by such objects after building and installing glibc. Moving it to GLIBC_PRIVATE seems to work too. *Before* arc-linux-readelf -a lib/libc-2.31.9000.so | grep syscall_error 1671: 0001b4b4 18 FUNC GLOBAL DEFAULT 11 __syscall_error@@GLIBC_2.32 4686: 0001b4b4 18 FUNC LOCAL DEFAULT 11 __GI___syscall_error 6286: 0001b4b4 18 FUNC GLOBAL DEFAULT 11 __syscall_error arc-linux-readelf -a lib/librt-2.31.9000.so | grep syscall_error 00008054 00001f37 R_ARC_JMP_SLOT 00000000 __syscall_error@GLIBC_2.32 + 0 31: 00000000 0 FUNC GLOBAL DEFAULT UND __syscall_error@GLIBC_2.32 (3) 198: 00000000 0 FUNC GLOBAL DEFAULT UND __syscall_error@@GLIBC_2. *Now* arc-linux-readelf -a lib/libc-2.31.9000.so | grep syscall_error 1671: 0001b4b4 18 FUNC GLOBAL DEFAULT 11 __syscall_error@@GLIBC_PRIVATE 4686: 0001b4b4 18 FUNC LOCAL DEFAULT 11 __GI___syscall_error 6286: 0001b4b4 18 FUNC GLOBAL DEFAULT 11 __syscall_error arc-linux-readelf -a lib/librt-2.31.9000.so | grep syscall_error 00008068 00002437 R_ARC_JMP_SLOT 00000000 __syscall_error@GLIBC_PRIVATE + 0 36: 00000000 0 FUNC GLOBAL DEFAULT UND __syscall_error@GLIBC_PRIVATE (4) 206: 00000000 0 FUNC GLOBAL DEFAULT UND __syscall_error@@GLIBC_PR _______________________________________________ linux-snps-arc mailing list linux-snps-arc@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/linux-snps-arc