No; --as-needed only omits entire libraries that aren't referenced by anything in the link. waitpid is provided by libc just like wait$everythingelse.
Wasn't the issue there simply that the stub isn't necessary unless dlsym isn't available, and the bug fixed by 1.0.45.9 made it seem like dlsym wasn't available on linux?
No; --as-needed only omits entire libraries that aren't referenced by anything in the link. waitpid is provided by libc just like wait$everything else.
Wasn't the issue there simply that the stub isn't necessary unless dlsym isn't available, and the bug fixed by 1.0.45.9 made it seem like dlsym wasn't available on linux?