Unclear content of dlfcn.c
Mike Frysinger
vapier@gentoo.org
Tue Oct 19 18:34:00 GMT 2010
On Tuesday, October 19, 2010 05:56:40 Marek Polacek wrote:
> I've recently come across the glibc/dlfcn/dlfcn.c file and I don't quite
> understand this part of the file:
>
> static void (*const init_array []) (int argc, char *argv[])
> __attribute__ ((section (".init_array"), aligned (sizeof (void *))))
> __attribute_used__ =
> {
> init
> };
init arrays are processed by the ldso and executed automatically. it merely
needs to be a list of function pointers.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20101019/82dce286/attachment.sig>
More information about the Libc-help
mailing list