Giter Site home page Giter Site logo

dwarfexport's People

Contributors

alschwalm avatar comex avatar mephi42 avatar withzombies avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dwarfexport's Issues

Plugin will not load

Hi

I added the plx and pl64 files to my plugins directory, but the plugin does not appear in the Edit > Plugins menu. I am using IDA Version 7.0.170914 Windows x64 (64-bit address size)

Thanks

ida 7.5 build on linux OK, how to port to windows?

After night of pressing make I'm got this:

root@Debian-913-stretch-64-minimal:/opt/dwarfexport/bin# file dwarfexport.plx64
dwarfexport.plx64: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=a1a0c79cac393990dab5d86e463a63de2285cd51, not stripped
root@Debian-913-stretch-64-minimal:/opt/dwarfexport/bin# ldd dwarfexport.plx64
	linux-vdso.so.1 (0x00007fff09138000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbe6b09f000)
	libdwarf.so.1 => /usr/lib/x86_64-linux-gnu/libdwarf.so.1 (0x00007fbe6afe3000)
	libelf.so.1 => /usr/lib/x86_64-linux-gnu/libelf.so.1 (0x00007fbe6afc8000)
	libida64.so => /usr/lib/x86_64-linux-gnu/libida64.so (0x00007fbe6ad9e000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbe6abd1000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbe6abb7000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbe6a9f0000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fbe6b119000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbe6a9d3000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbe6a88f000)
root@Debian-913-stretch-64-minimal:/opt/dwarfexport/bin# 

my Makefile was next:

IDASDK_PATH=/opt/IDA75/SDK/idasdk75
IDA_PATH=/opt/IDA75
CXX ?= g++
CXXFLAGS=-m32 -fPIC -shared -Wall -Wextra -std=c++11 -Wl,-rpath -Wl,LIBDIR
CXXFLAGS64=-m64 -fno-PIE -fPIC -Wall -Wextra -std=c++11 -fno-permissive -Wno-sign-compare -Wno-class-memaccess -Wno-deprecated-copy -lpthread -shared -Wl,-rpath -Wl,LIBDIR 

#LDFLAGS+=-static-libgcc -static-libstdc++ -static
LIBS=-lida lib/libelf32.a lib/libdwarf32.a
LIBS64=-ldwarf -lelf -lida64
#/usr/local/lib/libdwarf.a /usr/local/lib/libelf.a
INCLUDES=-I$(IDASDK_PATH)/include -I$(IDA_PATH)/plugins/hexrays_sdk/include -I/opt/IDA75/SDK/idasdk75/include -I/opt/IDA75 -I/usr/local/include -I/opt/dwarfexport/libdwarf-code/build/libdwarf -L/opt/IDA75/SDK/idasdk75/lib/x64_linux_gcc_64 -I/opt/IDA75/SDK/idasdk75/plugins/ -L/opt/dwarfexport/lib64
DWARFEXPORT_SRC = $(wildcard src/*.cpp)

#noall: bin/dwarfexport.plx bin/dwarfexport.plx64
all: bin/dwarfexport.plx64

bin/dwarfexport.plx: $(DWARFEXPORT_SRC)
        $(CXX) $(LDFLAGS) $(DWARFEXPORT_SRC) $(CXXFLAGS) \
        -L. \
        -L$(IDA_PATH) \
        $(INCLUDES) \
        -D__LINUX__ $(LIBS) -o bin/dwarfexport.plx

bin/dwarfexport.plx64: $(DWARFEXPORT_SRC)
        $(CXX) $(LDFLAGS) $(DWARFEXPORT_SRC) $(CXXFLAGS64) \
        -L. \
        -L$(IDA_PATH) \
        $(INCLUDES) \
        -D__LINUX__ -D__X64 -fno-permissive -D__EA64__ $(LIBS64) -o bin/dwarfexport.plx64
#-D__LINUX__ -D__X64 -D__EA64__ $(LIBS) -o bin/dwarfexport.plx64
clean:
        rm -f bin/dwarfexport.plx bin/dwarfexport.plx64


My question: how to do this for windows?

p.s. or, maybe, somebody can changes with me?) lin64 for win64 ?

source code is not generated

Hello,

Thank you for your project.

Looks like I found some kind of issue:

I'm trying to build dwarf info together with sources.
Ida 6.8 + ARM Decompiler 2.2.0

as the output I have dbg file with some data and 0 size for the source file.
In the dialog box I checked option Use Decompiler


Best regards, Alexey

Section corruption for certain Go binaries

I have found some cases where the sections get corrupted and the symbols added are unreadable.

The most simple way to replicate the bug is to take a Go binary (linux, 64 bit) and see what happens. I have attached a sample binary (before and after loading it in IDA and immediately applying dwarfexport)
Check with readelf -S test_binary.dbg

test.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.