Re: [DynInst_API:] Loading SPARC ELF files ...


Date: Wed, 10 Jun 2009 10:14:53 -0700
From: Hiren Patel <hiren@xxxxxxxxxxxxxxxxx>
Subject: Re: [DynInst_API:] Loading SPARC ELF files ...
Attached.

Toolchain downloaded from: ftp://gaisler.com/gaisler.com/bcc/bin/
sparc.bin: SPARC  ELF binary file.
sparc.c: Simple test file.
test.cpp: Sample that loads the ELF file.

Test steps:
$ sparc-elf-gcc sparc.c -o sparc.bin
$ g++ -o t test.cpp -I/tmp/dyninstAPI/include
-L/tmp/dyninstAPI/i386-unknown-linux2.4/lib  -ldyninstAPI
$ ./t
Object-elf.C[854]:  failed to load elf object
Segmentation fault

Thanks.
~ Hiren



On Wed, Jun 10, 2009 at 7:57 AM, Matthew Legendre<legendre@xxxxxxxxxxx> wrote:
>
> I'm moving this to the bugs@xxxxxxxxxxx mailing list, which is a better
> place for these topics.
>
> I'm not familiar with the LEON3 toolchain.  Could you provide a sample
> binary built with this tool chain that we can look at?  Thanks.
>
> -Matt
>
> On Wed, 10 Jun 2009, Hiren Patel wrote:
>>
>> Hello,
>>
>> I'm attempting to use DynInst/SymtabAPI to parse SPARC ELF binaries
>> produced by Gaisler's LEON3 toolchain, but the sample program in the
>> manuals fail to load the binary giving a rather unintuitive error
>> message ("Failed to load ELF file.")  Are there others who have tried
>> loading binaries produced by this toolchain?
>>
>> Regards,
>> ~ Hiren
>> _______________________________________________
>> Dyninst-api mailing list
>> Dyninst-api@xxxxxxxxxxx
>> https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
>>
>
>

Attachment: sparc-fail.tar.gz
Description: GNU Zip compressed data

[← Prev in Thread] Current Thread [Next in Thread→]