From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28646 invoked by alias); 12 Oct 2006 17:12:26 -0000 Received: (qmail 28637 invoked by uid 22791); 12 Oct 2006 17:12:25 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Oct 2006 17:12:22 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k9CHCJ8I003199 for ; Thu, 12 Oct 2006 13:12:19 -0400 Received: from pobox.hsv.redhat.com (pobox.hsv.redhat.com [172.16.16.12]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k9CHCJiI007313 for ; Thu, 12 Oct 2006 13:12:19 -0400 Received: from [172.16.17.199] (dhcp-199.hsv.redhat.com [172.16.17.199]) by pobox.hsv.redhat.com (8.12.8/8.12.8) with ESMTP id k9CHCIcX023290 for ; Thu, 12 Oct 2006 13:12:18 -0400 Message-ID: <452E7772.9050801@redhat.com> Date: Thu, 12 Oct 2006 17:12:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 1.5.0.7 (X11/20061004) MIME-Version: 1.0 To: Frysk Hackers Subject: Elf frysk-imports bindings change Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2006-q4/txt/msg00072.txt.bz2 I've checked in a patch that extends the elf bindings in frysk-imports to support writing back to the elf native data structures. This allows us to construct a an elf file from Java. This is preparing the way for writing core file from a frysk environment. I also added an elf error lookup bindings. Regards Phil 2006-10-11 Phil Muldoon * cni/Elf.cxx: (elf_begin): Check args to allow writing to elf files. (elf_get_last_error_msg): New. (elf_get_last_error_no): New. (elf_updatehdr): New. (elf_init_core_header): New. Temporary. (elf_updatephdr): New. * Elf.java (Elf): Add a boolean constructor switch for write/read. (updateEHeader): New. Write Elf header back to native structure. (initializeCoreHeader): Temporary. Convienience function. (updatePHeader): New. Write the program segment back to native structure. (getLastErrorMsg): New. Get the error message corresponding to entry below. (getLastErrorNo): New. Get the error number set if the last elf function failed.