This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Why GLIBC requires compiler optimizations to build
On 11 June 2018 at 22:48, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Mon, Jun 11, 2018 at 2:38 PM, Adhemerval Zanella <adhemerval.zanella@linaro.org> wrote:
> > It has been some time since I tried to build glibc without optimization
> > as an exercise and I can't really recall what exactly has prevented me
> > to accomplish it. So the question is if it is make sense to add such
> > requirement and if it is the case whether it would be a useful options
> > and what prevents us to do so?
>
> The main issue is to bootstrap ld.so to prevent dynamic relocations
> before it is ready.
Is it only really elf/rtld.c that specifically requires optimization then?
Thanks,
Gary