I'd like to detect if the Steam overlay has been loaded in my program, which is using LD_PRELOAD with a gameoverlayrenderer.so. I would use dlopen with RTLD_NOLOAD to check, but unfortunately the path of the shared library is not in LD_LIBARY_PATH and the full path differs between setups.
Is there a way to get a full list of shared libraries loaded in my program so that I can manually search the list of paths for the string gameoverlayrenderer.so? Essentially the equivalent of EnumProcessModules.