On Thu, 3 Nov 2022 at 14:56, Richard Purdie <[email protected]> wrote:
> The code that handles the interpreter is in the kernel, in > fs/binfmt_elf.c:load_elf_binary(). The idea would be to add support for > $ORIGIN there so that $ORIGIN is replaced with the location of the > binary. > > Does anyone have an idea if such a change might be acceptable to the > upstream kernel? Has anyone ever proposed anything like that? I quickly skimmed the ELF spec: https://refspecs.linuxfoundation.org/elf/elf.pdf and $ORIGIN is not there. It seems to be an extension specific to the ld.so implementation (man ld.so). Not sure if this would help or hinder the case, just pointing out that the ELF spec neither stands in the way nor helps. Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1657): https://lists.openembedded.org/g/openembedded-architecture/message/1657 Mute This Topic: https://lists.openembedded.org/mt/94756656/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-architecture/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
