Hello, 14.04.2023 01:02, Adhemerval Zanella Netto пишет: > "It would be possible to require the caller to arrange all of > these things, but that's basically offloading A LOT of the ELF > loading process onto the calling program and I don't think that > makes for a reasonable public interface for glibc to provide." OK, in this case I am going to provide a very detailed, reproducible and undisputable proof that the above quote is false. Attached is the small patch that can be applied on top of my v10 patch-set to verify the demo I present here. The demo I present here, shows the "trace" of the dlmem() usage, by sampling the /proc/self/maps at needed points. Namely, before dlmem(), immediately after dlmem(), and after the fdlopen-over-dlmem finished. That demo clearly and unambiguously demonstrates how dlmem() transforms the raw solib image into the "loaded" image, i.e. where all the PT_LOAD sections are correctly laid out. The output of that demo will be located in a path: /dlfcn/tst-dlmem-extfns.out Everyone can apply the v10+attached patch and verify my results on his build. And here it is: $ cat tst-dlmem-extfns.out before dlmem 7f5210ca8000-7f5210cad000 r--p 00000000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so after dlmem 7f5210ca3000-7f5210ca4000 r--p 00000000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so 7f5210ca4000-7f5210ca5000 r-xp 00001000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so 7f5210ca5000-7f5210ca6000 r--p 00002000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so 7f5210ca6000-7f5210ca7000 r--p 00002000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so 7f5210ca7000-7f5210ca8000 rw-p 00003000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so 7f5210ca8000-7f5210cad000 r--p 00000000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so post fdlopen 7f5210ca3000-7f5210ca4000 r--p 00000000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so 7f5210ca4000-7f5210ca5000 r-xp 00001000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so 7f5210ca5000-7f5210ca6000 r--p 00002000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so 7f5210ca6000-7f5210ca7000 r--p 00002000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so 7f5210ca7000-7f5210ca8000 rw-p 00003000 00:29 18840304 /home/stas/src/glibc-dlmem/build/dlfcn/glreflib1.so PS: yes, I realize nothing can be changed. But I need to make sure the best possible and the most obvious proof is publically available, so that its not to look as if I've given up to this "wonderful argument that was brought to me so many times". You got all the proves, and also more than once.