forwarding an old patch from Gentoo ... the code in sysdep.h has this logic: #define RESTOREARGS_0 #ifdef __PIC__ # if defined I386_USE_SYSENTER && defined SHARED ... however, the section just above it lacks the defined SHARED part: #define LOADARGS_0 #ifdef __PIC__ # if defined I386_USE_SYSENTER
Created attachment 938 [details] glibc-i386-sysdep-shared-define.patch
This never has been a problem in the any correct build but I changed it anyway.