[PATCH] Compile elf/rtld.c with -fno-tree-loop-distribute-patterns.
Florian Weimer
fw@deneb.enyo.de
Mon Nov 25 22:28:00 GMT 2019
* 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.
More information about the Libc-alpha
mailing list