• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can a dylib have an entry point?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can a dylib have an entry point?


  • Subject: Can a dylib have an entry point?
  • From: email@hidden
  • Date: Tue, 18 Feb 2014 10:40:10 -0500

Hi,

ELF-like systems, particularly linux, allow a shared library
to have an entry point.  This allows a library to be constructed
so that it emits, say, version information if it's executed.

This is an example from linux:

  % /lib/libc.so.6
  GNU C Library development release version 2.4 (20060428), by Roland McGrath et al.
  Copyright (C) 2006 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.
  Configured for i686-suse-linux.
  Compiled by GNU CC version 4.1.0 (SUSE Linux).
  Compiled on a Linux 2.6.16 system on 2006-04-28.
  Available extensions:
          crypt add-on version 2.1 by Michael Glad and others
          GNU Libidn by Simon Josefsson
          GNU libio by Per Bothner
          NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
          NoVersion patch for broken glibc 2.0 binaries
          Native POSIX Threads Library by Ulrich Drepper et al
          BIND-8.2.3-T5B
  Thread-local storage support included.
  For bug reporting instructions, please see:
  <http://www.gnu.org/software/libc/bugs.html>.

Is there a way to do something similar with a .dylib
on darwin/macos?

Thanks,

Ariel Burton


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Can a dylib have an entry point?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Async UDP socket and ICMP error detection
  • Next by Date: Re: Can a dylib have an entry point?
  • Previous by thread: Async UDP socket and ICMP error detection
  • Next by thread: Re: Can a dylib have an entry point?
  • Index(es):
    • Date
    • Thread