Compiling against old Glibc still results in some symbols used from Glibc 2.33

I’m trying to compile a binary compatible with Debian Bullseye on Debian Bookworm. I’ve already unpacked old Glibc/OpenSSL for Bullseye and tried to link against them:

export CGO_LDFLAGS="-Xlinker -rpath=/home/bodqhrohro/git/glibc/lib/x86_64-linux-gnu,-rpath=/home/bodqhrohro/git/libssl/usr/lib/x86_64-linux-gnu,--dynamic-linker=/home/bodqhrohro/git/glibc/lib64/ld-linux-x86-64.so.2 -L/home/bodqhrohro/git/libssl/usr/lib/x86_64-linux-gnu -L/home/bodqhrohro/git/glibc/lib/x86_64-linux-gnu -include /home/bodqhrohro/git/force_link_glibc_2.27.h"

But in the resulting binary there still are some symbols requiring Glibc 2.33:

0000000000000000       F *UND*  0000000000000000              lstat64@GLIBC_2.33
0000000000000000       F *UND*  0000000000000000              fstat64@GLIBC_2.33
0000000000000000       F *UND*  0000000000000000              stat64@GLIBC_2.33

How can I overcome this?

I underestimated the problem… there are also much more symbols requiring Glibc 2.34:

0000000000000000       F *UND*  0000000000000000              pthread_join@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_rwlock_destroy@GLIBC_2.34
0000000000000000  w    F *UND*  0000000000000000              __pthread_key_create@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_rwlock_rdlock@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_mutex_trylock@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_mutexattr_settype@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_setaffinity_np@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_kill@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_mutexattr_init@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_create@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              __libc_start_main@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_attr_getstacksize@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_rwlock_init@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_detach@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_mutexattr_destroy@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_setname_np@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_rwlock_unlock@GLIBC_2.34
0000000000000000       F *UND*  0000000000000000              pthread_rwlock_wrlock@GLIBC_2.34