https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108732
--- Comment #5 from Matt Hellige <matt at immute dot net> --- That makes sense, but it's just a strange inconsistency from a usability point of view. .so files are generally mmapped as well, I believe, aren't they? But I can still generate one to /dev/null if I like: $ gcc12.2.0 -o /dev/null -rdynamic -shared foo.o bar.o -lrt ... Works fine.