[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: get_relocated_path: the configured paths are not looked for?
From: |
Michael Tokarev |
Subject: |
Re: get_relocated_path: the configured paths are not looked for? |
Date: |
Sun, 23 Apr 2023 21:37:00 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
23.04.2023 21:33, Michael Tokarev пишет:
$ cd /tmp; printf '#include <stdio.h>\nint main(){puts("Hello!");return 0;}' > hello.c; cp /usr/bin/gcc .; ./gcc hello.c; ./a.out ; ./gcc --version;
ls -l gcc; cd /tmp
Hello!
execve("/tmp/../lib/gcc/x86_64-linux-gnu/12/cc1", [...])
Since this is merged-usr system, it finds its component just fine,
that's why it works here in /tmp, doesn't work in a subdir of /tmp,
and doesn't work in your case (non-merged /usr).
Still, GCC is an exception. It is very rare.
/mjt
- Re: get_relocated_path: the configured paths are not looked for?, (continued)
- Re: get_relocated_path: the configured paths are not looked for?, Akihiko Odaki, 2023/04/20
- Re: get_relocated_path: the configured paths are not looked for?, Michael Tokarev, 2023/04/23
- Re: get_relocated_path: the configured paths are not looked for?, Akihiko Odaki, 2023/04/23
- Re: get_relocated_path: the configured paths are not looked for?, Michael Tokarev, 2023/04/23
- Re: get_relocated_path: the configured paths are not looked for?, Akihiko Odaki, 2023/04/23
- Re: get_relocated_path: the configured paths are not looked for?, Michael Tokarev, 2023/04/23
- Re: get_relocated_path: the configured paths are not looked for?, Akihiko Odaki, 2023/04/23
- Re: get_relocated_path: the configured paths are not looked for?, Michael Tokarev, 2023/04/23
- Re: get_relocated_path: the configured paths are not looked for?, Akihiko Odaki, 2023/04/23
- Re: get_relocated_path: the configured paths are not looked for?, Michael Tokarev, 2023/04/23
- Re: get_relocated_path: the configured paths are not looked for?,
Michael Tokarev <=
- Re: get_relocated_path: the configured paths are not looked for?, Akihiko Odaki, 2023/04/23