horsicq / XELFViewer

ELF file viewer/editor for Windows, Linux and MacOS.
http://ntinfo.biz
MIT License
1.37k stars 118 forks source link

Clarify the scope #29

Open greenrobot opened 2 years ago

greenrobot commented 2 years ago

I was trying to open a static library (.a) and 0.05 (latest release as of today) it just said "It's not a valid file". It's Linux ELF so I was surprised. Also, I did not see description what exactly the app is supporting.

horsicq commented 2 years ago

Are you sure that it is ELF? Could you please open your file in any HEX viewer and see the first 4 bytes? It should be '.ELF'. You could use Detect It Easy open file -> HEX https://github.com/horsicq/DIE-engine/releases/tag/3.06

greenrobot commented 2 years ago

A static library (.a) is an archive and thus has a different file header. I take it that this is not supported. Maybe update the readme?

horsicq commented 2 years ago

Ok. Thanks a lot for testing. I will take a look.

horsicq commented 2 years ago

You could unpack your archive with an archive manager(For Windows you can use 7zip). Then you can open every *.o file with XELFViewer.

greenrobot commented 2 years ago

Or, XELFViewercould read the archive :grin: (feature request). E.g. "merge" the data of the .o files.

For inspiration also: https://apps.kde.org/de/elf-dissector/ I love the idea of treemaps for elf/libs. But I had trouble with KDE on Ubuntu...

horsicq commented 2 years ago

Thanks for the good idea! I will add support of ".a" files in the next version. :)

horsicq commented 2 years ago

For inspiration also: https://apps.kde.org/de/elf-dissector/

It looks just super! I should steal some ideas for my projects. Sure steal like an Artist :) https://en.wikipedia.org/wiki/Steal_Like_an_Artist