Reland "[libc] Add realpath to linux entrypoints" (#212925) (#216869)
This relands https://github.com/llvm/llvm-project/pull/212925 by
reverting commit efe96c53557041be11e7fb4d43e6448cc09f6062.
CI failures w/ `libc-riscv32-qemu-yocto-fullbuild-dbg` should have been
fixed by https://github.com/llvm/llvm-project/pull/216828.