Date: Sun, 19 Nov 2017 23:47:48 +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-tq7jXx04Zo@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 #6 from Mark Millard <markmi@dsl-only.net> --- (In reply to dstaesse from comment #4) Also: in looking around I find that every official webpage/document about this that shows examples shows functions with no arguments. (But none that I found has any explicit words about the argument list requirements. None say that the arguments are the same as for any standard variation for how main can be declared.) For a stack architecture, there would be stack pushes set up before the calls and pops set up after the calls. In architectures with some degree of register-based argument passing it is harder to see what has a garbage-in/garbage-out/accidental status vs. what is deliberate. It looks to me like the existing documentation could stand an update about parameters and arguments. --=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-tq7jXx04Zo>