https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119301
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- https://www.gnu.org/software/libc/manual/html_node/Working-Directory.html Describes how get_current_dir_name could be implemented. Since this is in the front-end, get_current_dir_name could be added to libiberty .