Date: Mon, 20 Nov 2017 00:53:36 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Message-ID: <bug-223752-29464-si8BHGnieE@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-223752-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-223752-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223752 --- Comment #10 from dstaesse <dimitri.staessens@ugent.be> --- (In reply to Mark Millard from comment #9) Thanks a lot for taking time to help me out. I'm definitely no expert on this matter. Our target is restricted to POSIX. I've found mostly posts on stackoverflow, definitely nothing that's official documentation. But this gave me some insights: https://www.cs.stevens.edu/~jschauma/810/elf.html Here is says that: The .preinit_array and .init_array sections must contain function pointers (NOT code!) The prototype of these functions must be void func(int argc,char** argv,char** envp) But this may be specific for x86_64. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223752-29464-si8BHGnieE>
