From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13840 invoked by alias); 14 Feb 2014 14:09:58 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 13824 invoked by uid 89); 14 Feb 2014 14:09:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f177.google.com Received: from mail-qc0-f177.google.com (HELO mail-qc0-f177.google.com) (209.85.216.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 14 Feb 2014 14:09:56 +0000 Received: by mail-qc0-f177.google.com with SMTP id i8so19867243qcq.36 for ; Fri, 14 Feb 2014 06:09:54 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.224.30.16 with SMTP id s16mr13437387qac.74.1392386994221; Fri, 14 Feb 2014 06:09:54 -0800 (PST) Received: by 10.140.28.137 with HTTP; Fri, 14 Feb 2014 06:09:54 -0800 (PST) Date: Fri, 14 Feb 2014 14:09:00 -0000 Message-ID: Subject: Assembler as shared library From: Philip Herron To: binutils@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00090.txt.bz2 Hey all I am working on the jit branch of GCC and investigating how it could be possible to use binutils as a shared library to assmlble code. Currently it calls as and ld to create a .so and using dlopen. Reading "Most of these programs use BFD, the Binary File Descriptor library, to do low-level manipulation. Many of them also use the opcodes library to assemble and disassemble machine instructions." But i can find any where to start to make a little mini assembler using libopcodes. --Phil