* [gentoo-user] Why are *.so library files executable?
@ 2011-06-05 14:43 Nikos Chantziaras
2011-06-05 15:08 ` Albert Hopkins
2011-06-05 15:13 ` Mark
0 siblings, 2 replies; 3+ messages in thread
From: Nikos Chantziaras @ 2011-06-05 14:43 UTC (permalink / raw
To: gentoo-user
Gentoo users tend to be technically adept, so I'll ask the question here:
Why are *.so files set as executables? I noticed that they keep working
if I do a "chmod a-x" on them.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Why are *.so library files executable?
2011-06-05 14:43 [gentoo-user] Why are *.so library files executable? Nikos Chantziaras
@ 2011-06-05 15:08 ` Albert Hopkins
2011-06-05 15:13 ` Mark
1 sibling, 0 replies; 3+ messages in thread
From: Albert Hopkins @ 2011-06-05 15:08 UTC (permalink / raw
To: gentoo-user
On Sun, 2011-06-05 at 17:43 +0300, Nikos Chantziaras wrote:
> Gentoo users tend to be technically adept, so I'll ask the question here:
>
> Why are *.so files set as executables? I noticed that they keep working
> if I do a "chmod a-x" on them.
Well, they are "executables" in that they are object code that are
(loaded and) executed.
In the olden days (pre libc6?) believe it was required form them to be
both executable and by whoever wanted to run (load) them. It's probably
still a requirement for other *nix systems.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Why are *.so library files executable?
2011-06-05 14:43 [gentoo-user] Why are *.so library files executable? Nikos Chantziaras
2011-06-05 15:08 ` Albert Hopkins
@ 2011-06-05 15:13 ` Mark
1 sibling, 0 replies; 3+ messages in thread
From: Mark @ 2011-06-05 15:13 UTC (permalink / raw
To: gentoo-user
On 5 June 2011 15:43, Nikos Chantziaras <realnc@arcor.de> wrote:
> Why are *.so files set as executables? I noticed that they keep working if
> I do a "chmod a-x" on them.
You can in fact make a library be an executable at the same time, see:
/lib/libc.so.6
For those that care if can be accomplished by this method:
http://gcc.gnu.org/ml/gcc-help/2003-07/msg00232.html.
By rights shared libraries are a form of executable, the trick however
is that they have multiple entry points (whereas binaries have one).
I am not entirely sure the requirement for +x is needed anymore (it
certainly was in the past).
Thanks
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-05 16:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-05 14:43 [gentoo-user] Why are *.so library files executable? Nikos Chantziaras
2011-06-05 15:08 ` Albert Hopkins
2011-06-05 15:13 ` Mark
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox