Re: Libraries are *not* executable, correct?



On 2008-04-30, Robert Heller <heller@xxxxxxxxxxxx> wrote:

Yes, you cannot execute a .so file on its own.

Well, almost:

$ /lib/libc.so.6
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.3.
Compiled on a Linux 2.4.26 system on 2004-05-24.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@xxxxxxx>.
$

I haven't found any other libraries executable in this fashion. But
there's at least one. :)

--keith

--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

.



Relevant Pages

  • Re: Executable bit for libraries?
    ... but on HP-UX libraries must have it set. ... GNU C Library stable release version 2.7, by Roland McGrath et al. ... This is free software; see the source for copying conditions. ...
    (comp.unix.programmer)
  • Re: makefile adding dependencies
    ... If I read this right it will execute the depend then rebuild it's self ... When GNU make (I don't know if this works for any other flavours of ...
    (comp.unix.programmer)
  • Third discussion draft of GPLv3 released
    ... for version 3 of the most widely used free software license, ... General Public License (GNU GPL). ... About the GNU General Public License (GNU GPL) ...
    (gnu.announce)
  • Re: [PATCH] lazy freeing of memory through MADV_FREE
    ... - Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. ... This file is part of the GNU C Library. ... The GNU C Library is free software; you can redistribute it and/or ...
    (Linux-Kernel)
  • FSF offers "GNU Bucks" for finding nonfree works in free distributions
    ... "GNU Bucks" for finding nonfree works in free distributions ... Software Foundation (FSF) today announced that it will begin rewarding ... those who find and report any nonfree components in free software ...
    (gnu.announce)