Re: How to convert a Linux ELF executable (with *.h file, no *.c file, no *.o file) to shared library (*.so)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



News Provider <dionysiusalexander@xxxxxxxxx> writes:

> Summary
> =======
> Given only these two files:
>
> (1) an existing Linux32 executable file in ELF format (but no *.c file, and no *.o file), and
>
> (2) a corresponding C header file (*.h) declaring several 'extern' functions defined in the above ELF file...
>
>
> Question
> --------
> Is it possible to use gcc (or some similar tool) to produce a shared/dynamic library (*.so file) [or alternatively, a static library (*.a file)]...
>
> ...using **only** the original ELF executable and the C header file (*.h) - ie, with no C source file (*.c) and no object file (*.o) available?

No, it is not possible.  An executable is not a shared library.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux