disassembling an .so file

More
13 Jun 2018 00:41 #112267 by islander261
disassembling an .so file was created 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 or Create an account to join the conversation.

  • ozzyrob
  • ozzyrob's Avatar
  • Visitor
  • Visitor
13 Jun 2018 01:25 - 13 Jun 2018 01:29 #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$
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:

File Attachment:

File Name: not.txt
File Size:21 KB
Attachments:
Last edit: 13 Jun 2018 01:29 by ozzyrob.

Please Log in or Create an account to join the conversation.

More
13 Jun 2018 14:00 #112287 by islander261
Replied by islander261 on topic disassembling an .so file
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 or Create an account to join the conversation.

More
13 Jun 2018 14:16 #112288 by andypugh
Replied by andypugh on topic disassembling an .so 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.


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 or Create an account to join the conversation.

More
13 Jun 2018 14:58 #112289 by islander261
Replied by islander261 on topic disassembling an .so file
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 or Create an account to join the conversation.

More
13 Jun 2018 16:55 #112293 by andypugh
Replied by andypugh on topic disassembling an .so file

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 or Create an account to join the conversation.

More
13 Jun 2018 18:19 #112308 by islander261
Replied by islander261 on topic disassembling an .so file
From a download off of the web. No source files attached.

John

Please Log in or Create an account to join the conversation.

More
13 Jun 2018 18:20 #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 or Create an account to join the conversation.

More
13 Jun 2018 18:37 #112311 by islander261
Replied by islander261 on topic disassembling an .so file
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 or Create an account to join the conversation.

More
13 Jun 2018 19:56 #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 or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum