https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88262
--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Let's start over. crt1.o in glibc should support calling main that is located in the shared library. If it does not then there is a bug there. Can you explain why you think crt1.o is broken that it can't be used for that purpose? Also you pointed to a commit which you said changed the behavior in glibc but the commit you pointed to only changes dates and nothing more. Can you point to the commit which changed the behavior in glibc which caused this not to work any more? We can forward from there with those two.