From owner-cvs-all Sun Sep 22 23:11:30 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEF4237B401; Sun, 22 Sep 2002 23:11:29 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F89E43E42; Sun, 22 Sep 2002 23:11:29 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8N6BTCo038100; Sun, 22 Sep 2002 23:11:29 -0700 (PDT) (envelope-from peter@freefall.freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8N6BTH1038099; Sun, 22 Sep 2002 23:11:29 -0700 (PDT) Message-Id: <200209230611.g8N6BTH1038099@freefall.freebsd.org> From: Peter Wemm Date: Sun, 22 Sep 2002 23:11:29 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys cdefs.h linker_set.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG peter 2002/09/22 23:11:29 PDT Modified files: sys/sys cdefs.h linker_set.h Log: Add a __section(x) macro as well. Use this in linker_set.h. ie: static void const * const __set_##set##_sym_##sym __attribute__((__section__("set_" #set),__unused__)) = &sym becomes: static void const * const __set_##set##_sym_##sym __section("set_" #set) __unused = &sym Like the other macros, these #define away for unrecognized compilers or lint. Also, fix the argments in the previous commit for the non-gcc case. lint might be a bit happier about that. Note that the gcc <= 2.6 case needs some research. Revision Changes Path 1.64 +6 -3 src/sys/sys/cdefs.h 1.13 +1 -1 src/sys/sys/linker_set.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message