[Bug 223752] clang __attribute__((constructor)) gets wrong input parameters
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Nov 20 07:57:42 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223752
Dimitry Andric <dim at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|New |Closed
Resolution|--- |Works As Intended
--- Comment #20 from Dimitry Andric <dim at FreeBSD.org> ---
Unfortunately, as you both point out, the exact signature of C constructors and
destructors is not explicitly documented. However, glibc calls them without
any arguments, and ignores the return value:
https://sourceware.org/git/?p=glibc.git;a=blob;f=elf/soinit.c;h=fe9935732b2dcc3d71b5c0f2e52c32efc642d160;hb=HEAD#l20
and all its test cases and examples use void func(void).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list