mlibc icon indicating copy to clipboard operation
mlibc copied to clipboard

Review whether lazy binding is necessary in rtdl

Open 64 opened this issue 3 years ago • 1 comments

We should review whether lazy binding (RTLD_LAZY) is necessary to achieve good performance on large binaries. If not, we should remove it from the code.

If we assume that performance on-par with glibc is achievable, it's probably enough to run some programs with different values of LD_BIND_NOW and see how much that affects things. Alternatively, we could do some profiling with mlibc-lfs.

64 avatar Jun 16 '22 22:06 64

Most Linux distributions these days link all their packages with -z now, so I think it's safe to say that lazy binding support can be removed. Our current code for it is kinda broken anyway (not implemented at all on AArch64, and on x86_64 we don't stash SSE registers as we ought to).

qookei avatar May 19 '24 14:05 qookei