Date: Mon, 20 Nov 2017 00:31:12 +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-HCpq46jBCZ@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=3D223752 --- Comment #9 from Mark Millard <markmi@dsl-only.net> --- (In reply to dstaesse from comment #7) I did not manage to find anything that mentioned the parameters/arguments: You found materials that I did not. What context(s) were they from? "portable way": what range of portability? Even having shared libraries is likely not universal to all C/C++ contexts. Windows .DLL's have a different mechanism if I remember right. And so on. But even for a narrower Unix/BSD/Linux context: as far as I know the conventions are just local/ABI conventions and the compiler does not drive which conventions are used: the environment does something to impose the environment's desired rules. [I'm no expert on POSIX rules so there might be material from that direction that I'm not aware of.] --=20 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-HCpq46jBCZ>