disassembling an .so file

More
8 years 4 months ago #112267 by islander261
Hello

As the topic says, I need to disassemble a .so component object file so I can fix it, no source. Sorry I'm not a linux wizz. How do I do this?

John

Please Log in to join the conversation.

  • ozzyrob
  • New Member
  • New Member
More
8 years 4 months ago #112270 by ozzyrob
Replied by ozzyrob on topic disassembling an .so file
Do you understand assembler ? And have hours I guess to spend ?

Unless of course you're adapt and reverse engineering.

This thread might shed some light on things, but I don't think it is going to be an easy task.

ubuntuforums.org/showthread.php?t=1714313

Google would probably be a much better resource.

I ran this command in ~/linuxcnc-dev/rtlib$
Code:
objdump -dSfl ./not.so > ~/Documents/not.s
You''ll have to look at the manpage for objdump for the options.

And this was the output:

Attachment not found

Please Log in to join the conversation.

More
8 years 4 months ago #112287 by islander261
Ozzyrob

Thank you, I should have been a little clearer in what I was asking for. What I wanted was to go from a .so object file back to some kind of source or sudo code file that had all of the manual and pin definitions intact. I have actual gotten that data using the strings -w command on the file and saving the output to a text file. The only problem is it isn't formatted and requires that you have a pretty good understanding of how to build a hal component to get everything right.

John

Please Log in to join the conversation.

More
8 years 4 months ago #112288 by andypugh
Replied by andypugh on topic disassembling an .so file

islander261 wrote: The only problem is it isn't formatted and requires that you have a pretty good understanding of how to build a hal component to get everything right.


If this is a LinuxCNC HAL component then the source code _has_ to be available. That's what "open source" means.

What is the name of this .so file?

Please Log in to join the conversation.

More
8 years 4 months ago #112289 by islander261
Andy

I looked and couldn't find it, including web searches. My search skilled may leave a little to be desired. The component is thcenable.so and is not part of the standard LinuxCNC distributions. It is marked with a GPL2 rights marker.

John

Please Log in to join the conversation.

More
8 years 4 months ago #112293 by andypugh
Replied by andypugh on topic disassembling an .so file

islander261 wrote: I looked and couldn't find it, including web searches. My search skilled may leave a little to be desired. The component is thcenable.so


Where did you get it from?

Please Log in to join the conversation.

More
8 years 4 months ago #112308 by islander261
From a download off of the web. No source files attached.

John

Please Log in to join the conversation.

More
8 years 4 months ago #112310 by andypugh
Replied by andypugh on topic disassembling an .so file
I am not sure that I would expect a binary .so download to work anyway.

Which web site?

Please Log in to join the conversation.

More
8 years 4 months ago #112311 by islander261
I know it will not work as is for me because it was allegedly compiled on an i386 version of linux and I run an AMD-64 version. I actually just wanted to experiment with it, my controller does the same thing using stock hal components. The place sells a re branded LinuxCNC control system. They will not knowingly release any source code even though every source file I've seen is marked as being GPL (including the thcenable one after putting it through the strings -w command). This similar to the Path Pilot situation only the owner will not comply with the GPL terms.

John

Please Log in to join the conversation.

  • seb_kuzminsky
  • New Member
  • New Member
More
8 years 4 months ago #112319 by seb_kuzminsky
Replied by seb_kuzminsky on topic disassembling an .so file
That's a violation. What's the name of the company doing this, and what's the website where you downloaded the thcenable.so?

Please Log in to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum