From patchwork Mon Jun 1 21:04:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 479177 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 DC2F61412E1 for ; Tue, 2 Jun 2015 07:11:42 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=e74x8YS6; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=uhIo/Uu6ils9sIECsXDVWPnC2ffiVdcVnWxJK+uVza8Veo2hdXmYR Ou0BcY9r5/mUX6Dk/x0XkEzgx85gyD2znyXE/fOFlrO3N1JR59mfkPRu50CpIqjZ ArU2CHRUUZyahlgx7lqB+IoKPaVg07sHKC3XzR6BRlIBxoq0OhoOLk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=toYzKK4WGSXf+amve+EusAUb8Go=; b=e74x8YS6WmuLFwKlA5fv ISH4Y58V1giyp0s2VSvzOZC1ExCEYMBF69rR0q3kieBKwvoHQ/2zLNpMpDhbOJkq WdQu5i6/OlcQMGsr612UhJE7luDHW23v6wmaESn0ctqrFEijCzSa3RFUfCx2JCUJ UL6nr2oeM20JJx2mTh390V8= Received: (qmail 107747 invoked by alias); 1 Jun 2015 21:11:13 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 107157 invoked by uid 89); 1 Jun 2015 21:11:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL, BAYES_50, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 01 Jun 2015 21:11:08 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzWfG-0005Rr-43 for gcc-patches@gcc.gnu.org; Mon, 01 Jun 2015 16:50:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzWfF-0005Rn-VJ for gcc-patches@gcc.gnu.org; Mon, 01 Jun 2015 16:50:30 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 86EC291E88; Mon, 1 Jun 2015 20:50:22 +0000 (UTC) Received: from c64.redhat.com (vpn-230-103.phx2.redhat.com [10.3.230.103]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t51KoE5I030113; Mon, 1 Jun 2015 16:50:21 -0400 From: David Malcolm To: gcc-patches@gcc.gnu.org, binutils@sourceware.org Cc: David Malcolm Subject: [PATCH 11/16] binutils: gas/Makefile.am: Add libgas.la Date: Mon, 1 Jun 2015 17:04:19 -0400 Message-Id: <1433192664-50156-12-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1433192664-50156-1-git-send-email-dmalcolm@redhat.com> References: <1433192664-50156-1-git-send-email-dmalcolm@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 X-IsSubscribed: yes This patch introduces a libgas.la, using it for the "as" executable. I'm not convinced I've got this correct, but it seems to work well enough to prototype the embedding within libgccjit.so. --- gas/Makefile.am | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/gas/Makefile.am b/gas/Makefile.am index 5161b5e..c87546a 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -402,14 +402,22 @@ GASLIBS = @OPCODES_LIB@ ../bfd/libbfd.la ../libiberty/libiberty.a # Files to be copied away after each stage in building. STAGESTUFF = *.@OBJEXT@ $(noinst_PROGRAMS) -as_new_SOURCES = $(GAS_CFILES) -as_new_LDADD = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \ - $(extra_objects) $(GASLIBS) $(LIBINTL) $(LIBM) -as_new_DEPENDENCIES = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \ - $(extra_objects) $(GASLIBS) $(LIBINTL_DEP) -EXTRA_as_new_SOURCES = $(CFILES) $(HFILES) $(TARGET_CPU_CFILES) \ - $(TARGET_CPU_HFILES) $(OBJ_FORMAT_CFILES) $(OBJ_FORMAT_HFILES) \ - $(TARG_ENV_CFILES) $(CONFIG_ATOF_CFILES) $(MULTI_CFILES) +include_HEADERS = libgas.h + +as_new_SOURCES = asmain.c +as_new_LDADD = libgas.la + +lib_LTLIBRARIES = libgas.la + +libgas_la_SOURCES = $(GAS_CFILES) \ + $(TARG_CPU_C) \ + $(OBJ_FORMAT_C) \ + $(ATOF_TARG_C) +libgas_la_LIBADD = $(extra_objects) $(GASLIBS) $(LIBINTL) $(LIBM) +libgas_la_DEPENDENCIES = $(extra_objects) $(GASLIBS) $(LIBINTL_DEP) +EXTRA_libgas_la_SOURCES = $(CFILES) +libgas_la_CFLAGS = $(AM_CFLAGS) +# -fPIC ??? EXPECT = expect RUNTEST = runtest @@ -437,7 +445,7 @@ check-DEJAGNU: site.exp # The m68k operand parser. -EXTRA_as_new_SOURCES += config/m68k-parse.y config/bfin-parse.y +EXTRA_libgas_la_SOURCES += config/m68k-parse.y config/bfin-parse.y # If m68k-parse.y is in a different directory, then ylwrap will use an # absolute path when it invokes yacc, which will cause yacc to put the