This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: converting .so to .o


Clifford Wolf <clifford@clifford.at> writes:

> ist there any tool (or trick, whatever) to convert ELF shared objects to
> relocatables? From what I see in the ELF specs it should be possible..
> 
> (.. sure, the code ist still PIC, etc. - it would be nearly impossible to
> change that.)

No, there is no such tool, and in the general case it is not possible.
When a shared library is generated, many relocations in the .o files
will be resolved and will no longer appear in the shared library in
any form.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]