[PATCH v3] elf: Add back support for programs that do not load libc.so

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Wed Nov 13 11:40:43 GMT 2024



On 13/11/24 08:36, Andreas Schwab wrote:
> On Nov 13 2024, Adhemerval Zanella Netto wrote:
> 
>> But in this setup it still adds a PT_INTERP:
> 
> That can only happen when dynamic sections were created.
> 

Yeap, that is what this patch is doing on this setup:

$ file elf/tst-nolink-libc
elf/tst-nolink-libc: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /mnt/projects/glibc/build/aarch64-linux-gnu-system/elf/ld.so, BuildID[sha1]=c58cc0997f17b368a1057f3206a44d8df0849ae2, with debug_info, not stripped

We can discuss this further, but this does trigger an issue on the
Ubuntu system compiler on aarch64.


More information about the Libc-alpha mailing list