------- Comment #6 from hjl dot tools at gmail dot com 2008-02-23 23:12 ------- Weak and hidden aren't really compatible. Linker should enforce it. I opened a linker bug:
http://sourceware.org/bugzilla/show_bug.cgi?id=5789 As for gcc, I think it is OK since it is a user error and linker should issue an error. Besides, gcc doesn't know if the .o file will be used for PIE/shared library or normal executable. The runtime error only happens with PIE/shared library, not normal executable. -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://sourceware.org/bugzil | |la/show_bug.cgi?id=5789 Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32219