Source-Changes-D archive

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

Re: CVS commit: src/sys/kern



Le 07/08/2015 11:38, Christos Zoulas a écrit :
In article <21928.1438883980%splode.eterna.com.au@localhost>,
matthew green  <mrg%eterna.com.au@localhost> wrote:

ya - this might actually break some linux binary packages, where
there is a well-defined interface to executing a library.

i think this part should be reverted.

In fact, I remember that at the time I wrote this patch - more than a
year ago -, I had read in the ELF spec that libraries normally don't
have an entry point, but that some do only to display a copyright notice,
for "convenience", just in case someone ./ them.

That would be consistent with the example Christos has given.

For what other purpose would a library have an entry point?
Theoretically, a library that has an entry point is not a library.


Indeed:

[5:16am] 1003#/lib/libc.so.6
GNU C Library (EGLIBC) stable release version 2.10.1, by Roland McGrath et al.
Copyright (C) 2009 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 4.4.1.
Compiled on a Linux >>2.6.24-23-server<< system on 2009-10-07.
Available extensions:
         crypt add-on version 2.1 by Michael Glad and others
         GNU Libidn by Simon Josefsson
         Native POSIX Threads Library by Ulrich Drepper et al
         BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.eglibc.org/issues/>.

christos





Home | Main Index | Thread Index | Old Index