From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: law@cygnus.com Cc: svivanov@pdmi.ras.ru, egcs@cygnus.com Subject: Re: Why link C with crtstuff? [patch] Date: Sun, 26 Apr 1998 10:26:00 -0000 Message-id: References: <19451.893610286@hurl.cygnus.com> X-SW-Source: 1998-04/msg01041.html > > > In message < m0yTKUE-000598C@ocean.lucon.org >you write: > > BTW, Jim, I cannot get__ attribute__((weak)) to work on extern. > I don't think it should work on a function declaration. > > Seems to me you have to have it on the function defintion or > there's no way for it to actually mark the function in question > as weak. > If that is the case, do I have to use extern void foo (); #pragma weak foo in crtstuff.c to mark foo as weak? -- H.J. Lu (hjl@gnu.org)