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

Andreas Schwab schwab@suse.de
Wed Nov 13 09:40:14 GMT 2024


On Nov 12 2024, Adhemerval Zanella Netto wrote:

>     866454:     relocation processing: elf/tst-nolink-libc
>     866454:
>     866454:     relocation processing: /mnt/projects/glibc/build/aarch64-linux-gnu-system/elf/ld.so

Where does this reference come from?  With --as-needed, tst-nolink-libc
doesn't even have an interpreter.

$ objdump -p elf/tst-nolink-libc 
elf/tst-nolink-libc:     file format elf64-littleaarch64

Program Header:
    LOAD off    0x0000000000000000 vaddr 0x0000000000400000 paddr 0x0000000000400000 align 2**16
         filesz 0x0000000000000140 memsz 0x0000000000000140 flags r-x
EH_FRAME off    0x0000000000000100 vaddr 0x0000000000400100 paddr 0x0000000000400100 align 2**2
         filesz 0x0000000000000014 memsz 0x0000000000000014 flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**4
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
private flags = 0x0:


-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list