From patchwork Wed Sep 17 12:29:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 390373 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A7CD8140119 for ; Wed, 17 Sep 2014 22:29:57 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:in-reply-to; q=dns; s=default; b=qOrq 6Uxtm/EPciD53yFZ5w9wXbF2f4rsrhUAUNs/jjjNVG/sLH2FFl6/M7OehHFmaOrL 9jJt0kH/b2w22T6i7FThXtoL805jbBwjQ/hOeYh2qcw1LRl+NEy/pZ4E7CoyIXmw gm/EdzP1Rfyx4U9qLOnH0f3k/EoNreM/8/ij4rI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:in-reply-to; s=default; bh=2jz557GOEY s/45rjBO0KCzDX5ns=; b=J4mvzlM1hzSlmK1lqoyHGV0zqQ+Stff8txPfn/yVyb RjGod5axgDnguWGdF36yxuf+Ar6+7rUVxEFaIicxlI92i2FwI5iBp2v/PtJ09c/G vfepF+V3q4DmUc49sjuKzY9JzzeZ3UHjFj1Y5ijvdtLa/YuXhmKKHWA/ctP7tb3J g= Received: (qmail 2272 invoked by alias); 17 Sep 2014 12:29:52 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 2262 invoked by uid 89); 17 Sep 2014 12:29:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Wed, 17 Sep 2014 17:59:40 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Cc: Roland McGrath Subject: [PATCH v2 06/19] Define IN_MODULE for translation units that define NOT_IN_libc Message-ID: <20140917122939.GT6586@spoyarek.pnq.redhat.com> References: <1408618663-2281-1-git-send-email-siddhesh@redhat.com> <1408618663-2281-7-git-send-email-siddhesh@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1408618663-2281-7-git-send-email-siddhesh@redhat.com> User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) Hi, I have now rebased this patch against the current master. interp.c does not need the CPPFLAGS anymore, so sotruss-lib is the only code to be built as extramodules to eventually replace the NOT_IN_libc macro. Build tested on x86_64 to ensure that the generated code is unchanged. Siddhesh * elf/Makefile (libof-sotruss-lib): Set as extramodules. diff --git a/elf/Makefile b/elf/Makefile index 677635b..7a5a9aa 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -96,6 +96,7 @@ extra-objs += sotruss-lib.os sotruss-lib.so install-others += $(inst_auditdir)/sotruss-lib.so install-bin-script += sotruss generated += sotruss +libof-sotruss-lib = extramodules CPPFLAGS-sotruss-lib = -DNOT_IN_libc $(objpfx)sotruss-lib.so: $(objpfx)sotruss-lib.os $(build-module-asneeded)