procfs: How to read the unresolved location of an executable?
I have an MWE with a combined multi utils executable like BusyBox. I know I can use the arguments passed to deduct which name the executable was invoked with.
$ ln -s multi example
$ ./example # example should show in argv
I want to do the same with procfs but if I use /proc/self/exe it points out to the full path of multi instead of example's. Is there a way to know the location of example with procfs? My intention is to use this location with frameworks like Electron to find resource paths relative to the one of the invoking executable.
Your answers are thanked in advance.