Date: Wed, 06 Dec 1995 13:56:38 +0100 From: Poul-Henning Kamp <phk@critter.tfs.com> To: Terry Lambert <terry@lambert.org> Cc: imb@scgt.oz.au, julian@ref.tfs.com, current@FreeBSD.ORG Subject: Re: changes in -current..TEST please Message-ID: <255.818254598@critter.tfs.com> In-Reply-To: Your message of "Mon, 04 Dec 1995 11:53:45 MST." <199512041853.LAA04032@phaeton.artisoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Terry, read your manuals again before you talk about things you don't > > know too much, and certainly not enough, about. > > I think: > > #define MAKE_SET(set, sym, type) \ > asm(".stabs \"_" #set "\", " #type ", 0, 0, _" #sym) If you used up to date source, you would know that the above macro now looks like this: #define MAKE_SET(set, sym, type) \ static void *const __set_##set##_sym_##sym = \ (&__set_##set##_sym_##sym, &sym, 0); \ asm(".stabs \"_" #set "\", " #type ", 0, 0, _" #sym) and that it (according to the gcc manual) ensures that the compiler will not remove your static and "secretly" referenced Symbols. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?255.818254598>