https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to H.J. Lu from comment #13) > Check flag_pic isn't necessary. For non-PIC, the same code sequence > and relocation are used to access defined and undefined symbols, common > or not. What do you mean by is not necessary? Without that, you'll return false from targetm.binds_local_p for DECL_COMMON in the testcase say on i686-linux, or if you have old linker.