[Dwarf-Discuss] Read an .axf file on windows with LibDwarf

Ane ane.echeverria at ikusi.com
Tue May 17 01:30:20 PDT 2016


Eric Christopher <echristo at ...> writes:

> 
> 
> FWIW you can use cmake to compile LLVM for windows with a VS project 
output. It has a support library for reading dwarf sections, but you may 
need to do a little bit of work to make sure it can understand the 
object file reading it if it isn't just a plain ELF file.
> Feel free to follow up with me or the llvm-dev list if you have any 
problems.
> 
> Thanks!
> 
> -eric
> 
> 
> On Mon, May 16, 2016 at 11:47 PM Ane <ane.echeverria-
2U8bCB4TNbUAvxtiuMwx3w at public.gmane.org> wrote:
> 
> DavidA <davea42 <at> ...> writes:
> >
> > On 05/16/2016 12:43 AM, Ane wrote:
> > > 've seen a lot of webpages to have an idea of what the libdwarf
> library
> > > can do, but I can't find the way to compile it in windows. The
> reason to
> > > do this, is that I want to read and understand an .axf file in my 
C#
> > > program that I'm developing in Visual Studio 10 in Windows (I can
> use VS15
> > > too). I don't need to debug anything, I only want read an .axf 
file,
> so if
> > > there is a way to do this, please I want to know it, and how to do
> it.
> >
> > There is no simple way.  At least one organization has done so, but
> > their code is not part of the distribution.
> >
> > I do not know the details of what that organization did.
> > I have no idea what a .axf file is.
> >
> > struct Dwarf_Obj_Access_Methods_s (libdwarf.h)
> > is probably involved.
> >
> > Sorry, I have no further information.
> > David Anderson
> >
> > --
> > From the attic came an unearthly howl. The whole scene had an eerie,
> > surreal quality, like when you're on vacation in another city and
> > "Jeopardy" comes on at 7:00 p.m. instead of 7:30. -- Roy Ashley
> >
> An .AXF file is an ARM eXecutable File which has an ELF/DWARF 
structure.
> I've tried a few libraries (libdwarf, libelf, examples in VC for both 
of
> them, libelfin in c++) and none of them can I compile correctly in
> windows (it doesn't matter if there was in VS15 / VS10 / as a makefile
> project with MinGW or normal project / just MinGW in command window 
...
> ).
> I've just finded another library in C# "ElfSharp" and it seems to be
> good for reading my .axf file, but I'm looking for decode the DWARF
> sections. If anyone could help me, I'm all ears.
> Thanks for the info anyway.
> Ane.
> _______________________________________________
> Dwarf-Discuss mailing listDwarf-Discuss-
94Vl1yqA2cm9tDkVm8dgcB2eb7JE58TQ at public.gmane.orghttp://lists.dwarfstd.o
rg/listinfo.cgi/dwarf-discuss-dwarfstd.org
> 
> 
> 
> 
> _______________________________________________
> Dwarf-Discuss mailing list
> Dwarf-Discuss at ...
> http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org
> 

I think I haven't explained myself very well. I want to do everything in 
Windows 7, and as far as I understood about LLVM, is for Unix Systems. I 
don't need the compiler to go faster, I need just compiling the source 
code, or at least, find some code which has no dependency of Unix 
libraries. Maybe I didn't understand your idea of doing it, so if it is 
so, please could you explain it to me again? Did you mean this about 
LLVM http://llvm.org/docs/GettingStartedVS.html ?

Rigth now I'm looking for DWARF info in this library 
http://elfsharp.hellsgate.pl/examples.shtml , and I just read a section 
content but all of them are bytes and I need to read them as a dwarf 
info (and I'm thinking how to decode that part). If I haven't explained 
it better, please let me know.

Thanks for the help,
Ane.


More information about the Dwarf-Discuss mailing list