From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-3.sys.kth.se (smtp-3.sys.kth.se [IPv6:2001:6b0:1:1300:250:56ff:fea6:2de2]) by sourceware.org (Postfix) with ESMTPS id 0307C3858406 for ; Tue, 10 Aug 2021 22:40:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0307C3858406 Received: from smtp-3.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-3.sys.kth.se (Postfix) with ESMTP id CA2C52F20; Wed, 11 Aug 2021 00:40:10 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-3.sys.kth.se ([127.0.0.1]) by smtp-3.sys.kth.se (smtp-3.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id StNb55cB1tjv; Wed, 11 Aug 2021 00:40:06 +0200 (CEST) X-KTH-Auth: tomner [176.10.168.77] X-KTH-mail-from: tomner@kth.se Received: from [192.168.2.5] (h-176-10-168-77.A259.priv.bahnhof.se [176.10.168.77]) by smtp-3.sys.kth.se (Postfix) with ESMTPSA id CF8F52BC4; Wed, 11 Aug 2021 00:40:05 +0200 (CEST) In-Reply-To: To: jit@gcc.gnu.org, stephan.dollberg@gmail.com From: Petter Tomner Subject: [QUESTION] Using host functions in AOT mode Message-ID: Date: Wed, 11 Aug 2021 00:40:04 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: jit@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Jit mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2021 22:40:24 -0000 Hi! The docs are not updated since gcc_jit_context_add_driver_option() was added in that section I believe. You can link with anything with gcc_jit_context_add_driver_option(). E.g. gcc_jit_context_add_driver_option(ctxt, "obj.o") or gcc_jit_context_add_driver_option(ctxt, "-L.") gcc_jit_context_add_driver_option(ctxt, "-lwhatever") Regards