[Bug driver/39439] The Driver hides "undefined reference" messages from shared libs (but not object files) in linker phase

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 8 17:56:00 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39439

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
To clearify here, -shared and shared libraries in general accept undefined
referneces while linking. You can change the behavior of that, if using GNU
binutils, the option would be -Wl,--no-allow-shlib-undefined .


More information about the Gcc-bugs mailing list