Shared libraries

Programming, for all ages and all languages.
Post Reply
didier
Posts: 6
Joined: Fri Jun 24, 2016 3:22 pm

Shared libraries

Post by didier »

Hi all,

Do you know a better tool than objconv able to generate assembly source code of a complete shared library ?

My concern is to port a linux shared lib to BSD.

I hope someone will be able to answer.

By advance, thank you.
User avatar
iansjack
Member
Member
Posts: 4742
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Shared libraries

Post by iansjack »

Ghidra.

But, if it’s open source, why don’t you just get the source code and work from that. If it’s not open source then it’s probably illegal to reverse engineer it.
didier
Posts: 6
Joined: Fri Jun 24, 2016 3:22 pm

Re: Shared libraries

Post by didier »

It's just a sane-backend not available on FreeBSD :cry:
User avatar
iansjack
Member
Member
Posts: 4742
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Shared libraries

Post by iansjack »

But if it’s open source the code will be freely available. No need to disassemble.
didier
Posts: 6
Joined: Fri Jun 24, 2016 3:22 pm

Re: Shared libraries

Post by didier »

Persuad then, Brother Compagny that customers are owners of their scanner and consequently should dispose all the means to use it
That's the original concern that led R. Stallman to fund GNU.
User avatar
iansjack
Member
Member
Posts: 4742
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Shared libraries

Post by iansjack »

I’m story but I can’t help you further with actions that constitute breach of copyright.
Gigasoft
Member
Member
Posts: 858
Joined: Sat Nov 21, 2009 5:11 pm

Re: Shared libraries

Post by Gigasoft »

The act of reverse engineering a computer program that you legally possess is legal in every country, despite any threats and wishful thinking on part of vendors. In Europe, this goes even in the face of an EULA claiming otherwise. Of course, any port you create will be regarded as a derivative work and can not be distributed if you did not have the right to distribute the original work.

Unfortunately, if you want something that can be reassembled it is not as easy as it sounds, and will likely require something like IDA Pro, which is very expensive, or maybe Ghidra can do it.
User avatar
iansjack
Member
Member
Posts: 4742
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Shared libraries

Post by iansjack »

Copyright infringement is indeed a civil matter rather than criminal. But I’m not convinced that it is the place of these forums to assist in such infringement.

Reverse engineering for educational purposes is no problem. Doing so in order to modify the program is another matter.
Gigasoft
Member
Member
Posts: 858
Joined: Sat Nov 21, 2009 5:11 pm

Re: Shared libraries

Post by Gigasoft »

Adapting a program, including porting to another platform, in order to be able to use a program in accordance with its purpose, is another specific right granted under law to anyone with the right to use a program. However, unlike the right to reverse engineer, this one may be waived by contract, at least over here. The conditions may vary slightly be country but tend to be mostly the same. As for what constitutes a valid contract, that's another rabbit hole. For example, in Germany, EULAs presented after a product has already been purchased are not enforceable, and in many other countries their enforceability remains largely untested in court.

Depending on the contractual situation, one may want to create a stub rather than a port, which loads and calls into the original program file to perform its function. This way, you are "interoperating" with the program rather than "modifying" it.
Post Reply