Re: .so vs exec

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

 



On Mon, Jun 09, 2003 at 11:51:13AM +0530, S kris wrote:
> What is the binary format difference between .so and executable files?

Some .so files are executable. Try /lib/ld-2.2.so and /lib/libc-2.2.so. :)

I can't answer your question in full generality off the top of my head.
I -can- point out that most shared objects are compiled with -fpic or
-fPIC, to force the code to be position independant (force all symbol
use through an indirection table); and then make the suggestion that
you find the Makefiles used to compile a reasonable set of .so files,
and some normal executable files, and look up the differences of gcc
options using info gcc.

-- 
"It is not un-American to think that war, except in self-defense, is
a failure of moral imagination, political nerve, and diplomatic skill.
Come to think of it, standing up to your government can mean standing
up for your country." -- Bill Moyers

Attachment: pgp00436.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux