XELFViewer icon indicating copy to clipboard operation
XELFViewer copied to clipboard

Clarify the scope

Open greenrobot opened this issue 3 years ago • 7 comments

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.

greenrobot avatar Aug 26 '22 07:08 greenrobot

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

horsicq avatar Aug 26 '22 08:08 horsicq

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?

greenrobot avatar Aug 26 '22 08:08 greenrobot

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

horsicq avatar Aug 26 '22 08:08 horsicq

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

horsicq avatar Aug 26 '22 08:08 horsicq

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...

greenrobot avatar Aug 26 '22 08:08 greenrobot

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

horsicq avatar Aug 26 '22 08:08 horsicq

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

horsicq avatar Aug 26 '22 08:08 horsicq