This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Compile elf/rtld.c with -fno-tree-loop-distribute-patterns.


* Adhemerval Zanella:

> Sigh... The dl_start_final_info struct is roughly 660 bytes (664 on powerpc
> for instance, slight larger on mips). I wonder if we could just create a
> static global on rtld.c to simplify it, since the stack usage won't be
> released anyway.

I thought the stack is reset by the startup stub?

At one point, we need to rewrite the bootstrap relocation in something
else besides C, but I suppose we can just stick in
-fno-tree-loop-distribute-patterns today.

> Also, isn't the memset on !DONT_USE_BOOTSTRAP_MAP redundant?

Not sure if I understand the question.  The memset is likely redundant
on Linux because the stack is fresh and unperturbed.  If the startup
stub allocated it, clearing it wouldn't be necessary.  But the
situation is a bit iffy at the C level.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]