This is the mail archive of the binutils@sourceware.org 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: Rationale for giving .so files +x


Mike Frysinger <vapier@gentoo.org> writes:

> On Thursday 14 June 2007, Serge van den Boom wrote:
>> What's the rationale for setting the executable bit on shared object files?
>
> shared object codes include executable code so in order to map them with 
> execute permissions, you need the +x bit

This is not needed under Linux, it works fine if you remove the +x.  The
dynamic linker in glibc takes care of it.

But there's one exception: You can really execute on Linux libc.so, try:
/lib/libc.so.6

Andreas
-- 
 Andreas Jaeger, Director Platform/openSUSE, aj@suse.de
  SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
   Maxfeldstr. 5, 90409 Nürnberg, Germany
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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