Source-Changes-D archive

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

Re: CVS commit: src/sys/kern



On Aug 7,  9:19pm, max%m00nbsd.net@localhost (Maxime Villard) wrote:
-- Subject: Re: CVS commit: src/sys/kern

| 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?

I don't know. And we'll probably never know now :-)

| Theoretically, a library that has an entry point is not a library.

Theoretically since all elf objects have e_entry they can be executed,
and practically some of them do. Restricting that in the kernel is
purely artificial. As far as libraries being "libraries", how does
being executable stop a library from being one? As with all "file"
objects, if you don't want something to be executable take away the
relevant mode bits.


christos


Home | Main Index | Thread Index | Old Index