http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54083



--- Comment #13 from Iain Sandoe <iains at gcc dot gnu.org> 2012-11-19 21:33:51 
UTC ---

(In reply to comment #12)



> This is will never be fixable for darwin9 short of using a newer linker as the



weak linking works perfectly on Darwin9, when the semantics are as per the

vendor's design (i.e. the exe link is done against a library containing the

weak symbol, either real or dummy).  The weak reference then behaves as

expected at runtime.



There is a work-around to make Darwin9/Mach-O behave more like ELF weak

(although this is NOT likely a good idea for general applications, it seems

reasonable in the confines of this test).



/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin9* } } */

Reply via email to